mcp-git

v0.0.4
mcp-git Checked 1 day ago Published 1 year ago

MCP 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

ParameterTypeDescription
repo_path *stringPath to Git repository

git_diff_unstaged

Shows changes in working directory not yet staged

ParameterTypeDescription
repo_path *stringPath to Git repository

git_diff_staged

Shows changes that are staged for commit

ParameterTypeDescription
repo_path *stringPath to Git repository

git_diff

Shows differences between branches or commits

ParameterTypeDescription
repo_path *stringPath to Git repository
target *stringTarget branch or commit to compare with

git_commit

Records changes to the repository

ParameterTypeDescription
message *stringCommit message
repo_path *stringPath to Git repository

git_add

Adds file contents to the staging area

ParameterTypeDescription
files *arrayArray of file paths to stage
repo_path *stringPath to Git repository

git_reset

Unstages all staged changes

ParameterTypeDescription
repo_path *stringPath to Git repository

git_log

Shows the commit logs

ParameterTypeDescription
repo_path *stringPath to Git repository
max_countnumberMaximum number of commits to show (default: 10)

git_create_branch

Creates a new branch

ParameterTypeDescription
branch_name *stringName of the new branch
repo_path *stringPath to Git repository
start_pointstringStarting point for the new branch

git_checkout

Switches branches

ParameterTypeDescription
branch_name *stringName of branch to checkout
repo_path *stringPath to Git repository

git_show

Shows the contents of a commit

ParameterTypeDescription
repo_path *stringPath to Git repository
revision *stringThe revision (commit hash, branch name, tag) to show

git_init

Initializes a Git repository

ParameterTypeDescription
repo_path *stringPath to directory to initialize git repo

git_stash

Stashes changes in working directory

ParameterTypeDescription
repo_path *stringPath to Git repository

git_stash_pop

Applies and removes a single stashed state

ParameterTypeDescription
repo_path *stringPath to Git repository

git_stash_apply

Applies a single stashed state without removing it

ParameterTypeDescription
repo_path *stringPath to Git repository