Sign in
Explore
Add-ons · HookEveryday codingTesting & SecurityReviewedRuns shell commands

protect-mcp/hooks.json

Runs evaluate.sh before each tool call and sign.sh after it, for policy checks and signed receipts.

Kind
Hook
Works with
Claude Code
Languages
Shell
Source
wshobson/agents @ 0874a27b17a2
Path
plugins/protect-mcp/hooks/hooks.json
License
MIT
Jobs
Guardrails
InstallInstall it from a plugin marketplace.
/plugin install protect-mcp@claude-code-workflows
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "\"${CLAUDE_PLUGIN_ROOT}\"/hooks/evaluate.sh"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "\"${CLAUDE_PLUGIN_ROOT}\"/hooks/sign.sh"
          }
        ]
      }
    ]
  }
}