Skip to main content
This is the fastest way to get a Redop server working end to end.

Copy this example

What each part does

  • new Redop(...) defines the server identity returned during initialize
  • serverInfo groups the MCP-facing metadata for the server
  • .tool(...) registers one MCP tool
  • the handler returns plain serializable data
  • .listen(3000) starts the HTTP transport on port 3000

Run it

Once it starts, your MCP endpoint will be available at http://localhost:3000/mcp.

Verify the result

  • send initialize to http://localhost:3000/mcp
  • confirm your client can discover the ping tool
  • keep the server small until the transport works cleanly

Next