mcp-git-enhanced

v1.0.0
io.github.davidweb3-ctrl/mcp-git-enhanced Checked 1 day ago Published 7 months ago

Enhanced Git MCP Server - Code review, commit analysis, and branch management

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

git_diff

Analyze code changes between commits, branches, or working directory. Provides detailed diff analysis with statistics and file categorization.

ParameterTypeDescription
repoPath *stringAbsolute path to the git repository
filePathstringSpecific file or directory path to diff (relative to repo root)
sourcestringSource to diff from (commit hash, branch name). If omitted with target, diffs target against working directory.
stagedbooleanShow staged changes only (git diff --cached)
targetstringTarget to diff against (commit hash, branch name, or 'HEAD'). If omitted, shows uncommitted changes.

git_log

Analyze commit history with filtering and statistics. Provides insights into commit patterns, contributors, and code evolution.

ParameterTypeDescription
repoPath *stringAbsolute path to the git repository
authorstringFilter commits by author name or email
branchstringBranch to log (default: current branch)
filePathstringShow commits affecting specific file or directory
maxCountnumberMaximum number of commits to show (default: 20)
onelinebooleanShow commits in one-line format
sincestringShow commits more recent than date (e.g., '2024-01-01', '1 week ago')
statbooleanInclude file change statistics
untilstringShow commits older than date

git_branch

Manage and analyze git branches. Provides branch listing, comparison, and management suggestions.

ParameterTypeDescription
action *stringAction to perform: list branches, compare branches, or suggest cleanup
repoPath *stringAbsolute path to the git repository
baseBranchstringBase branch for comparison (default: main or master)
branchNamestringBranch name for specific operations
includeRemotebooleanInclude remote branches in listing

git_status

Get comprehensive repository status including staged, unstaged, and untracked files.

ParameterTypeDescription
repoPath *stringAbsolute path to the git repository
shortbooleanShow short format output

git_commit_analyze

Analyze a specific commit in detail including changed files, statistics, and impact.

ParameterTypeDescription
repoPath *stringAbsolute path to the git repository
commitHashstringCommit hash to analyze (default: HEAD)