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
Backend API Security
SkillTwo backend agents that write secure API code rather than audit it after the fact.
Blockchain & Web3
SkillSolidity security, ERC token standards and Hardhat or Foundry testing for smart contract work.
Frontend & Mobile Security
SkillXSS, CSP and mobile storage security handled by three agents plus a sink-pattern scanner.
Comments(0)
Sign in to comment