@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 new4 fixed3 changed
Release note
What's changed
Added optional remote-session latency fields (
first_text_post_queue_wait_ms,first_text_post_queued_behind) to the success result messageFixed
includePartialMessagesstreams sending a cut-short reply'smessage_stoplate or never, so apps could show the reply as still in progressFixed the error for a revoked claude.ai login, which now reads "Failed to authenticate: OAuth token revoked" instead of a generic or "does not have access" message
Fixed a tool call to an in-process MCP server being left waiting after
toggleMcpServer()disabled the server orsetMcpServers()removed itFixed
commands_changedarriving beforeinit, or twice, at session start: theinitializeresponse now includes commands registered at startupChanged
tool_use_resultfor a WebFetch or WebSearch call that steps aside for a priority "now" message to{ detachedToolCall: true }; the result follows in a later turnChanged
tool_use_resultfor MCP tools:structuredContentover 1,048,576 JSON characters is left off andstructuredContentOmitted: trueset, except for SDK-server and MCP Apps toolsUpdated to parity with Claude Code v2.1.287
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.287 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.287 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.287 # or bun add @anthropic-ai/claude-agent-sdk@0.3.287
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.