Skip to main content

connect

Function connect 

Source
pub async fn connect<S>(
    server: S,
    client_info: ClientInfo,
) -> Result<(RunningService<RoleServer, S>, RunningService<RoleClient, ClientInfo>), ConnectError>
where S: Service<RoleServer>,
Expand description

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