Git
v0.2.0Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
git_status Git status
Working-tree status: staged, unstaged, and untracked files + current branch.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
git_log Git log
Commit history (newest first). Optional ref, limit, and file path filter.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
limit | integer | |
path | string | Only commits touching this file |
ref | string |
git_show Show commit
A commit's metadata + the files it changed (vs its first parent).
| Parameter | Type | Description |
|---|---|---|
oid * | string | Commit SHA (full or abbreviated) or ref |
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
git_diff Git diff
Unified diff. No refs → working tree vs HEAD; one ref → that ref vs working tree; two refs → refA vs refB. Optional single-file filter.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
patch | boolean | Include line-level hunks (default true) |
path | string | |
refA | string | |
refB | string |
git_file_history File history
Commits that touched a specific file (follows the path).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
limit | integer |
read_file_at Read file at ref
Contents of a file at a given ref/commit (default HEAD).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
ref | string |
list_branches List branches
Local branches in the repo.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
list_tags List tags
Tags in the repo.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
current_branch Current branch
The currently checked-out branch.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
search_log Search commits
Search commit messages for a substring.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |
limit | integer |
list_remotes List remotes
Configured remotes (name + URL).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Path to a git repository (within GIT_ROOTS; default the first root) |