MCP Git Enhanced
🦞 MCP Git Enhanced
Ein erweiterter Git MCP-Server (Model Context Protocol), der KI-Assistenten leistungsstarke Funktionen für Code-Reviews, Commit-Analysen und Branch-Management bietet.
Funktionen
🔍 Code-Diff-Analyse - Vergleiche Commits, Branches oder Änderungen im Arbeitsverzeichnis
📊 Commit-Verlaufsanalyse - Tiefe Einblicke in Commit-Muster und Mitwirkende
🌿 Branch-Management - Auflisten, Vergleichen und Bereinigungsvorschläge
📈 Repository-Status - Umfassender Überblick über das Arbeitsverzeichnis
🔎 Commit-Analyse - Detaillierte Untersuchung einzelner Commits
Related MCP server: pr-mcp-server
Installation
Über npm (sobald veröffentlicht)
npm install -g @bountyclaw/mcp-git-enhancedAus dem Quellcode
git clone https://github.com/bountyclaw/mcp-git-enhanced.git
cd mcp-git-enhanced
npm install
npm run buildVerwendung mit Claude Code
Füge dies zu deiner Claude Code-Konfiguration hinzu (~/.claude/settings.json):
{
"mcpServers": {
"git-enhanced": {
"command": "npx",
"args": ["@bountyclaw/mcp-git-enhanced"]
}
}
}Oder für die lokale Entwicklung:
{
"mcpServers": {
"git-enhanced": {
"command": "node",
"args": ["/path/to/mcp-git-enhanced/dist/index.js"]
}
}
}Verfügbare Tools
git_diff
Analysiere Code-Änderungen zwischen Commits, Branches oder dem Arbeitsverzeichnis.
{
"repoPath": "/absolute/path/to/repo",
"target": "HEAD~5",
"source": "HEAD~10",
"filePath": "src/",
"staged": false
}git_log
Analysiere den Commit-Verlauf mit Filtern und Statistiken.
{
"repoPath": "/absolute/path/to/repo",
"maxCount": 20,
"author": "John Doe",
"since": "1 week ago",
"stat": true
}git_branch
Verwalte und analysiere Git-Branches.
{
"repoPath": "/absolute/path/to/repo",
"action": "list|compare|suggest_cleanup",
"includeRemote": true
}git_status
Erhalte einen umfassenden Repository-Status.
{
"repoPath": "/absolute/path/to/repo",
"short": false
}git_commit_analyze
Analysiere einen spezifischen Commit im Detail.
{
"repoPath": "/absolute/path/to/repo",
"commitHash": "abc123"
}Anwendungsbeispiele
Code-Review
"Show me the diff between main and the feature branch"
"What files changed in the last 5 commits?"
"Analyze the impact of commit abc123"Repository-Gesundheit
"List all branches that can be safely deleted"
"Show me commits from the last week"
"Who are the top contributors to this project?"Arbeitsverzeichnis
"What's the current status of my repo?"
"Show me the staged changes"
"What files have uncommitted changes?"Entwicklung
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Test locally
node dist/index.jsTesten
Dieses Projekt verwendet Jest für Tests mit umfassender Abdeckung für alle Git-Tool-Handler.
# Run all tests
npm test
# Run tests with coverage report
npm run test:coverage
# Run tests in watch mode
npm run test:watchAbdeckungsbericht
Datei | Anweisungen | Branches | Funktionen | Zeilen |
tools.ts | 98%+ | 95%+ | 100% | 98%+ |
Teststruktur
src/__tests__/tools.test.ts- Unit-Tests für alle 5 Git-Tool-Handlergit_diff- 7 Testfällegit_log- 13 Testfällegit_branch- 10 Testfälle (auflisten, vergleichen, suggest_cleanup)git_status- 5 Testfällegit_commit\_analyze- 4 Testfälle
Code-Qualität
# Run ESLint
npm run lint
# Fix ESLint issues
npm run lint:fix
# Format with Prettier
npm run format
# Check formatting
npm run format:checkAnforderungen
Node.js >= 18.0.0
Git installiert und im PATH verfügbar
Lizenz
MIT
Mitwirken
Beiträge sind willkommen! Bitte lies CONTRIBUTING.md für Details.
Erstellt mit 🦞 von BountyClaw
Available Tools
5 toolsgit_branchB
Manage and analyze git branches. Provides branch listing, comparison, and management suggestions.
Inputs: repoPath (required), action (required), branchName, baseBranch, +1 more.
git_commit_analyzeB
Analyze a specific commit in detail including changed files, statistics, and impact.
Inputs: repoPath (required), commitHash.
git_diffB
Analyze code changes between commits, branches, or working directory. Provides detailed diff analysis with statistics and file categorization.
Inputs: repoPath (required), target, source, filePath, +1 more.
git_logC
Analyze commit history with filtering and statistics. Provides insights into commit patterns, contributors, and code evolution.
Inputs: repoPath (required), maxCount, author, since, +5 more.
git_statusC
Get comprehensive repository status including staged, unstaged, and untracked files.
Inputs: repoPath (required), short.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct aspect of git: branches, commits, diffs, log history, and repository status. No functional overlap exists.
All tools follow 'git_' prefix with descriptive nouns, but 'git_commit_analyze' deviates slightly from the single-noun pattern of the others.
Five tools cover essential analysis operations without being excessive or insufficient for the server's stated analytical focus.
Tools provide broad analysis coverage but lack creation or modification operations (e.g., no commit creation, branch creation beyond suggestions), leaving notable gaps for full git workflows.
Maintenance
Related MCP Connectors
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- FlicenseBqualityDmaintenanceThe Git MCP Server allows AI assistants to perform enhanced Git operations via the Model Context Protocol, supporting core Git functions, branch and tag management, GitHub integration, and more.216-
- AlicenseAqualityDmaintenanceMCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.84MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for interacting with Git repositories, enabling AI assistants to manage repositories, branches, commits, and files through a standardized interface.1Apache 2.0
- AlicenseDqualityDmaintenanceMCP server for managing Git reference repositories, enabling AI assistants to add, load, and sync reference code from any Git repository.128 npmMIT