@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 new2 fixed3 changed
Release note
What's changed
Added MCP task support in SDK sessions (not on Bedrock, Vertex or Foundry): with
CLAUDE_AUTO_BACKGROUND_TASKS=1and streaming input, an MCP task runs in the background withtask_type"mcp_task"Fixed the OpenTelemetry
claude_code.session.countmetric countingprewarm()processes that were never claimed; a pre-started process now counts once, whenSpareProcess.claim()succeedsFixed
session_writes_lostlisting the wrong session intranscript_session_idsafter/clearin a session resumed from a transcript file outside the projects folderImproved
deleteSession()to reject withENOTEMPTYif the session's folder could not be fully deletedChanged
session_writes_lostto be sent only when the CLI exits 0; a run that ends on an error result now gets only the stderr lineUpdated to parity with Claude Code v2.1.319
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.319 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.319 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.319 # or bun add @anthropic-ai/claude-agent-sdk@0.3.319
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.