Skip to content
VS Code

Codna — repository intelligence for VS Code

io.github.thyn-ai/codna

Map a repo before spending a token: triage, bug-fix PRs, SARIF reachability, on-device recall.

client:VS Code transport:stdio runtime:pypi

Install Codna — repository intelligence in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "github-token",
      "description": "GITHUB_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codna-api-key",
      "description": "CODNA_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "codna": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codna"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}",
        "GITHUB_TOKEN": "${input:github-token}",
        "CODNA_API_KEY": "${input:codna-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

Codna — repository intelligence in other clients