Title: Fix: Use absolute path to uv executable when installing MCP server (closes #478) by rossheat · Pull Request #481 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Fix: Use absolute path to uv executable when installing MCP server (closes #478) by rossheat · Pull Request #481 · modelcontextprotocol/python-sdk
X Title: Fix: Use absolute path to uv executable when installing MCP server (closes #478) by rossheat · Pull Request #481 · modelcontextprotocol/python-sdk
Description: Fix Claude Desktop MCP server startup failures by using absolute path to uv executable Motivation and Context This change fixes issue #478 where MCP servers fail to start in Claude Desktop with "spawn uv ENOENT" errors. The problem occurs because the MCP SDK hardcodes "uv" as the command without using the full path, and Claude Desktop can't find the executable in its PATH when launched. How Has This Been Tested? Tested by installing an MCP server with the modified code and verifying that Claude Desktop can start it without ENOENT errors. Also verified that it falls back gracefully when the uv path can't be determined. Breaking Changes None. This is a strictly internal improvement that requires no changes from users. 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 The change adds a find_uv_path() utility function that tries to locate the full path to the uv executable using platform-appropriate commands (which on Unix-like systems, where on Windows). If the path is found, it's used in the command configuration; otherwise, it falls back to the current behavior.
Open Graph Description: Fix Claude Desktop MCP server startup failures by using absolute path to uv executable Motivation and Context This change fixes issue #478 where MCP servers fail to start in Claude Desktop with &qu...
X Description: Fix Claude Desktop MCP server startup failures by using absolute path to uv executable Motivation and Context This change fixes issue #478 where MCP servers fail to start in Claude Desktop with &am...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/481
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6df79e08-13a5-d6c0-b671-69ea90913bc3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C61E:D5AA4:255C54:3306DF:6B00BA74 |
| html-safe-nonce | c6c51a6bcab002f0a178b2023c0ca58d71dfb2704adc528d281e928ebd931a28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjFFOkQ1QUE0OjI1NUM1NDozMzA2REY6NkIwMEJBNzQiLCJ2aXNpdG9yX2lkIjoiNjAwODU0MTk0NDc1MjQyMTQ5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9937c4c9b071bf68969750ab4ff763d908297aa63edc8f73387b7cd72e576911 |
| hovercard-subject-tag | pull_request:2451833125 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/481/files |
| twitter:image | https://avatars.githubusercontent.com/u/45441679?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/45441679?s=400&v=4 |
| og:image:alt | Fix Claude Desktop MCP server startup failures by using absolute path to uv executable Motivation and Context This change fixes issue #478 where MCP servers fail to start in Claude Desktop with &qu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5429cbfc6aca8c7b9a086a3c8f47400346f38cc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width