Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do i need to change so Claude Desktop can natively run uv command without specifying the full path? #189

Open
pietz opened this issue Feb 5, 2025 · 2 comments

Comments

@pietz
Copy link

pietz commented Feb 5, 2025

Describe the bug
The mcp install server.py adds a simple uv command to the config. However, this doesnt work on my macOS system. I always need to provide the full uv path even though i have set it up in my $PATH.

To Reproduce
Steps to reproduce the behavior:

  1. Use MCP server from Quickstart
  2. mcp install server.py
  3. appears in claude config
  4. When launching Claude Desktop: Failed to start MCP server: Could not start MCP server Demo: Error: spawn uv ENOENT

Expected behavior
For most people it seems to work with just "uv". I want that as well.

Desktop (please complete the following information):

  • OS: macOS 15.3
@g-votte
Copy link

g-votte commented Feb 9, 2025

As documented in the MCP Quick Start, it is the user's responsibility to specify the full path to the uv executable in the claude_desktop_config.json:

You may need to put the full path to the uv executable in the command field. You can get this by running which uv on MacOS/Linux or where uv on Windows.

Another approach would be to configure the PATH environment variable for application launches using OS-specific mechanisms (such as launchd on macOS).

Potential Automation

Currently, the command is hardcoded as "uv" in the update_claude_config function:

"command": "uv",

While automatic path detection in python-sdk might be possible, it would be unreliable because the environment where update_claude_config runs may have different PATH settings than Claude Desktop's runtime environment.

@Mehdi-Bl
Copy link

Use docker, that's the best under-rated solution. Contain the MCP server depencies and clean versionning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants