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
{
"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