Git

v0.2.0
io.github.Abhishekkumar2021/git Checked 10 hours ago Published 5 months ago

Local 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.

ParameterTypeDescription
repo *stringPath 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.

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)
limitinteger
pathstringOnly commits touching this file
refstring

git_show Show commit

A commit's metadata + the files it changed (vs its first parent).

ParameterTypeDescription
oid *stringCommit SHA (full or abbreviated) or ref
repo *stringPath 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.

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)
patchbooleanInclude line-level hunks (default true)
pathstring
refAstring
refBstring

git_file_history File history

Commits that touched a specific file (follows the path).

ParameterTypeDescription
path *string
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)
limitinteger

read_file_at Read file at ref

Contents of a file at a given ref/commit (default HEAD).

ParameterTypeDescription
path *string
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)
refstring

list_branches List branches

Local branches in the repo.

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)

list_tags List tags

Tags in the repo.

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)

current_branch Current branch

The currently checked-out branch.

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)

search_log Search commits

Search commit messages for a substring.

ParameterTypeDescription
query *string
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)
limitinteger

list_remotes List remotes

Configured remotes (name + URL).

ParameterTypeDescription
repo *stringPath to a git repository (within GIT_ROOTS; default the first root)