Files
gh-mintmcp-agent-security-p…/hooks/hooks.json
2025-11-30 08:40:36 +08:00

47 lines
1.2 KiB
JSON

{
"description": "Secret scanner that blocks sensitive credentials before they are sent to Claude Code or Cursor",
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/secrets_scanner_hook.py --mode=pre --client=claude_code"
}
]
}
],
"PreToolUse": [
{
"matcher": "Read|read",
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/secrets_scanner_hook.py --mode=pre --client=claude_code"
}
]
}
],
"PostToolUse": [
{
"matcher": "Read|read",
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/secrets_scanner_hook.py --mode=post --client=claude_code"
}
]
},
{
"matcher": "Bash|bash",
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/secrets_scanner_hook.py --mode=post --client=claude_code"
}
]
}
]
}
}