fastmcp.cli.install.mcp_json
install_mcp_json
file
: Path to the server fileserver_object
: Optional server object name (for :object suffix)name
: Name for the server in MCP configwith_editable
: Optional directory to install in editable modewith_packages
: Optional list of additional packages to installenv_vars
: Optional dictionary of environment variablescopy
: If True, copy to clipboard instead of printing to stdoutpython_version
: Optional Python version to usewith_requirements
: Optional requirements file to install fromproject
: Optional project directory to run withinmcp_json_command
server_spec
: Python file to install, optionally with :object suffix