{"version":"2.1.326","anchor":"sdk-initialize-hold-extended-to-mcpservers-repl-redials-mcp","canonical_anchor":"sdk-initialize-hold-extended-to-mcpservers-repl-redials-mcp","heading":"SDK apps that pass MCP servers at startup now wait until those servers are set up","tier":"notice","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/sdk-initialize-hold-extended-to-mcpservers-repl-redials-mcp","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### SDK apps that pass MCP servers at startup now wait until those servers are set up\n\nSDK sessions that pass `mcpServers` at startup now wait for setup before the first prompt, and the REPL tool connects needed MCP servers before it runs\n\n**What**\n\nApps that embed Claude Code through its SDK (a software kit for building on top of Claude Code) send a startup request when they connect. Claude Code already held back the first prompt until that request was answered when it included managed settings. It now does the same when the request includes `mcpServers`. MCP servers are add-ons that give Claude extra tools.\n\nThe REPL tool, which runs code for Claude, now also checks that code for MCP tool names (names starting with `mcp__`). It connects to those servers before running the code.\n\n**Why**\n\nBefore, the first prompt or a piece of code could run before the MCP servers an app had supplied were ready, so their tools could be missing. This change removes that timing problem.\n\n- Area: Agents\n- Names: `mcpServers`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}