Copy this example
What each part does
new Redop(...)defines the server identity returned duringinitializeserverInfogroups 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 port3000
Run it
http://localhost:3000/mcp.
Verify the result
- send
initializetohttp://localhost:3000/mcp - confirm your client can discover the
pingtool - keep the server small until the transport works cleanly