fastmcp.utilities.mcp_config

Functions

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.

Classes

StdioMCPServer

Methods:

to_transport

to_transport(self) -> StdioTransport

RemoteMCPServer

Methods:

to_transport

to_transport(self) -> StreamableHttpTransport | SSETransport

MCPConfig

Methods:

from_dict

from_dict(cls, config: dict[str, Any]) -> MCPConfig