What probably matters to youSection of the release
What
mcp serve runs Claude Code as an MCP server, so another program can use it as a tool. A SessionEnd hook is a command that runs automatically when a session ends. The program calling mcp serve can now send a set of SessionEnd hooks along with its request, and Claude Code holds them to run when the session ends.
The hooks must fit in 8 KiB. If they are larger, or cannot be read, Claude Code logs a warning and holds no SessionEnd hook.
Claude Code refuses to run these hooks when this machine's policy would stop claude from starting.
Why
A program controlling Claude Code remotely can set up cleanup steps that run on this machine when the session ends, while machine policy still has the final say.