claude
fastmcp.cli.claude
Claude app integration utilities.
Functions
get_claude_config_path
Get the Claude config directory based on platform.
update_claude_config
Add or update a FastMCP server in Claude’s configuration.
Args:
file_spec
: Path to the server file, optionally with :object suffixserver_name
: Name for the server in Claude’s configwith_editable
: Optional directory to install in editable modewith_packages
: Optional list of additional packages to installenv_vars
: Optional dictionary of environment variables. These are merged with any existing variables, with new values taking precedence.
Raises:
RuntimeError
: If Claude Desktop’s config directory is not found, indicating Claude Desktop may not be installed or properly set up.