protect-context
v3.3.1Agent guardrails: contract, evidence ledger, loop brake, diff-scope warnings, durable journal.
Values you need
| Variable | What it is | |
|---|---|---|
PC_SESSION_ID | optional | Session name for evidence and loop views when several host sessions share one repo. Leave unset to use the default session. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add protect-context -- uvx protect-context==3.3.1 mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"protect-context": {
"args": [
"protect-context==3.3.1",
"mcp"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"protect-context": {
"args": [
"protect-context==3.3.1",
"mcp"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"protect-context": {
"args": [
"protect-context==3.3.1",
"mcp"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.protect-context]
command = "uvx"
args = ["protect-context==3.3.1", "mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: guard_status, guard_verify, guard_evidence, guard_contract, guard_note, guard_journal, guard_intent, guard_recall, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json