list_hooks
View all registered secret change hooks, including their match criteria, type, and current status.
Instructions
List all registered secret change hooks with their match criteria, type, and status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/server.ts:958-966 (handler)MCP tool handler for "list_hooks" in server.ts. It calls the listAllHooks function (imported from core/hooks.ts) and returns the result as text.
"list_hooks", "List all registered secret change hooks with their match criteria, type, and status.", {}, async () => { const hooks = listAllHooks(); if (hooks.length === 0) return text("No hooks registered"); return text(JSON.stringify(hooks, null, 2)); }, ); - src/core/hooks.ts:107-109 (handler)The core function "listHooks" that retrieves the hook registry from the filesystem. This is the underlying implementation used by the MCP tool.
export function listHooks(): HookEntry[] { return loadRegistry().hooks; }