mcp-git-enhanced
v1.0.0Enhanced 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.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | Absolute path to the git repository |
filePath | string | Specific file or directory path to diff (relative to repo root) |
source | string | Source to diff from (commit hash, branch name). If omitted with target, diffs target against working directory. |
staged | boolean | Show staged changes only (git diff --cached) |
target | string | Target 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.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | Absolute path to the git repository |
author | string | Filter commits by author name or email |
branch | string | Branch to log (default: current branch) |
filePath | string | Show commits affecting specific file or directory |
maxCount | number | Maximum number of commits to show (default: 20) |
oneline | boolean | Show commits in one-line format |
since | string | Show commits more recent than date (e.g., '2024-01-01', '1 week ago') |
stat | boolean | Include file change statistics |
until | string | Show commits older than date |
git_branch
Manage and analyze git branches. Provides branch listing, comparison, and management suggestions.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: list branches, compare branches, or suggest cleanup |
repoPath * | string | Absolute path to the git repository |
baseBranch | string | Base branch for comparison (default: main or master) |
branchName | string | Branch name for specific operations |
includeRemote | boolean | Include remote branches in listing |
git_status
Get comprehensive repository status including staged, unstaged, and untracked files.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | Absolute path to the git repository |
short | boolean | Show short format output |
git_commit_analyze
Analyze a specific commit in detail including changed files, statistics, and impact.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | Absolute path to the git repository |
commitHash | string | Commit hash to analyze (default: HEAD) |