Skip to content
Gemini CLI

GuardGit MCP for Gemini CLI

io.github.hessam-mamagani/guardgit-mcp

Pre-commit secret guard, structural JSON diff, merge-tree conflict & atomic commit SEP-1865 MCP App

client:Gemini CLI transport:stdio runtime:npm

Install GuardGit MCP in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "guardgit-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "guardgit-mcp"
      ]
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

GuardGit MCP in other clients