Repository navigation
v0.2.0
Highlights
- Concurrent HTTP transport: multiple live sessions (refcounted session map,
max_sessionscap), connections handled in parallel, per-session protocol version negotiation. - Server-sent events:
GETwithAccept: text/event-streamopens 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/cancelledroutes to an optionalonCancelledhook;Context.sendProgressandCallToolParams.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
Contextconstruction 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