What probably matters to youSection of the release
What
Apps that embed Claude Code through its SDK (a software kit for building on top of Claude Code) start Claude Code as a separate program. Until now the SDK always passed MCP servers, the outside services that give Claude extra tools, on that program's command line with --mcp-config. They can now go in the initialize request instead, the first message the app sends Claude Code over its input.
New SDK option mcpServersDelivery, set to 'argv' (command line) or 'initialize'. Any other value throws "Invalid mcpServersDelivery. Expected 'argv' or 'initialize'." An app that starts its own Claude Code without setting it gets the CLAUDE_SDK_MCP_SERVERS_ARGV_DEPRECATED warning.
When an option named mcpServersViaInitialize is set, the started program is no longer given --mcp-config with the servers.
The initialize request gains an optional mcpServers field, keyed by server name. It is the input form of --mcp-config items, keeps credentials off the command line, and is read only under --await-initialize.
The SDK checks the mcp_servers_applied reply. If the reply is not true or false, the session ends with an error saying this Claude Code is too old to read MCP servers from the initialize request. If it is false, the SDK warns that Claude Code did not load the MCP servers sent in the initialize request. Before, only plugins_applied was checked.
Hook callbacks now wait until the initialize request has been written before they run.
claimSession initialize results also carry mcp_servers_applied. Creating a remote session reports runsOn: other_host and hasNothingToClone, and launcher hooks can be registered for SessionStart.
Why
Anything on a command line can be seen by other users on the same machine, including the env values and headers in an MCP config. Sending servers in the initialize request keeps them out of view, and the deprecation warning tells app authors that command-line delivery is on its way out. An app also gets a clear failure instead of quietly running without its MCP servers.