{"version":"2.1.337","anchor":"posttooluse-hook-replacement-of-mcp-output-tracked","canonical_anchor":"posttooluse-hook-replacement-of-mcp-output-tracked","heading":"Claude Code now records when a hook replaces an MCP tool's output","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/posttooluse-hook-replacement-of-mcp-output-tracked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Claude Code now records when a hook replaces an MCP tool's output\n\nClaude Code now records when a PostToolUse hook replaces the output of an MCP tool\n\n**What**\n\nA hook is a command you set up to run automatically at a set point. A `PostToolUse` hook runs after a tool call succeeds, and it can replace the tool's output. Claude Code now records a usage event when such a hook replaces the output of an MCP tool, which is a tool supplied by an add-on server. The check that compares the hook's output with the original has also been reorganised.\n\nTwo other usage events were added, one for a reminder about edited files and one for an offer of a chart.\n\n**Why**\n\nThis changes what Claude Code records about hooks rather than how hooks behave.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}