You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
MCPArea: what it touches
Bug FixesKind: in v2.1.330,
Bug FixesSection of the release
What
A subagent is a helper Claude Code starts to work on part of a task. MCP servers are outside tools Claude Code connects to. When a subagent finishes, Claude Code tidies up the MCP connections it opened. It now closes a connection only when both of these are true:
No other subagent is using the same connection.
The main session's own list of connections does not hold it.
Before, Claude Code closed any connection the subagent had newly opened, without these checks.
Why
One subagent finishing can no longer close an MCP connection that another subagent or the main session is still relying on.