Skip to main content
Use this example when you want the smallest useful Redop server.

What it shows

  • serverInfo for MCP-facing metadata
  • a no-input ping tool
  • a JSON-Schema-style echo tool
  • HTTP transport startup with .listen(3000)

Full code

Why this example is useful

  • the constructor uses serverInfo instead of the older top-level metadata fields
  • onBeforeHandle(...) adds request-scoped timing data
  • the server exposes ping and echo over HTTP at /mcp

Run it