Skip to content
VS Code

context slicer for VS Code

io.github.krishthesmart/context-slicer

Non-destructive context filter for AI chats that sends only what the active task needs.

client:VS Code transport:stdio runtime:npm

Install context slicer in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "context-slicer-db",
      "description": "CONTEXT_SLICER_DB",
      "password": true
    }
  ],
  "servers": {
    "context-slicer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@krishthesmart/context-slicer"
      ],
      "env": {
        "CONTEXT_SLICER_DB": "${input:context-slicer-db}"
      }
    }
  }
}

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

context slicer in other clients