← Back to Plugins
MCP Server MCP

Git

github By github 👁 1 views ▲ 0 votes

Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.

Homepage Verified source GitHub

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

Comments

Sign in to leave a comment

Loading comments...