Skip to content
VS Code

GitWhy — The Context Layer for Git for VS Code

io.github.gitwhy-cli/gitwhy

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

client:VS Code transport:stdio runtime:npm

Install GitWhy — The Context Layer for Git in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gitwhy-api-key",
      "description": "GITWHY_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "gitwhy": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gitwhy-mcp"
      ],
      "env": {
        "GITWHY_API_KEY": "${input:gitwhy-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

GitWhy — The Context Layer for Git in other clients