@anthropic-ai/claude-agent-sdk
0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed
0.3.330 is the newest release of 0.3.x.
In short
1 deprecated5 new4 fixed6 changed
- Deprecated
Deprecated sending
mcpServerson Claude Code's command line (today's default,'argv'): a future release defaults to'initialize'; apps running an older Claude Code must update it or set'argv'
Release note
What's changed
Added
mcpServersDelivery: 'initialize': sendsmcpServersin the initialize request instead of on Claude Code's command line; needs the bundled Claude Code or newerAdded
getSessionInfo()to the/coreentryAdded
message_uuidtocancel_async_messageresponses, naming the dropped messageAdded a warning on stderr and as a
system/informationalmessage when a tool list has an entry that doesn't look like a complete ruleAdded a
system/informationalwarning, taggedmanaged_mcp_arrived, when an administrator'smanaged-mcp.jsonarrives during a session and your own MCP servers stop loadingFixed a tool call in a running turn reconnecting to an MCP server just removed with
setMcpServers(), or reporting that it needs authentication; the call is now refusedFixed
resumeSessionAtfailing on an empty reply, and a resumed session losing recent turns after a crash when the previous turn ended with oneFixed a tool result from an SDK MCP server being lost, or delivered to another call, when a long call overlapped a reconnect of the SDK MCP servers
Fixed a hook request that arrives while the SDK is still starting up being refused instead of answered
Improved how secrets are masked in the
descriptionpassed tocanUseTool;inputitself is unchangedImproved the first turn after
SpareProcess.claim(): it no longer waits up to 500 ms for the stdio MCP servers the claim starts, where tool search loads their tools on demandChanged the JSON-RPC
idof requests to an SDK MCP server from a number to a stringChanged
rewindFiles()on macOS, Linux and WSL to leave some files untouched when the sandbox is on, and report them as skippedChanged the
register_repo_rootcontrol request to refuse some folders it used to accept- Deprecated
Deprecated sending
mcpServerson Claude Code's command line (today's default,'argv'): a future release defaults to'initialize'; apps running an older Claude Code must update it or set'argv' Updated to parity with Claude Code v2.1.326
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.326 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.326 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.326 # or bun add @anthropic-ai/claude-agent-sdk@0.3.326
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.