fastmcp.utilities.tests
Functions
temporary_settings
**kwargs: The settings to override, including nested settings.
run_server_in_process
server_fn: The function that runs a FastMCP server. FastMCP servers are not pickleable, so we need a function that creates and runs one.*args: Arguments to pass to the server function.provide_host_and_port: Whether to provide the host and port to the server function as kwargs.host: Host to bind the server to (default: “127.0.0.1”).port: Port to bind the server to (default: find available port).**kwargs: Keyword arguments to pass to the server function.
- The server URL.
run_server_async
server: FastMCP server instanceport: Port to bind to (default: find available port)transport: Transport type (“http”, “streamable-http”, or “sse”)path: URL path for the server (default: “/mcp”)host: Host to bind to (default: “127.0.0.1”)

