clyops Node API
    Preparing search index...

    Function mcpHttpHandler

    • A request handler serving MCP over streamable HTTP, statelessly: each request gets its own server and transport. Mount it on POST (and GET/DELETE, which it answers with 405) at a path such as /mcp, after a JSON body parser. Pass a function to serve whatever it returns for each request (given the request, e.g. to serve per-caller tools).

      Type Parameters

      • R extends IncomingMessage & { body?: unknown }

      Parameters

      Returns (req: R, res: ServerResponse) => Promise<void>