fastmcp.cli.run
is_url
parse_file_path
server_spec
: Path to file, optionally with :object suffiximport_server
file
: Path to the fileserver_object
: Optional object name in format “module:object” or just “object”run_with_uv
server_spec
: Python file, object specification (file:obj), or URLpython_version
: Python version to use (e.g. “3.10”)with_packages
: Additional packages to installwith_requirements
: Requirements file to useproject
: Run the command within the given project directorytransport
: Transport protocol to usehost
: Host to bind to when using http transportport
: Port to bind to when using http transportpath
: Path to bind to when using http transportlog_level
: Log levelshow_banner
: Whether to show the server bannercreate_client_server
url
: The URL to connect tocreate_mcp_config_server
import_server_with_args
file
: Path to the server fileserver_object
: Optional server object nameserver_args
: Optional command line arguments to injectrun_command
server_spec
: Python file, object specification (file:obj), MCPConfig file, or URLtransport
: Transport protocol to usehost
: Host to bind to when using http transportport
: Port to bind to when using http transportpath
: Path to bind to when using http transportlog_level
: Log levelserver_args
: Additional arguments to pass to the servershow_banner
: Whether to show the server banneruse_direct_import
: Whether to use direct import instead of subprocessrun_v1_server