Packages

@anthropic-ai/claude-agent-sdk

0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed

Your version

0.3.301

15 Oct 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

3 new1 fixed3 changed

Release note

What's changed

  • Added per-tool permission policies to sdk-type MCP server configs: tools entries with permission_policy always_ask or always_deny, applied on initialize and setMcpServers()

  • Added BUILTIN_TOOL_NAMES and LEGACY_TOOL_NAME_ALIASES exports: the public built-in tool names and their earlier names, for checking permission rules and tool settings

  • Added addPlugins to Query.reloadPlugins() so a host can load more plugin folders into a running session

  • Fixed setModel() with a model ID failing while the account is at its five-hour or weekly usage limit; the model now applies and the next message reports the limit

  • Changed the error when a full disk keeps the login from being refreshed: error is now invalid_request, not authentication_failed, and api_error_status is null, not 401

  • Changed mcpServerStatus() to still report a tool's _meta.ui.visibility when the rest of its _meta.ui fails validation

  • Updated to parity with Claude Code v2.1.301

Update

npm install @anthropic-ai/claude-agent-sdk@0.3.301
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.301
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.301
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.301

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.