Skip to main content

connect

Function connect 

Source
pub async fn connect<S, C>(
    server: S,
    client: C,
) -> Result<(RunningService<RoleServer, S>, RunningService<RoleClient, C>), ConnectError>
Expand description

Helper function to connect an MCP server and client via in-memory transport This handles the initialization handshake by running both concurrently