fastmcp.utilities.mcp_config

Functions

composite_server_from_mcp_config

composite_server_from_mcp_config(config: MCPConfig, name_as_prefix: bool = True) -> FastMCP[None]
A utility function to create a composite server from an MCPConfig.

mount_mcp_config_into_server

mount_mcp_config_into_server(config: MCPConfig, server: FastMCP[Any], name_as_prefix: bool = True) -> None
A utility function to mount the servers from an MCPConfig into a FastMCP server.