Skip to content

v0.12.1: SDK v2 migration Phase 2

Choose a tag to compare

@cyanheads cyanheads released this 20 Aug 18:07
· 26 commits to main since this release
v0.12.1
d6b8f89

SDK v2 migration Phase 2

  • Tool input accepts a z.discriminatedUnion() of object variants — mutually exclusive argument sets advertise as oneOf branches, each with its own required list and const discriminator (#142)
  • ctx.notify* routes per protocol era, and core.notify / createApp({ eventBus }) carry out-of-request emission to 2026-07-28 subscriptions/listen streams (#193)
  • Stateful HTTP replays a dropped SSE stream on Last-Event-ID from a bounded per-session event store; on by default, MCP_HTTP_RESUMABILITY=false disables it (#215)
  • Handler ctx.traceId / ctx.spanId name the tool_execution:* / resource_read:* span the handler runs in, on every transport (#296)
  • New strict-mode linter rule schema-root-oneof-portability; seven shipped skills bumped

CHANGELOG v0.12.1