Repository navigation
v0.3.0
Closes the three remaining Streamable HTTP gaps from v0.2.0.
Highlights
- POST response streaming:
callToolmay take a per-callContext(fn(*Handler, Allocator, Context, CallToolParams), detected at compile time). Over HTTP, notifications sent during the call stream on the POST's own SSE response, progress events first, then the result, as the spec prefers. Over stdio they interleave on stdout. - Resumable event streams: SSE events carry ids, notifications sent with no stream open are buffered per session (
sse_replay_events) and replayed when one opens, andLast-Event-IDresumes after a reconnect. A new GET takes over the stream (last connection wins), so reconnecting clients are never locked out. - Session idle reaper: sessions inactive for
session_idle_seconds(default 600) are terminated by a background task, so clients that never send DELETE no longer pin session slots.
Behavior change
- A second GET stream on a session now takes over instead of receiving 409. Between keepalives a dead client is indistinguishable from a quiet one, so 409 locked out reconnecting clients for up to a keepalive interval.
See CHANGELOG.md for details.
Install
zig fetch --save https://github.com/PaytonWebber/zig-mcp-sdk/archive/refs/tags/v0.3.0.tar.gz