@anthropic-ai/claude-agent-sdk
0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed
Upgrading @anthropic-ai/claude-agent-sdk From 0.3.273 to 0.3.274
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Added
startup_failure_reasonto the error result a stream-json run writes before exiting on a known startup failure - New
Added
mcpServer: {name, source}tocanUseTooloptions,mcp_serverto tool hook inputs, andsourceto MCP server status rows, so hosts can key trust onsource === "sdk" - New
Added
CLAUDE_CODE_MCP_STARTUP_WAIT_MS(pass viaenv) to bound or disable (0) the first-turn wait for connecting MCP servers - New
Added
CLAUDE_CODE_EMIT_STARTUP_TIMING=1for stream-json hosts: the session's firstsystem/initthen carries the per-phasestartup_timingbreakdown that cloud sessions already emit - Fixed
Fixed
getSessionMessages()omitting a message the user sent while Claude was running a tool; it now comes back as a user message where Claude read it - Fixed
Fixed missing
origin: {kind: 'task-notification'}on the replayed user message when a background task finishes during a running turn (--replay-user-messages)
- New
3 other lines we could not sort, mostly version bumps
- 0.3.274
Improved startup: the first turn no longer waits up to 2s for connecting MCP servers from settings files or plugins whose tools tool search defers;
options.mcpServersservers are still awaited - 0.3.274
Changed queued background-task completions to share one model call: each still gets its own
result, all but the last empty withnum_turns: 0 - 0.3.274
Updated to parity with Claude Code v2.1.274
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.