- •
RestServer.fetchHandler() → fetch(Request): Response
- • Same RestHandler pipeline as Express — full parity
- •
addFetchHandler (exact paths) · addFetchPrefix (static)
- •
listen: false hands the port to the host
- • Node native —
rest.listener: 'native'
- • Express — default; raw req/res routes live here
- • Fastify —
installFastifyHost (non-greedy)
- • Hono · Bun · Deno · Cloudflare Workers
- •
mountMcpHttpFetch — Web Streamable HTTP transport
- •
installMcpHttp auto-selects fetch vs Express
- • OAuth bearer + strategy auth, session pinning
- • REST + MCP + OpenAPI from one listener