Implement MCP 2026-07-28 (#2286)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
e4227d135c
commit
1823aae891
1 changed files with 69131 additions and 9001 deletions
12
examples/sse-polling/README.md
Normal file
12
examples/sse-polling/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# sse-polling
|
||||
|
||||
SEP-1699 server-initiated SSE disconnection + client reconnection with `Last-Event-ID` replay. **Sessionful 2025** by definition (the feature lives on `NodeStreamableHTTPServerTransport` + an `EventStore`). `eventStore` resumability is a 2025-session concern with no 2026-07-28
|
||||
per-request equivalent.
|
||||
|
||||
The `long-operation` tool emits two log notifications, calls `ctx.http?.closeSSE()` mid-stream, emits two more while the client is disconnected, then returns. The client transport reconnects after `retryInterval` (300 ms) with `Last-Event-ID`; the event store replays the buffered
|
||||
events. The client asserts the result arrived AND the post-disconnect log was delivered.
|
||||
|
||||
```bash
|
||||
pnpm --filter @mcp-examples/sse-polling server -- --http --port 3001 # term 1
|
||||
pnpm --filter @mcp-examples/sse-polling client -- --http http://127.0.0.1:3001/mcp # term 2
|
||||
```
|
||||
Loading…
Reference in a new issue