Skip to content
VS Code

better code review graph for VS Code

io.github.n24q02m/better-code-review-graph

Token-efficient code review knowledge graph: semantic search and call-graph resolution.

client:VS Code transport:stdio runtime:pypi

Install better code review graph in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "embedding-models",
      "description": "EMBEDDING_MODELS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-embedding-model",
      "description": "LOCAL_EMBEDDING_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-rerank-model",
      "description": "LOCAL_RERANK_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-embedding-dim",
      "description": "LOCAL_EMBEDDING_DIM",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-embedding-model-file",
      "description": "LOCAL_EMBEDDING_MODEL_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-embedding-pooling",
      "description": "LOCAL_EMBEDDING_POOLING",
      "password": true
    },
    {
      "type": "promptString",
      "id": "local-embedding-normalize",
      "description": "LOCAL_EMBEDDING_NORMALIZE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "summary-models",
      "description": "SUMMARY_MODELS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cohere-api-key",
      "description": "COHERE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openrouter-api-key",
      "description": "OPENROUTER_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "embedding-backend",
      "description": "EMBEDDING_BACKEND",
      "password": true
    },
    {
      "type": "promptString",
      "id": "embedding-api-base",
      "description": "EMBEDDING_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "llm-api-base",
      "description": "LLM_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "summary-model",
      "description": "SUMMARY_MODEL",
      "password": true
    }
  ],
  "servers": {
    "better-code-review-graph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "better-code-review-graph"
      ],
      "env": {
        "EMBEDDING_MODELS": "${input:embedding-models}",
        "LOCAL_EMBEDDING_MODEL": "${input:local-embedding-model}",
        "LOCAL_RERANK_MODEL": "${input:local-rerank-model}",
        "LOCAL_EMBEDDING_DIM": "${input:local-embedding-dim}",
        "LOCAL_EMBEDDING_MODEL_FILE": "${input:local-embedding-model-file}",
        "LOCAL_EMBEDDING_POOLING": "${input:local-embedding-pooling}",
        "LOCAL_EMBEDDING_NORMALIZE": "${input:local-embedding-normalize}",
        "SUMMARY_MODELS": "${input:summary-models}",
        "COHERE_API_KEY": "${input:cohere-api-key}",
        "OPENROUTER_API_KEY": "${input:openrouter-api-key}",
        "EMBEDDING_BACKEND": "${input:embedding-backend}",
        "EMBEDDING_API_BASE": "${input:embedding-api-base}",
        "LLM_API_BASE": "${input:llm-api-base}",
        "SUMMARY_MODEL": "${input:summary-model}"
      }
    }
  }
}

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

better code review graph in other clients