Tip: Claude Code v2.1.118 Hooks Can Now Invoke MCP Tools Directly via type: 'mcp_tool'
Releasebot·medium signal
The new type: 'mcp_tool' hook type in v2.1.118 lets you trigger MCP server calls automatically on events like SubagentStop, file saves, or command completions. This enables automated workflows such as running a Serena-powered semantic check after every agent edit, or triggering a database MCP tool when migrations change. Previously, hooks could only run shell commands or scripts.