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
13
examples/repl/README.md
Normal file
13
examples/repl/README.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# repl (excluded)
|
||||
|
||||
The interactive playground. A fully-featured **sessionful** HTTP server (tools with input/output schemas + annotations, prompts with completion, direct + templated resources, `notifications/message` logging, `resources/list_changed`, in-memory `eventStore` for resumability)
|
||||
paired with a readline REPL client that can drive every primitive by hand — `list-tools`, `call-tool`, `list-prompts`, `get-prompt`, `list-resources`, `read-resource`, form elicitation, resumable notification streams (`reconnect`, `run-notifications-tool-with-resumability`).
|
||||
|
||||
Excluded from the runner (`package.json#example.excluded`); run manually:
|
||||
|
||||
```sh
|
||||
pnpm run server # terminal 1 — listens on http://localhost:3000/mcp
|
||||
pnpm run client # terminal 2 — readline REPL
|
||||
```
|
||||
|
||||
Try `multi-greet Ada`, `collect-info contact`, `call-tool add-resource {"name":"n1","text":"hello"}` then `list-resources`, or `start-notifications 500 5`.
|
||||
Loading…
Reference in a new issue