@backblaze-labs/b2-mcp
    Preparing search index...

    Function buildHttpServer

    • Build a configured Node HTTP server without listening.

      Parameters

      • options: HttpServerOptions = {}

        Pipeline and middleware hooks for request handling.

      Returns HttpServerHandle

      A server handle with the Node server and drain function.

      Tests use this to exercise the HTTP pipeline in-process. Production startup should call startHttp, which also validates credential mode and installs process signal handlers.

      const { server, drain } = buildHttpServer();
      server.listen(3000);
      drain();