Source · release
Claude Agent SDK (TypeScript) v0.3.319
Summary
Version 0.3.319 of the TypeScript Claude Agent SDK, released on 2026-11-06, matches Claude Code 2.1.319. Its one new feature is MCP task support in SDK sessions. The rest are fixes to session metrics and session deletion.
Key points
- MCP tasks: with
CLAUDE_AUTO_BACKGROUND_TASKS=1and streaming input, an MCP tool call that the server runs as a task goes to the background, withtask_typeset to"mcp_task". Not available on Bedrock, Vertex, or Foundry. deleteSession()now rejects withENOTEMPTYif the session folder could not be fully deleted.session_writes_lostis sent only when the CLI exits 0, and now names the right session after/clearin a resumed session.- The OpenTelemetry
claude_code.session.countmetric no longer countsprewarm()processes that were never claimed. - Install:
npm install @anthropic-ai/claude-agent-sdk@0.3.319.
Why it matters
SDK agents can start long MCP jobs and keep working while they run, the same as Claude Code in the terminal (see Claude Code 2.1.319).