Skip to content
Gemini CLI

GitWhy — The Context Layer for Git for Gemini CLI

io.github.gitwhy-cli/gitwhy

The shared AI context engine for git — save, search, and share the reasoning behind code changes.

client:Gemini CLI transport:stdio runtime:npm

Install GitWhy — The Context Layer for Git in Gemini CLI

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "gitwhy": {
      "command": "npx",
      "args": [
        "-y",
        "gitwhy-mcp"
      ],
      "env": {
        "GITWHY_API_KEY": "<GITWHY_API_KEY>"
      }
    }
  }
}

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

GitWhy — The Context Layer for Git in other clients