Skip to content
VS Code

protect-context for VS Code

io.github.xjtlumedia/protect-context

Agent guardrails: contract, evidence ledger, loop brake, diff-scope warnings, durable journal.

client:VS Code transport:stdio runtime:pypi

Install protect-context in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pc-session-id",
      "description": "PC_SESSION_ID",
      "password": true
    }
  ],
  "servers": {
    "protect-context": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "protect-context"
      ],
      "env": {
        "PC_SESSION_ID": "${input:pc-session-id}"
      }
    }
  }
}

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

protect-context in other clients