Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.309 ·

mcp serve can run SessionEnd hooks sent by the program calling it

When Claude Code runs as an MCP server, the caller can now hand it SessionEnd hooks to run, up to 8 KiB, unless machine policy forbids it

Use it now New Features
JSON All of v2.1.309
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
MCP ServeArea: what it touches
New FeaturesKind: in v2.1.309,
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.

See this entry in the whole of v2.1.309 →

Feedback