Skip to content

Allow custom config path for 'fastmcp install claude-desktop' #3346

Description

@Sumanshu-Nankana

Enhancement

Currently, the fastmcp install claude-desktop command fails if Claude Desktop is installed in a non-standard location. The tool assumes the configuration file is always in the default OS directory (e.g., %AppData%\Roaming\Claude on Windows).

In my case, Claude is installed in a different location, and I receive the following error:

Claude Desktop config directory not found. 
Please ensure Claude Desktop is installed and has been run at least once to initialize its config.

Proposed Solution:
Add a --config-path (or similar) flag to the install command to allow users to manually specify the path to claude_desktop_config.json.

Technical Context:
The current implementation in _scan_claude_desktop() uses hardcoded paths based on sys.platform:

if sys.platform == "win32":
    config_dir = Path(Path.home(), "AppData", "Roaming", "Claude")

Allowing an optional override for path would resolve this issue for users with custom or portable installations.

I am happy to submit a Pull Request for this if the maintainers agree with the approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to FastMCP CLI commands (run, dev, install) or CLI functionality.enhancementImprovement to existing functionality. For issues and smaller PR improvements.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions