Skip to content
VS Code

code context for VS Code

io.github.infino-ai/code-context

Local code search for AI coding agents: hybrid keyword + semantic + SQL over an index in your repo.

client:VS Code transport:stdio runtime:npm

Install code context in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cx-root",
      "description": "CX_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cx-index-dir",
      "description": "CX_INDEX_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cx-auto-sync",
      "description": "CX_AUTO_SYNC",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cx-no-embed",
      "description": "CX_NO_EMBED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cx-no-receipt",
      "description": "CX_NO_RECEIPT",
      "password": true
    }
  ],
  "servers": {
    "code-context": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@infino-ai/code-context"
      ],
      "env": {
        "CX_ROOT": "${input:cx-root}",
        "CX_INDEX_DIR": "${input:cx-index-dir}",
        "CX_AUTO_SYNC": "${input:cx-auto-sync}",
        "CX_NO_EMBED": "${input:cx-no-embed}",
        "CX_NO_RECEIPT": "${input:cx-no-receipt}"
      }
    }
  }
}

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

code context in other clients