{"version":"2.1.337","anchor":"cloud-headless-client-re-declares-host-mcp-servers-and-warns","canonical_anchor":"cloud-headless-client-re-declares-host-mcp-servers-and-warns","heading":"Cloud sessions can use the host app's MCP servers and ask it questions","tier":"notice","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/cloud-headless-client-re-declares-host-mcp-servers-and-warns","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Cloud sessions can use the host app's MCP servers and ask it questions\n\nApps running Claude Code cloud sessions can offer their own MCP servers and answer questions, with warnings when a server isn't taken\n\n**What**\n\nA cloud session is a Claude Code session that runs on Anthropic's machines while an app, the host, drives it. MCP servers are programs that give Claude extra tools. An elicitation is a question a tool asks the user mid-task.\n\n- The host can now declare `cloudElicitations`, `cloudHostMcpServers` and `agentSdkVersion` when it starts the session, and `agentSdkVersion` is passed on with the other start-up values.\n\n- The cloud client passes `hostMcpServers` along and forwards MCP messages and elicitation requests to the host through `onMcpMessage` and `onElicitationRequest`.\n\n- Remote sessions route `elicitation` and `mcp_message` requests to these callbacks. `mcp_message` is accepted only for servers in `hostMcpServers`. Both are refused when no callback is set, and unanswered MCP requests get a stand-in reply. Before, both were refused.\n\n- After each start-up, the client checks that the cloud session took the host's MCP servers, re-declares any it did not, and warns 'The cloud session did not take this app's...' if one is still refused. Each declaration waits up to 60000 ms, and later messages are held until it finishes.\n\n- Attaching to a session holds start-up while host servers exist, reads stored turns (logging '[headlessCloud] stored turns not read in time' if it times out), and shows questions still waiting for an answer when the worker is not asleep.\n\n- Attach failures now carry an exit code, so `open_failed` exits with that code.\n\n**Why**\n\nApps built on Claude Code can keep their own tools working in cloud sessions and answer Claude's questions, and they get a visible warning when a server is rejected.\n\n- Area: MCP\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}