Skip to content

Fix: Use absolute path to uv executable in Claude Desktop config #440

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

Merged
merged 3 commits into from
May 8, 2025

Conversation

arcAman07
Copy link
Contributor

@arcAman07 arcAman07 commented Apr 7, 2025

Motivation and Context

When users run mcp install server.py, the CLI adds a configuration to Claude Desktop that uses just "uv" as the command instead of the full path. This causes Claude Desktop to fail when it can't find uv in its PATH environment, leading to errors and wasted developer time debugging configuration issues. This problem is particularly difficult for new users who might not understand why Claude Desktop can't find the uv command.

How Has This Been Tested?

Added a new unit test 'test_absolute_uv_path' that specifically verifies the absolute path to uv is used in the Claude Desktop configuration.
Existing test 'test_command_execution' continues to pass with the changes.
Manually tested with Claude Desktop on macOS to verify the configuration works correctly.
Confirmed that all existing tests continue to pass with the change.

Breaking Changes

None. This change is fully backward compatible and only improves reliability.

Types of changes

  • [✔ ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • [✔] I have read the MCP Documentation
  • [✔ ] My code follows the repository's style guidelines
  • [✔ ] New and existing tests pass locally
  • [✔] I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Copy link
Contributor

@ihrpr ihrpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@ihrpr ihrpr merged commit 280bab3 into modelcontextprotocol:main May 8, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants