Skip to content

v0.2.0

Choose a tag to compare

@PaytonWebber PaytonWebber released this 10 Jun 18:15
· 10 commits to main since this release
v0.2.0
b47916f

Highlights

  • Concurrent HTTP transport: multiple live sessions (refcounted session map, max_sessions cap), connections handled in parallel, per-session protocol version negotiation.
  • Server-sent events: GET with Accept: text/event-stream opens a per-session stream. Server-initiated notifications (logging, progress, channel events) arrive as SSE events with periodic keepalives.
  • Pagination: list handlers may take (self, Allocator, types.ListParams) to receive the cursor; detected at compile time, existing 2-arg handlers keep working.
  • Cancellation + progress: notifications/cancelled routes to an optional onCancelled hook; Context.sendProgress and CallToolParams.progressToken() support progress reporting.
  • HTTP conformance in CI: a curl-driven script exercises sessions, SSE delivery, security rejections, and termination on every push.

Breaking changes

  • Context construction is now sink-based (.{ .sink = .{ .writer = w } }). Handler-facing methods are unchanged.
  • The HTTP transport handles connections concurrently: pass a thread-safe allocator (e.g. std.heap.smp_allocator) and make handler methods tolerant of concurrent calls.

See CHANGELOG.md for the full list including bug fixes.

Install

zig fetch --save https://github.com/PaytonWebber/zig-mcp-sdk/archive/refs/tags/v0.2.0.tar.gz