mcp-git
v0.0.4MCP server for Git operations
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
git_status
Shows the working tree status
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_diff_unstaged
Shows changes in working directory not yet staged
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_diff_staged
Shows changes that are staged for commit
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_diff
Shows differences between branches or commits
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
target * | string | Target branch or commit to compare with |
git_commit
Records changes to the repository
| Parameter | Type | Description |
|---|---|---|
message * | string | Commit message |
repo_path * | string | Path to Git repository |
git_add
Adds file contents to the staging area
| Parameter | Type | Description |
|---|---|---|
files * | array | Array of file paths to stage |
repo_path * | string | Path to Git repository |
git_reset
Unstages all staged changes
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_log
Shows the commit logs
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
max_count | number | Maximum number of commits to show (default: 10) |
git_create_branch
Creates a new branch
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | Name of the new branch |
repo_path * | string | Path to Git repository |
start_point | string | Starting point for the new branch |
git_checkout
Switches branches
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | Name of branch to checkout |
repo_path * | string | Path to Git repository |
git_show
Shows the contents of a commit
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
revision * | string | The revision (commit hash, branch name, tag) to show |
git_init
Initializes a Git repository
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to directory to initialize git repo |
git_stash
Stashes changes in working directory
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_stash_pop
Applies and removes a single stashed state
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |
git_stash_apply
Applies a single stashed state without removing it
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path to Git repository |