
Git Enhanced
io.github.davidweb3-ctrl由 GitHub 账号 davidweb3-ctrl 发布v1.0.1更新于 Oct 24, 2026
Enhanced Git MCP Server - Code review, commit analysis, and branch management
概览
一个本地 MCP 服务器,为 AI 编程助手提供只读的 Git 上下文,用于代码审查、提交分析、分支比较和发布准备。
- 可以做什么
- 检查工作区、暂存区、分支、提交或指定路径的差异,并用状态工具汇总已暂存、未暂存和未跟踪的改动。按作者、日期范围、分支、路径和统计信息筛选查看提交历史。列出分支、将分支与其基线比较,并给出已合并或陈旧分支的清理建议。分析单个提交的元数据、变更文件、统计信息和差异输出。
- 适用场景
- 适合维护者和审查者让助手回答日常仓库问题,例如某分支改了什么、哪些提交应写入发布说明、分支是否落后于基线,而无需执行宽泛的 shell 命令。
- 运行要求
- 以本地进程通过 stdio 运行。需要 Node.js 18 或更高版本,并需在 PATH 中安装 Git。README 说明可从源码运行,发布后也可通过 npx 运行。清单声明了一个名为 YOUR_API_KEY 的必需密钥环境变量,但 README 未说明其用途。
安装
在 SourceWeft 中
- 打开 控制台中的 Git Enhanced,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Git Enhanced
MCP Git Enhanced is a Model Context Protocol server that helps AI coding assistants inspect repository state for day-to-day open-source maintenance.
It gives maintainers structured Git context for code review, commit analysis, branch comparison, and release preparation without asking the assistant to run broad shell commands.
Why Maintainers Use It
Open-source maintainers spend a lot of time answering the same repository questions before they can review or merge work:
- What changed in this branch?
- Which commits matter for the release notes?
- Is this branch behind the base branch?
- What is staged, unstaged, or untracked?
- Which merged or stale branches need cleanup?
This server exposes those workflows as focused MCP tools so assistants can help with PR review, issue triage, release management, and repository hygiene.
Available Tools
Installation
From Source
Claude Code Configuration
Use the built server from this repository:
Future npm Install
The package is published as @davidweb3-ctrl/mcp-git-enhanced:
After publication, clients can use:
Example Workflows
PR Review
Issue Triage
Release Management
Tool Examples
git_diff
git_log
git_branch
git_status
git_commit_analyze
Security Model
MCP Git Enhanced is designed as a read-oriented repository inspection server.
- It runs fixed
gitsubcommands throughspawnSyncwithout shell interpolation. - It does not expose destructive branch deletion, reset, checkout, rebase, push, or force-push tools.
- It validates that
repoPathpoints to a Git repository before executing tool handlers. - It is intended for local repositories controlled by the user or maintainer.
See SECURITY.md for reporting and supported-version details.
Development
Project Files
- CONTRIBUTING.md: development setup and contribution process.
- SECURITY.md: vulnerability reporting and trust boundaries.
- ROADMAP.md: planned maintainer workflows and release direction.
- CHANGELOG.md: release notes.
- docs/CODEX_FOR_OSS.md: Codex for Open Source maintenance plan.
Requirements
- Node.js >= 18.0.0
- Git installed and available in
PATH
License
MIT
来源:README.md,提交 6dda5c1
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分