What's changed
- Added
listSessionsfunction to discover resumable sessions by project, repo, or globally - Added optional
annotationssupport to thetool()helper function for specifying MCP tool hints (readOnlyHint, destructiveHint, openWorldHint, idempotentHint) - Fixed
mcpServerStatus()to include tools from SDK and dynamically-added MCP servers - Updated to parity with Claude Code v2.1.27
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.27
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.27
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.27
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.27