[Cowork] Plugin stdio MCP servers are still "pending" at the start of every turn since 2.1.156, so tools look disconnected on each message
Environment
- Claude desktop app on macOS (Apple silicon), Cowork mode
- A Claude Code plugin with a local stdio MCP server (
legal-it, from themcp-legal-itmarketplace; launched withuv run) - Seen on Claude Code 2.1.156 through 2.1.181 on the maintainer's Mac. A user reports the same symptom in October 2026 with the current app.
What happens
In Cowork every user message starts a new Claude Code process (SessionStart with source resume), and that respawns the plugin's stdio MCP servers. Since 2.1.156 the turn begins before those servers have connected. The assistant gets a "server disconnected / connecting" notice on almost every message. It often tells the user the tool is unavailable, or gives up on the tool call, even though the server connects a few seconds later in the same turn.
Expected As up to 2.1.149: the turn waits for plugin stdio servers to connect, or the tools are not reported as disconnected while the server is still starting.
Evidence
Status of the plugin server in the system/init event at the start of each turn, read from the per-session audit.jsonl (metadata only). Same plugin copy throughout; only the CLI version changes:
| Claude Code | Turns | connected |
pending |
|---|---|---|---|
| 2.1.121 – 2.1.149 (Apr–May 2026) | 176 | 176 | 0 |
| 2.1.156 – 2.1.181 (Jun 2026) | 117 | 6 | 111 |
- Each session has one
system/initper turn, plus oneSessionStart:resumehook event for every turn after the first. So it is one CLI process per turn, and the stdio servers restart on every message. - The server itself is quick to start. On an M4 it answers
initializein under 1.3 s on a warm start, and in about 4 s on a cold start with a warm uv cache. The server never exits on its own, and nothing writes to stdout outside the protocol.
Repro
- Install any plugin that declares a stdio MCP server whose start takes about 1 s or more.
- Open a Cowork session and send a message that needs one of its tools.
- Send a second and a third message.
- Look at the
initevent of each turn in the session'saudit.jsonl. The server ispendingat turn start, and the assistant reports the server as disconnected or connecting.
Possible fixes
- Wait (with a short bound) for plugin stdio servers before starting the turn on
resume, as before 2.1.156. - Or keep the MCP servers alive across turns of the same Cowork session, instead of respawning them for each message.
- Or treat a server that is still connecting as "starting" and retry the tool call, rather than surfacing it as disconnected.