fastmcp.utilities.mcp_config
infer_transport_type_from_url
infer_transport_type_from_url(url: str | AnyUrl) -> Literal['streamable-http', 'sse']
Infer the appropriate transport type from the given URL.
StdioMCPServer
Methods:
to_transport
to_transport(self) -> StdioTransport
RemoteMCPServer
to_transport(self) -> StreamableHttpTransport | SSETransport
MCPConfig
from_dict
from_dict(cls, config: dict[str, Any]) -> MCPConfig