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
8
examples/streaming/README.md
Normal file
8
examples/streaming/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# streaming
|
||||
|
||||
The three in-flight channels: progress (via `_meta.progressToken` → `notifications/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 `AbortSignal` → `ctx.mcpReq.signal.aborted` server-side).
|
||||
|
||||
```bash
|
||||
pnpm tsx examples/streaming/client.ts
|
||||
```
|
||||
Loading…
Reference in a new issue