fastmcp.cli.run
FastMCP run command implementation with enhanced type hints.
Functions
is_url
create_client_server
url
: The URL to connect to
- A FastMCP server instance
create_mcp_config_server
load_mcp_server_config
config_path
: Path to fastmcp.json file
- MCPServerConfig object
run_command
server_spec
: Python file, object specification (file:obj), config 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 subprocessskip_source
: Whether to skip source preparation step