mcp-use TypeScript API
    Preparing search index...

    Class StdioConnectionManager

    Owns the lifecycle of a stdio client transport.

    Hierarchy

    • ConnectionManager<StdioClientTransport>
      • StdioConnectionManager
    Index
    • Creates a connection manager for a local server process.

      Parameters

      • serverParams: StdioServerParameters

        Process parameters passed to the SDK transport.

      • errlog: Writable = process.stderr

        Destination for the child process's standard error stream.

      Returns StdioConnectionManager

    • Start the connection manager and establish a connection.

      Returns Promise<StdioClientTransport>

      The established connection.

      If the connection cannot be established.

    • Stop the connection manager and close the connection.

      Returns Promise<void>