What
A 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.
- The host can now declare
cloudElicitations,cloudHostMcpServersandagentSdkVersionwhen it starts the session, andagentSdkVersionis passed on with the other start-up values. - The cloud client passes
hostMcpServersalong and forwards MCP messages and elicitation requests to the host throughonMcpMessageandonElicitationRequest. - Remote sessions route
elicitationandmcp_messagerequests to these callbacks.mcp_messageis accepted only for servers inhostMcpServers. Both are refused when no callback is set, and unanswered MCP requests get a stand-in reply. Before, both were refused. - 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.
- 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.
- Attach failures now carry an exit code, so
open_failedexits with that code.
Why
Apps 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.