docs/python-sdk/fastmcp-cli-install-stdio.mdx
fastmcp.cli.install.stdioStdio command generation for FastMCP install using Cyclopts.
install_stdio <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/stdio.py#L21" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>install_stdio(file: Path, server_object: str | None) -> bool
Generate the stdio command for running a FastMCP server.
Args:
file: Path to the server fileserver_object: Optional server object name (for :object suffix)with_editable: Optional list of directories to install in editable modewith_packages: Optional list of additional packages to installcopy: 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 withinReturns:
stdio_command <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/stdio.py#L78" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>stdio_command(server_spec: str) -> None
Generate the stdio command for running a FastMCP server.
Outputs the shell command that an MCP host would use to start this server over stdio transport. Useful for manual configuration or debugging.
Args:
server_spec: Python file to run, optionally with :object suffix