Skip to content
Cursor

protect-context for Cursor

io.github.xjtlumedia/protect-context

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

client:Cursor transport:stdio runtime:pypi

Install protect-context in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

protect-context in other clients