streaming

June 26, 2026 · View on GitHub

The three in-flight channels: progress (via _meta.progressTokennotifications/progress → the client's onprogress callback), logging (ctx.mcpReq.notify({ method: 'notifications/message', … }) — request-tied so it rides the same response stream as progress; the connection-level ctx.mcpReq.log shorthand sends an unrelated notification a per-request HTTP entry cannot deliver mid-call), and cancellation (the client's AbortSignalctx.mcpReq.signal.aborted server-side).

pnpm tsx examples/streaming/client.ts