A Model Context Protocol (MCP) server for Git repository interaction and automation, written in Go. Provides tools to read, search, and manipulate Git repositories via Large Language Models with multi-repository support.
Shows the working tree status.
Shows changes in the working directory that are not yet staged.
Shows changes that are staged for commit.
Shows differences between branches or commits.
Records changes to the repository.
Adds file contents to the staging area.
Unstages all staged changes.
Shows the commit logs.
Creates a new branch from an optional base branch.
Switches branches.
Shows the contents of a commit.
Initialize a new Git repository.
Pushes local commits to a remote repository (requires --write-access flag).
Lists all available Git repositories.
{
"mcpServers": {
"git": {
"command": "/path/to/git-mcp-go",
"args": ["serve", "-r=/path/to/repo1,/path/to/repo2", "--mode", "shell"]
}
}
}