Skip to content
Windsurf

protect-context for Windsurf

io.github.xjtlumedia/protect-context

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

client:Windsurf transport:stdio runtime:pypi

Install protect-context in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "protect-context": {
      "command": "uvx",
      "args": [
        "protect-context"
      ],
      "env": {
        "PC_SESSION_ID": "<PC_SESSION_ID>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

protect-context in other clients