TTypeScript SDKSource ↗
The interactive playground. A fully-featured sessionful HTTP server (tools with input/output schemas + annotations, prompts with completion, direct + templated resources, notifications/message logging, resourc …truncated by Smolify import.

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.


Source: examples/repl/README.md

Generated by smolify with deterministic-repository-import-v1 · 1 source file