git-enhanced MCPサーバー
✓ 検証済みコードレビュー、コミット分析、ブランチ管理、リポジトリの整理のために、AIアシスタントへ構造化されたGitコンテキストを提供します。
別名 davidweb3-ctrl/mcp-git-enhanced, mcp-git-enhanced, @davidweb3-ctrl/mcp-git-enhanced
- スター
- 1
- ツール
- 5
- ダウンロード数(30日間)
- 224
- 最新バージョン
- 1.0.1
- 最終コミット
- 2026年6月2日
- ライセンス
- MIT
git-enhanced MCPとは
コードレビュー、コミット分析、ブランチ管理、リポジトリの整理のために、AIアシスタントへ構造化されたGitコンテキストを提供します。 5個のツールを提供しており、git_diff, git_log, git_branchなどがあります。
プロジェクトのREADMEから生成された概要
git-enhanced MCP server について
git-enhancedの主な機能は、オープンソースのメンテナーによるリポジトリ管理を支援することです。AIコーディングアシスタントが広範なシェルコマンドを実行することなく、コードレビュー、コミット分析、ブランチ管理などのタスクを実行できるよう、構造化されたGitコンテキストを提供します。このサーバーはローカルリポジトリ向けに設計されており、pushやrebaseといった破壊的な操作を避ける読み取り中心の検査ツールとして動作します。
開発者は、Claude CodeなどのMCPクライアントからコンパイル済みのindexファイルを指定することで、Node.jsを使用してローカルにサーバーをセットアップできます。ツールセットには、変更を分析するgit_diff、作成者や日付によるフィルタリングが可能な履歴レビュー用のgit_log、ステージング済みまたは未追跡のファイルを確認するgit_statusなどの特定のコマンドが含まれています。また、ブランチを比較するgit_branchや、特定のコミットのメタデータと統計情報を調査するgit_commit_analyzeも備えています。
これらの特化したツールを使用することで、メンテナーはリポジトリの整理やリリース準備を自動化できます。このサーバーは、spawnSyncを通じて固定されたサブコマンドを実行し、実行前に指定されたリポジトリパスが有効なGitリポジトリであることを検証することで、セキュリティを確保しています。
できること
- 1プルリクエストのレビューアシスタントに対し、ブランチとmasterを比較し、diffを使用してリスクのあるファイルを特定するよう指示します。
- 2リリースノートの作成統計的な出力とともにコミット履歴をレビューし、ユーザーに関連する変更を特定します。
- 3リポジトリの整理リリース後に削除を検討すべきブランチを見つけ、提案します。
- 4最近のコード変更の調査ソースディレクトリ内の特定のファイルを変更した最近のコミットを特定します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
git-enhanced MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude Codeにgit-enhanced MCPをインストール
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced -- npx -y @davidweb3-ctrl/mcp-git-enhancedCursorにgit-enhanced MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS Codeにgit-enhanced MCPをインストール
.vscode/mcp.json
{
"servers": {
"mcp-git-enhanced": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS Code CLIにgit-enhanced MCPをインストール
$ code --add-mcp '{"name":"mcp-git-enhanced","type":"stdio","command":"npx","args":["-y","@davidweb3-ctrl/mcp-git-enhanced"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'Claude Desktopにgit-enhanced MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Codexにgit-enhanced MCPをインストール
$ codex mcp add mcp-git-enhanced --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @davidweb3-ctrl/mcp-git-enhancedCodex config.tomlにgit-enhanced MCPをインストール
~/.codex/config.toml
[mcp_servers.mcp-git-enhanced] command = "npx" args = ["-y", "@davidweb3-ctrl/mcp-git-enhanced"] [mcp_servers.mcp-git-enhanced.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
Gemini CLIにgit-enhanced MCPをインストール
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced npx -- -y @davidweb3-ctrl/mcp-git-enhancedGemini settings.jsonにgit-enhanced MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}git-enhanced MCPツール 5
READMEから検出git_diffgit_loggit_branchgit_statusgit_commit_analyze
| git_diff | — | |
| git_log | — | |
| git_branch | — | |
| git_status | — | |
| git_commit_analyze | — |
設定
YOUR_API_KEY必須シークレットYour API key for the service
| 名前 | 説明 | 種類 |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | 必須シークレット |
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能davidweb3-ctrl/mcp-git-enhanced is public and reachablegithub.com/davidweb3-ctrl/mcp-git-enhanced ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-06-02github.com/davidweb3-ctrl/mcp-git-enhanced ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @davidweb3-ctrl/mcp-git-enhanced合格
- パッケージおよびその依存関係に重大な勧告なし99 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない5 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされているNo tool named like delete, drop or exec合格
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見る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
| Tool | Purpose |
|---|---|
git_diff |
Analyze working tree, staged, branch, commit, or path-specific diffs. |
git_log |
Review commit history with filters for author, date range, branch, path, and stats. |
git_branch |
List branches, compare a branch to its base, or suggest cleanup candidates. |
git_status |
Summarize staged, unstaged, and untracked repository state. |
git_commit_analyze |
Inspect one commit with metadata, changed files, statistics, and diff output. |
Installation
From Source
git clone https://github.com/davidweb3-ctrl/mcp-git-enhanced.git
cd mcp-git-enhanced
npm install
npm run build
Claude Code Configuration
Use the built server from this repository:
{
"mcpServers": {
"git-enhanced": {
"command": "node",
"args": ["/absolute/path/to/mcp-git-enhanced/dist/index.js"]
}
}
}
Future npm Install
The package is published as @davidweb3-ctrl/mcp-git-enhanced:
npm install -g @davidweb3-ctrl/mcp-git-enhanced
After publication, clients can use:
{
"mcpServers": {
"git-enhanced": {
"command": "npx",
"args": ["@davidweb3-ctrl/mcp-git-enhanced"]
}
}
}
Example Workflows
PR Review
Use git_diff to compare this branch with master and summarize the risky files.
Use git_log to list commits since the last release.
Use git_commit_analyze on the largest commit before I review it.
Issue Triage
Use git_log to find recent commits touching src/tools.ts.
Use git_status to check whether the local reproduction has uncommitted changes.
Release Management
Use git_branch compare against master to prepare release notes.
Use git_log with --stat style output to identify user-visible changes.
Use git_branch suggest_cleanup after the release branch is merged.
Tool Examples
git_diff
{
"repoPath": "/absolute/path/to/repo",
"target": "HEAD~5",
"source": "HEAD~10",
"filePath": "src/",
"staged": false
}
git_log
{
"repoPath": "/absolute/path/to/repo",
"maxCount": 20,
"author": "Maintainer Name",
"since": "1 week ago",
"stat": true
}
git_branch
{
"repoPath": "/absolute/path/to/repo",
"action": "list",
"includeRemote": true
}
{
"repoPath": "/absolute/path/to/repo",
"action": "compare",
"branchName": "feature/pr-review-summary",
"baseBranch": "master"
}
git_status
{
"repoPath": "/absolute/path/to/repo",
"short": false
}
git_commit_analyze
{
"repoPath": "/absolute/path/to/repo",
"commitHash": "abc123"
}
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
npm install
npm run build
npm test
npm run lint
npm run format:check
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
git-enhanced MCPのよくある質問
git-enhanced MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced -- npx -y @davidweb3-ctrl/mcp-git-enhancedを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
git-enhanced MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
git-enhanced MCPが提供するツールは
5個のツールを提供しており、git_diff, git_log, git_branch, git_status, git_commit_analyzeなどがあります。
コードレビューにおいて、このMCP serverは何ができますか?
diffの分析、コミット履歴のレビュー、特定のコミットのメタデータや統計情報の確認が可能になり、変更内容の要約を支援します。
破壊的な操作に使用しても安全ですか?
いいえ、このサーバーは読み取り中心の検査ツールとして設計されており、ブランチの削除、reset、pushなどの破壊的なアクションを行うツールは公開していません。
システム要件は何ですか?
Node.js version 18.0.0以上が必要です。また、Gitがインストールされており、PATHが通っている必要があります。