MCP server for git operations over stdio
- Go 100%
|
All checks were successful
ci/woodpecker/push/lint-test-release Pipeline was successful
repo_path now resolves against current working directory instead of ~/Documents/siempie/. Absolute paths also supported. Clone destination uses pwd instead of hardcoded siempie path. |
||
|---|---|---|
| .woodpecker | ||
| .gitignore | ||
| .goreleaser.yaml | ||
| .markdownlint-cli2.jsonc | ||
| git.go | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| readme.md | ||
| renovate.json | ||
| tools.go | ||
mcp-git
MCP server for git operations over stdio, scoped to current working directory.
Tools
| Tool | Description |
|---|---|
git_clone |
Clone a repo using token auth |
git_status |
Show working tree status |
git_add |
Stage files for commit |
git_commit |
Create a conventional commit |
git_push |
Push to origin/main |
git_pull |
Pull from origin/main |
git_log |
Show recent commit history |
git_diff |
Show working tree or staged diff |
git_branch |
List or create branches |
git_checkout |
Switch branches |
Build
go build -o mcp-git .
Usage
Add to your MCP client config:
{
"mcpServers": {
"mcp-git": {
"command": "/path/to/mcp-git"
}
}
}
The server communicates over stdio using the MCP protocol. All repo paths are resolved relative to the current working directory, or as absolute paths.