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

Claude Code v2.1.299 ·

claude mcp serve reads a session id sent with each tool call

When Claude Code runs as an MCP server, it reads a session id from each call's anthropic/session metadata and warns when it is invalid

Use it now Improvements
JSON All of v2.1.299
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
MCP ServeArea: what it touches
ImprovementsKind: in v2.1.299,
What probably matters to youSection of the release
What

mcp serve runs Claude Code as an MCP server, a program that other apps can connect to and use as a source of tools. It now looks for a session id in the extra details sent with each tool call, under the key anthropic/session. A session is one Claude Code conversation. If the value is not a valid session id, Claude Code logs a warning and records events under its own id instead.

Why

An app connecting to Claude Code this way can now link a call's events to a particular session.

Read from
Names in the bundleclaude mcp serveanthropic/session
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up claude mcp serve, on Claude Code changelog. * Changed fork subagents (`subagent_type: "fork"`) to be on by default in `claude -p`, the Agent SDK, the desktop app and VS Code, as they already are in the terminal; `CLAUDE_CODE_FORK_SUBAGENT=0` turns them off, and `claude mcp serve` ne… changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up claude mcp serve, on Claude Code changelog.

See this entry in the whole of v2.1.299 →

Feedback