MCP Server
MCP
Git
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
Install
npx -y @abhishekmcp/[email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"identifier": "@abhishekmcp/git",
"version": "0.2.0",
"runtimeHint": "npx",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Allowed repo root directories (comma-separated). Required — the server refuses to start without it.",
"isRequired": true,
"format": "string",
"name": "GIT_ROOTS"
},
{
"description": "Set to 1 or true to enable local write tools (stage/commit/branch/checkout).",
"format": "string",
"name": "GIT_WRITABLE"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment