Skip to content
VS Code

Codebase Brain for VS Code

io.github.nomannazir/codebase-brain-mcp

Cited, searchable memory of a codebase: hybrid search, git history, impact analysis, doc drift.

client:VS Code transport:stdio runtime:pypi

Install Codebase Brain in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "github-token",
      "description": "GITHUB_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codebase-brain-home",
      "description": "CODEBASE_BRAIN_HOME",
      "password": true
    }
  ],
  "servers": {
    "codebase-brain-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codebase-brain-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "${input:github-token}",
        "CODEBASE_BRAIN_HOME": "${input:codebase-brain-home}"
      }
    }
  }
}

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

Codebase Brain in other clients