Skip to content
VS Code

doctree mcp for VS Code

io.github.joesaby/doctree-mcp

BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.

client:VS Code transport:stdio runtime:npm

Install doctree mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "docs-root",
      "description": "DOCS_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docs-glob",
      "description": "DOCS_GLOB",
      "password": true
    },
    {
      "type": "promptString",
      "id": "docs-roots",
      "description": "DOCS_ROOTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "glossary-path",
      "description": "GLOSSARY_PATH",
      "password": true
    }
  ],
  "servers": {
    "doctree-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "doctree-mcp"
      ],
      "env": {
        "DOCS_ROOT": "${input:docs-root}",
        "DOCS_GLOB": "${input:docs-glob}",
        "DOCS_ROOTS": "${input:docs-roots}",
        "GLOSSARY_PATH": "${input:glossary-path}"
      }
    }
  }
}

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

doctree mcp in other clients