docs/python-sdk/fastmcp-cli-install-cursor.mdx
fastmcp.cli.install.cursorCursor integration for FastMCP install using Cyclopts.
generate_cursor_deeplink <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/cursor.py#L22" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>generate_cursor_deeplink(server_name: str, server_config: StdioMCPServer) -> str
Generate a Cursor deeplink for installing the MCP server.
Args:
server_name: Name of the serverserver_config: Server configurationReturns:
open_deeplink <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/cursor.py#L47" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>open_deeplink(deeplink: str) -> bool
Attempt to open a Cursor deeplink URL using the system's default handler.
Args:
deeplink: The deeplink URL to openReturns:
install_cursor_workspace <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/cursor.py#L59" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>install_cursor_workspace(file: Path, server_object: str | None, name: str, workspace_path: Path) -> bool
Install FastMCP server to workspace-specific Cursor configuration.
Args:
file: Path to the server fileserver_object: Optional server object name (for :object suffix)name: Name for the server in Cursorworkspace_path: Path to the workspace directorywith_editable: Optional list of directories to install in editable modewith_packages: Optional list of additional packages to installenv_vars: Optional dictionary of environment variablespython_version: Optional Python version to usewith_requirements: Optional requirements file to install fromproject: Optional project directory to run withinReturns:
install_cursor <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/cursor.py#L143" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>install_cursor(file: Path, server_object: str | None, name: str) -> bool
Install FastMCP server in Cursor.
Args:
file: Path to the server fileserver_object: Optional server object name (for :object suffix)name: Name for the server in Cursorwith_editable: Optional list of directories to install in editable modewith_packages: Optional list of additional packages to installenv_vars: Optional dictionary of environment variablespython_version: Optional Python version to usewith_requirements: Optional requirements file to install fromproject: Optional project directory to run withinworkspace: Optional workspace directory for project-specific installationReturns:
cursor_command <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/cli/install/cursor.py#L228" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>cursor_command(server_spec: str) -> None
Install an MCP server in Cursor.
Args:
server_spec: Python file to install, optionally with :object suffix