Skip to content

v0.3.0

Choose a tag to compare

@PaytonWebber PaytonWebber released this 10 Jun 18:35
· 8 commits to main since this release
v0.3.0
bfd3876

Closes the three remaining Streamable HTTP gaps from v0.2.0.

Highlights

  • POST response streaming: callTool may take a per-call Context (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, and Last-Event-ID resumes 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