@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.326 to 0.3.327
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 0
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.3.327
- Breaking0.3.327
- Deprecated0.3.327
Release by release
- Breaking
Changed
query(),startup()andprewarm()to refuse options that can't be sent to Claude Code, such as an agent with a circular or BigInt field. Fix the named option. - Breaking
Changed hook options to require arrays: a hook event's value and a matcher's
hooks. A Set, generator, plain object,trueor number is now refused. - Deprecated
Deprecated
createSdkMcpServer()servers in an agent'smcpServers: ignored with a warning, and other options apply. Move them to top-levelmcpServers, which gives the main session their tools. - Fixed
Fixed
task_startedsending Claude Code's own text, such as a task notification, aspromptwhen a background subagent is woken; such an event now has noprompt - Fixed
Fixed Claude reporting a background agent as still running when its permission request had waited on
canUseToolfor 30 seconds or more
- Breaking
4 other lines we could not sort, mostly version bumps
- 0.3.327
Reverted 0.3.326's fix for a tool result from an SDK MCP server being lost, or delivered to another call, after a reconnect
- 0.3.327
Changed the JSON-RPC
idof requests to an SDK MCP server back from a string to a number - 0.3.327
Changed background retries for most MCP servers on other machines, reached by hostname over https, to go on for about a day after a drop, up from at most about 27 minutes
- 0.3.327
Updated to parity with Claude Code v2.1.327
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.