Skip to content
VS Code

Code-Graph-RAG for VS Code

io.github.vitali87/code-graph-rag

Knowledge-graph RAG for multi-language codebases: index, query and edit code in natural language.

client:VS Code transport:stdio runtime:pypi

Install Code-Graph-RAG in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "orchestrator-provider",
      "description": "ORCHESTRATOR_PROVIDER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "orchestrator-model",
      "description": "ORCHESTRATOR_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "orchestrator-api-key",
      "description": "ORCHESTRATOR_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cypher-provider",
      "description": "CYPHER_PROVIDER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cypher-model",
      "description": "CYPHER_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cypher-api-key",
      "description": "CYPHER_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "memgraph-host",
      "description": "MEMGRAPH_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "memgraph-port",
      "description": "MEMGRAPH_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "target-repo-path",
      "description": "TARGET_REPO_PATH",
      "password": true
    }
  ],
  "servers": {
    "code-graph-rag": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-graph-rag"
      ],
      "env": {
        "ORCHESTRATOR_PROVIDER": "${input:orchestrator-provider}",
        "ORCHESTRATOR_MODEL": "${input:orchestrator-model}",
        "ORCHESTRATOR_API_KEY": "${input:orchestrator-api-key}",
        "CYPHER_PROVIDER": "${input:cypher-provider}",
        "CYPHER_MODEL": "${input:cypher-model}",
        "CYPHER_API_KEY": "${input:cypher-api-key}",
        "MEMGRAPH_HOST": "${input:memgraph-host}",
        "MEMGRAPH_PORT": "${input:memgraph-port}",
        "TARGET_REPO_PATH": "${input:target-repo-path}"
      }
    }
  }
}

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

Code-Graph-RAG in other clients