{"version":"2.1.331","anchor":"hook-config-accepts-mcp-tool-hooks-with-ifon-failurestatus","canonical_anchor":"hook-config-accepts-mcp-tool-hooks-with-ifon-failurestatus","heading":"Hook settings can define MCP tool hooks with failure and status options","tier":"use","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/hook-config-accepts-mcp-tool-hooks-with-ifon-failurestatus","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Hook settings can define MCP tool hooks with failure and status options\n\nClaude Code's settings reader now accepts mcp_tool hooks, along with on_failure and status_message, when a certain condition holds\n\n**Unclear.** What condition decides whether an mcp_tool hook in your settings is accepted is not known.\n\n**What**\n\nHooks are actions Claude Code runs automatically at set points, configured in your settings. MCP (Model Context Protocol) is the way Claude Code connects to outside tools. The part of Claude Code that reads hook settings now accepts hooks of type `mcp_tool` when a certain condition holds. Two options are read for them:\n\n- `on_failure`: what to do when the hook fails.\n\n- `status_message`: a message to show while the hook runs.\n\nBefore, `mcp_tool` was recognised only when reporting a failure.\n\n**Why**\n\nThis may let you write hooks that call an MCP tool directly in your settings.\n\n- Area: Hooks\n- Names: `mcp_tool`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}