Skip to content
VS Code

rag for VS Code

io.github.fieldcure/rag

MCP RAG server with hybrid search, multi-KB support, and AI-powered chunk contextualization.

client:VS Code transport:stdio runtime:nuget

Install rag in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "openai-api-key",
      "description": "OPENAI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gemini-api-key",
      "description": "GEMINI_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "voyage-api-key",
      "description": "VOYAGE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "groq-api-key",
      "description": "GROQ_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "rag": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "FieldCure.Mcp.Rag",
        "--yes"
      ],
      "env": {
        "OPENAI_API_KEY": "${input:openai-api-key}",
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}",
        "GEMINI_API_KEY": "${input:gemini-api-key}",
        "VOYAGE_API_KEY": "${input:voyage-api-key}",
        "GROQ_API_KEY": "${input:groq-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

rag in other clients