Protect MCP
Gates every tool call through a Cedar policy and signs the decision into a hash-chained receipt.
Install
Ships scriptsClaude Code: /plugin marketplace add wshobson/agents → /plugin install protect-mcp@claude-code-workflows
Ajanın araç çağrıları politikayla sınırlanırken ya da yapılan işlemler için kurcalanamaz bir denetim kaydı gerekirken
- Author
- Tom Farley
- License
- MIT
Two hooks wrap each Claude Code tool call. The first evaluates the request against a Cedar policy file — principal, action, resource, context — and a deny exits with code 2, which is how Claude Code is told to block the call before it runs. The second writes a receipt: tool name, hashes of input and output, the decision, the policy digest, and a link to the previous receipt, all signed with Ed25519 over JCS-canonicalised JSON. Chaining is what makes deletion detectable and not only modification, since a removed receipt breaks the link its successor points at. Verification runs offline through a separate CLI returning exit 0 for valid, 1 for tampered and 2 for malformed, so an auditor needs the public key and nothing else: no account, no network, no trust in whoever ran the agent.
Similar skills
Signed Audit Trails
SkillA single cookbook skill that explains signed tool-call receipts before you commit to running them.
Claude Code Setup
SkillReads a codebase and recommends the hooks, skills, MCP servers and subagents worth adding.
Review Agent Governance
SkillBlocks an agent from posting PR reviews, merges or CI edits until a human opens an approval window.

Comments(0)
Sign in to comment