infer_transport_from_endpoint

Function infer_transport_from_endpoint 

Source
pub fn infer_transport_from_endpoint(
    endpoint: Option<&str>,
) -> Option<McpTransportType>
Expand description

Infer the MCP transport type from an endpoint URL.

Returns Some(McpTransportType::Http) when the endpoint starts with http:// or https://, None otherwise (e.g. for stdio commands).