typescript-sdk/examples/repl/README.md
Felix Weinberger 1823aae891
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>
2026-06-26 14:01:10 +01:00

950 B

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:

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.