Follow Discord
Sweep 28 Sep 2026 · 18:16Z Build v2.1.284 505 read Stable v2.1.277 Latest v2.1.284 Next v2.1.284 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.284 ·

Headless runs wait for MCP servers that allow rules and hooks depend on

In -p and SDK runs, the first turn now waits for MCP servers named in allow rules or mcp_tool hooks before starting

Group of 2 You'll notice Improvements
JSON All of v2.1.284
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
ImprovementsKind: in v2.1.284,
ImprovementsSection of the release

What

MCP servers are add-ons that give Claude extra tools. In headless runs, meaning -p or the SDK with no interactive screen, Claude Code may start the first turn before every server has connected. It now works out which servers are required and waits for those.

  • Required servers are collected from always-allow permission rules set by cliArg, flagSettings, session and command, and from servers used by mcp_tool hooks on events such as PreToolUse, PostToolUse, UserPromptSubmit and PermissionRequest.
  • When loading is deferred, these requiredServerNames are not deferred. If any are still pending, Claude Code waits for them up to a separate time limit.
  • At the first command the decision is recalculated, and servers that became required since startup cause a fresh wait.
  • The wait records a reason, firstTurnHold, with values such as relay, host_wait, host_no_wait, single_shot, ccr_worker, coordinator, no_tool_search, explicit_mcp_config or lifted.
  • The wait is timed under a new startup measure, mcp_prewait_ms, and also records pendingRequiredBefore and requiredWaitedMs.

The gates named tengu_headless_mcp_first_turn_join and tengu_headless_mcp_prewait are involved. Nothing has been read about either.

Why

If a script or SDK program relies on a particular MCP server from its first prompt, its first turn is less likely to start before that server's tools exist.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not confirmed that the servers collected from allow rules and hooks are the same list the headless wait uses.
Anthropic's release notes agreeChanged the non-interactive first turn to still wait up to 2s for connecting MCP servers named by --allowedTools or an mcp_tool hook, even…

See this entry in the whole of v2.1.284 →

Feedback