Skip to content
VS Code

ctxfile for VS Code

dev.ctxfile/ctxfile

Local-first MCP server that snapshots your project's working state into one context object.

client:VS Code transport:stdio runtime:npm

Install ctxfile in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "notion-token",
      "description": "NOTION_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "ctxfile": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ctxfile"
      ],
      "env": {
        "NOTION_TOKEN": "${input:notion-token}"
      }
    }
  }
}

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

ctxfile in other clients