Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By wshobsonv0.2.1MITIn 1 marketplace
Blocks Claude Code tool calls that violate Cedar authorization policies and records an Ed25519-signed receipt for each call that runs. Hooks run before and after every tool call; receipts can be verified offline.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Cedar policy enforcement + Ed25519 signed receipts for every Claude Code tool call.
The first Claude Code plugin that enforces declarative authorization policies and produces cryptographically verifiable audit trails. Every tool call is evaluated against a Cedar policy, every tool call that runs gets an Ed25519-signed receipt, and every receipt is verifiable offline by anyone with the public key.
./receipts/receipts.jsonl. Modified receipts fail signature verification; linked receipts also expose interior deletion or reordering. A truncated tail and changes to the ordering or membership of an unlinked legacy prefix can go undetected.npx @veritasacta/[email protected] --replay-chain with the public key needs no vendor lookup or account. npx downloads the verifier on first use, so run npm install --no-save @veritasacta/[email protected] in the project before you go offline.# 1. Install this plugin
claude plugin install wshobson/agents/protect-mcp
# 2. Create a Cedar policy file at ./protect.cedar
# (see skills/protect-mcp-setup/SKILL.md for examples)
# 3. Create the signing key once (protect-mcp 0.32.5 sign does not create it).
# Installing the plugin already registers the hooks. An existing key is
# never replaced. To rotate it, move the key and receipts.jsonl to a secure archive first.
if [ ! -e ./protect-mcp.key ]; then
d=$(mktemp -d) && npx [email protected] init --dir "$d" && mv "$d/keys/gateway.json" ./protect-mcp.key
fi
chmod 600 ./protect-mcp.key
echo "/protect-mcp.key" >> .gitignore
# 4. Run Claude Code normally — every tool call is now policy-evaluated
# and produces a signed receipt in ./receipts/
plugins/protect-mcp/
├── skills/protect-mcp-setup/SKILL.md — Full setup and usage guide
├── agents/policy-enforcer.md — Cedar policy author (Opus)
├── agents/receipt-verifier.md — Chain verification expert (Sonnet)
├── commands/verify-receipt.md — /verify-receipt <path>
├── commands/audit-chain.md — /audit-chain [--last N]
└── hooks/hooks.json — PreToolUse + PostToolUse hooks
┌─────────────────────────────────────────────┐
│ Claude Code tool call │
│ (Bash, Edit, Write, Read, WebFetch...) │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ PreToolUse hook → Cedar policy evaluation │
│ │
│ permit / forbid based on: │
│ - principal (the agent) │
│ - action (the tool) │
│ - resource (the target) │
│ - context (command patterns, paths, etc) │
│ │
│ Cedar deny → exit 2, tool blocked │
│ Cedar permit → tool executes │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Tool executes (or doesn't) │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ PostToolUse hook → Ed25519 signed receipt │
│ │
│ Receipt: payload + signature │
│ - payload.tool_name and decision │
│ - payload.request_id and issued_at │
│ - signature over canonical payload │
│ - signed public key and hash link to │
│ the previous receipt │
│ │
│ Appended to ./receipts/receipts.jsonl │
└─────────────────────────────────────────────┘
// Allow read-only tools. One rule can cover several tools: leave `resource`
// open in the scope and compare it in `when`.
permit (
principal,
action == Action::"MCP::Tool::call",
resource
) when {
resource == Tool::"Read" || resource == Tool::"Glob" || resource == Tool::"Grep"
};
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub wshobson/agents --plugin protect-mcp