fastmcp.cli.install.mcp_json
MCP configuration JSON generation for FastMCP install using Cyclopts.
Functions
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 list of directories 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 within
- True if generation was successful, False otherwise
mcp_json_command
server_spec: Python file to install, optionally with :object suffix

