git-mcp
v0.4.2A Git MCP server that doesn't suck
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
git_status Git Status Tools
Status and diff tool. Use action=status|diff|diff_main to inspect working tree and branch deltas.
| Parameter | Type | Description |
|---|---|---|
action | string | |
base_branch | string | |
filtered | boolean | |
from_ref | string | |
mode | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
to_ref | string |
git_history Git History Tools
History tool. Use action=log|show|reflog|blame|lg|who to inspect commits, refs, and contributors.
| Parameter | Type | Description |
|---|---|---|
action | string | |
all_branches | boolean | |
author | string | |
file_path | string | |
first_parent | boolean | |
grep | string | |
limit | integer | |
no_merges | boolean | |
offset | integer | |
order | string | |
pathspecs | array | |
ref | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
revision_range | string | |
simplify_merges | boolean | |
since | string | |
until | string |
git_commits Git Commit Tools
Commit-area tool. Use action=add|restore|commit|reset|revert|undo|nuke|wip|unstage|amend.
| Parameter | Type | Description |
|---|---|---|
action | string | |
all | boolean | |
amend | boolean | |
confirm | boolean | |
mainline | integer | |
message | string | |
mode | string | |
no_commit | boolean | |
no_edit | boolean | |
no_verify | boolean | |
paths | array | |
ref | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
sign | boolean | Sign the commit. Defaults to the server GIT_AUTO_SIGN_COMMITS setting. |
signing_key | string | |
source | string | |
staged | boolean | |
target | string | |
worktree | boolean |
git_branches Git Branch Tools
Branch tool. Use action=list|create|delete|rename|checkout|set_upstream|recent for branch workflows.
| Parameter | Type | Description |
|---|---|---|
action | string | |
all | boolean | |
branch | string | |
count | integer | |
create | boolean | |
force | boolean | |
from_ref | string | |
name | string | |
new_name | string | |
old_name | string | |
ref | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
upstream | string |
git_remotes Git Remote Tools
Remote tool. Use action=list|manage|fetch|pull|push for network/transport operations.
| Parameter | Type | Description |
|---|---|---|
action | string | |
atomic | boolean | |
branch | string | |
ff_only | boolean | |
force | boolean | |
force_with_lease | boolean | |
name | string | |
negotiation_tips | array | |
no_verify | boolean | |
prune | boolean | |
prune_tags | boolean | |
push_options | array | |
rebase | boolean | |
rebase_mode | string | |
refspecs | array | |
remote | string | |
remote_action | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
set_upstream | boolean | |
tags | boolean | |
url | string |
git_workspace Git Workspace Tools
Workspace tool for stash/rebase/cherry-pick/merge/bisect/tag/worktree/submodule actions plus stash_all shortcut.
| Parameter | Type | Description |
|---|---|---|
action | string | |
bad_ref | string | |
bisect_action | string | |
branch | string | |
cherry_pick_action | string | |
cherry_pick_mainline | integer | |
cherry_pick_no_commit | boolean | |
cherry_pick_record_origin | boolean | |
cherry_pick_refs | array | |
cherry_pick_strategy | string | |
cherry_pick_strategy_options | array | |
command | string | |
command_args | array | |
conflict_style | string | |
good_ref | string | |
include_untracked | boolean | |
index | integer | |
merge_action | string | |
merge_ff_only | boolean | |
merge_log | boolean | |
merge_no_commit | boolean | |
merge_no_ff | boolean | |
merge_refs | array | |
merge_squash | boolean | |
merge_strategy | string | |
merge_strategy_options | array | |
message | string | |
name | string | |
onto | string | |
path | string | |
paths | array | |
rebase_action | string | |
rebase_autosquash | boolean | |
rebase_branch | string | |
rebase_interactive | boolean | |
rebase_merges | boolean | |
rebase_onto | string | |
rebase_upstream | string | |
recursive | boolean | |
ref | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
sign | boolean | Sign the tag. Defaults to the server GIT_AUTO_SIGN_TAGS setting. |
signing_key | string | |
stash_action | string | |
submodule_action | string | |
submodule_depth | integer | |
submodule_jobs | integer | |
submodule_remote | boolean | |
tag_action | string | |
target | string | |
url | string | |
worktree_action | string | |
worktree_detached | boolean | |
worktree_expire | string | |
worktree_force | boolean | |
worktree_lock_reason | string |
git_context Git Context Tools
Context/config tool. Use action=summary|search|get_config|set_config|aliases for repo context operations.
| Parameter | Type | Description |
|---|---|---|
action | string | |
key | string | |
limit | integer | |
query | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
value | string |
git_but_check Check GitButler Availability
Detects whether the GitButler `but` CLI is available and returns guidance on whether to prefer `but mcp` / `but` commands over git-mcp tools. When `but` is present, agents should prefer GitButler for version control and run `but teardown` before using git-mcp tools on a GitButler-managed repository.
| Parameter | Type | Description |
|---|---|---|
response_format | string | Output format for the response. |
git_jj_check Check Jujutsu Availability
Detect whether the Jujutsu `jj` CLI is available and whether the repository is jj-managed (has a .jj/ directory). When jj-managed, agents should prefer the `jj` CLI for all version control operations, since git-mcp tools operate on the underlying .git and will not reflect jj's change model.
| Parameter | Type | Description |
|---|---|---|
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_tangled_check Check Tangled Hosting
Detect whether the repository origin remote points at a Tangled host (tangled.org or a self-hosted knot). Tangled is a decentralized Git host on the AT Protocol — git transport works normally via git-mcp tools, but there is no PR/MR surface.
| Parameter | Type | Description |
|---|---|---|
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_entire_check Check Entire Availability
Detect whether the Entire CLI is available and whether the repository is Entire-managed (has a .entire/ directory). When managed, agents should use the `entire` CLI for session, checkpoint, and attribution queries; git-mcp tools do not expose Entire's context layer.
| Parameter | Type | Description |
|---|---|---|
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_analytics Git Repository Analytics
Read-only repository analytics computed from local git history. Use action=contributors|churn|activity|summary|file-stats.
| Parameter | Type | Description |
|---|---|---|
action * | string | Analytics operation. |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_pr Git Pull Request
Create, list, or merge pull requests / merge requests on the detected forge provider (GitHub, GitLab, Forgejo, Gitea, Bitbucket). Uses the provider CLI (gh/glab/tea) when installed, otherwise the provider REST API with a *_TOKEN env var.
| Parameter | Type | Description |
|---|---|---|
action * | string | Pull request operation. |
base | string | Target branch (create, default main). |
body | string | PR/MR body/description (create). |
head | string | Source branch (create, default HEAD). |
method | string | Merge method (merge). |
number | integer | PR/MR number (merge). |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
state | string | Filter for list (default open). |
title | string | PR/MR title (create). |
git_lfs Git LFS Actions
Manage Git Large File Storage (LFS). Supports tracking/untracking file patterns, listing LFS-tracked files and status, pulling/pushing LFS objects, installing LFS hooks for the repository, and migrating existing files into or out of LFS storage.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
everything | boolean | Pass --all/--everything to include all refs in push/migrate operations. |
exclude | string | Comma-separated exclude patterns for migrate or pull operations. |
include | string | Comma-separated include patterns for migrate or pull operations. |
patterns | array | File glob patterns for track/untrack (e.g. ["*.psd", "*.zip"]). |
remote | string | Remote name for pull/push operations. |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_rewrite Git History Rewrite
Rewrite commit history. Use action=reword|squash|rewrite-messages|backup|restore. History rewriting changes commit hashes and requires force-push; create a backup first.
| Parameter | Type | Description |
|---|---|---|
action * | string | History rewrite operation. |
confirm | boolean | Confirm destructive history rewrite. |
count | integer | Number of commits to squash. |
message | string | New commit message (reword/squash). |
messages | object | Map of commit SHA to replacement message (rewrite-messages). |
name | string | Backup branch name (backup/restore). |
range | string | Commit range to rewrite (e.g. HEAD~5..HEAD). |
ref | string | Commit ref to reword (defaults to HEAD). |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_flow Git Flow Actions
Drives the git-flow-next CLI. The CLI owns the workflow semantics — the finish state machine, conflict recovery, and worktree lifecycle — so it must be installed and on PATH; this tool only builds argv. Prefer operation=config/topic/control with subactions; the legacy action aliases remain for compatibility.
| Parameter | Type | Description |
|---|---|---|
action | string | Legacy-compatible action alias. |
auto_update | boolean | Enable auto-update on base branch definitions. |
base_ref | string | Explicit starting ref for topic-start. |
branch_kind | string | Whether a flow config operation targets a base branch or topic branch type. |
config_action | string | config_action is required for operation=config. |
config_file | string | Path to a git config file when scope is "file". |
control_action | string | Continue or abort an in-progress flow finish operation. |
develop_branch | string | Override the develop branch name (default: gitflow.branch.develop config or "develop"). |
downstream_strategy | string | Merge strategy for flow branch integration. |
fetch | boolean | Fetch the remote before finish when a remote is configured. |
ff | boolean | Use fast-forward behavior when the selected strategy allows it. |
force | boolean | Force re-initialization even if git-flow is already configured. |
force_delete | boolean | Force deletion for topic-delete and config flags. |
force_worktree | boolean | On finish/delete, remove a git-flow-created worktree even with uncommitted changes. |
keep_branch | boolean | Keep the topic branch after finish. |
keep_worktree | boolean | On finish/delete, keep the branch worktree detached instead of removing it. |
main_branch | string | Override the main branch name (default: gitflow.branch.master config or "main"). |
name | string | Branch short name, branch type name, or release/hotfix version depending on the action. |
new_name | string | New short name or branch type name for rename operations. |
no_create_branches | boolean | Skip base branch creation during init and only write configuration. |
operation | string | Canonical git_flow operation. |
parent | string | Parent/base branch for flow config mutations. |
prefix | string | Branch prefix for topic type definitions, such as "feature/". |
preserve_merges | boolean | Preserve merges during rebase-based finish flows. |
preset | string | git-flow-next preset to initialize. |
production_branch | string | NOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead. |
publish | boolean | Publish parent/backmerge branches after finish. |
rebase_before_finish | boolean | Rebase the topic branch onto its parent before finishing. |
recover | string | Which in-progress operation control_action targets (default: finish). |
remote | string | Remote name for publish operations (default: "origin"). |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
scope | string | Git config scope used for init writes. |
shared | boolean | Write a committable .gitflow file (init, or config edit). |
staging_branch | string | NOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead. |
start_point | string | Configured start point for a topic type. |
strategy | string | Integration strategy for finish/update operations. |
tag | boolean | Create an annotated tag when finishing a release or hotfix (default: true). |
tag_message | string | Message for the version tag. |
tag_prefix | string | Tag prefix for flow config mutations. |
topic | string | Topic branch type for generalized actions such as topic-start, topic-list, or topic-publish. |
topic_action | string | Topic branch lifecycle operation. |
upstream_strategy | string | Merge strategy for flow branch integration. |
worktree | boolean | Worktree handling for the branch. finish/delete expose only --keep-worktree and --force-worktree; start and checkout expose --worktree/--no-worktree/--worktree-path. Using the wrong pair raises rather… |
worktree_path | string | Create the worktree at this path instead of the computed one. |
worktrees | boolean | Append a worktree column to a list (only valid with topic_action=list). |
git_workflow Git Workflow Orchestrator
Run named multi-step Git workflows with resumable lifecycle controls. Use action=start|status|continue|abort|list with workflow families such as snapshot, replay, branch_surgery, and publish.
| Parameter | Type | Description |
|---|---|---|
action | string | Lifecycle action for git_workflow execution and state management. |
auto_publish | boolean | Automatically publish after replay/branch_surgery sequence. |
backup_branch | string | Backup branch name for branch_surgery workflow. |
base_branch | string | Base branch for snapshot merge-base checks (default: main). |
confirm_hard_reset | boolean | Required true when reset_to is provided because hard reset is destructive. |
fetch_first | boolean | Fetch before publish workflow steps. |
force_with_lease | boolean | Use --force-with-lease for publish push steps. |
log_count | integer | Commit count for snapshot log output. |
mode | string | Replay mode for replay workflow. |
patch_files | array | Patch/mailbox file list for replay mode=am. |
publish | boolean | Deprecated alias for auto_publish; retained for backward compatibility. |
rebase_onto | string | Optional rebase target before publish push step. |
remote | string | Remote name for publish-related steps (default: origin). |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
reset_to | string | Optional hard-reset target in replay/branch_surgery workflows. |
response_format | string | Output format for the response. |
set_upstream | boolean | Use --set-upstream for publish push steps. |
source_commits | array | Commit list for replay and branch_surgery flows. |
target_branch | string | Target branch for replay/branch_surgery/publish workflows. |
three_way | boolean | Use --3way when applying patch series via git am. |
workflow | string | Named workflow family for multi-step Git orchestration. |
git_stash Git Stash
Stash, list, apply, pop, or drop stashes.
| Parameter | Type | Description |
|---|---|---|
action | string | |
include_untracked | boolean | |
index | integer | |
message | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_rebase Git Rebase
Rebase: start, continue, abort, or skip.
| Parameter | Type | Description |
|---|---|---|
action | string | |
autosquash | boolean | |
branch | string | |
interactive | boolean | |
merges | boolean | |
onto | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
upstream | string |
git_cherry_pick Git Cherry-Pick
Cherry-pick: start, continue, or abort.
| Parameter | Type | Description |
|---|---|---|
action | string | |
mainline | integer | |
no_commit | boolean | |
record_origin | boolean | |
refs | array | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
strategy | string | |
strategy_options | array |
git_merge Git Merge
Merge: start, continue, or abort.
| Parameter | Type | Description |
|---|---|---|
action | string | |
conflict_style | string | |
ff_only | boolean | |
log | boolean | |
no_commit | boolean | |
no_ff | boolean | |
refs | array | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
squash | boolean | |
strategy | string | |
strategy_options | array |
git_bisect Git Bisect
Bisect: start, good, bad, skip, run, or reset.
| Parameter | Type | Description |
|---|---|---|
action | string | |
bad_ref | string | |
command | string | |
command_args | array | |
good_ref | string | |
ref | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_tag Git Tag
Tag: list, create, or delete.
| Parameter | Type | Description |
|---|---|---|
action | string | |
message | string | |
name | string | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
sign | boolean | Sign the tag. Defaults to the server GIT_AUTO_SIGN_TAGS setting. |
signing_key | string | |
target | string |
git_worktree Git Worktree
Worktrees, two ways. Path-addressed (add, remove, lock, unlock, prune, repair) drives plain git worktree and needs nothing but git. Branch-addressed (flow_add, flow_remove, flow_list, flow_path) drives git flow worktree: it addresses worktrees by branch name, computes paths from the gitflow.worktreePath template, and tags provenance so cleanup can tell a git-flow-created worktree (removed) from a hand-made one (detached, work preserved). The flow_* actions require git-flow-next on PATH.
| Parameter | Type | Description |
|---|---|---|
action | string | |
branch | string | |
detached | boolean | |
expire | string | |
force | boolean | |
lock_reason | string | |
path | string | |
paths | array | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
git_submodule Git Submodule
Submodule: add, list, update, sync, or set_branch.
| Parameter | Type | Description |
|---|---|---|
action | string | |
branch | string | |
depth | integer | |
jobs | integer | |
path | string | |
paths | array | |
recursive | boolean | |
remote | boolean | |
repo_path | string | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. |
response_format | string | Output format for the response. |
url | string |
git_docs Git Documentation
Search and browse official Git documentation from git-scm.com. Use action="search" to find relevant commands and concepts by keyword. Use action="man" to fetch the full man page for a specific git command (e.g. query="commit" fetches the git-commit man page). Useful for answering questions about how to use git commands, understanding options, and discovering the right git command for a task.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
query * | string | For action="search": search terms (e.g. "undo last commit"). For action="man": git command name without "git-" prefix (e.g. "commit", "rebase", "merge"). |
response_format | string | Output format for the response. |
git_ping Git MCP Ping
Returns a simple response to verify the server is running.
| Parameter | Type | Description |
|---|---|---|
message | string |