MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / get_uv_path

Function get_uv_path

src/mcp/cli/claude.py:51–59  ·  view source on GitHub ↗

Get the full path to the uv executable.

()

Source from the content-addressed store, hash-verified

49
50
51def get_uv_path() -> str:
52 """Get the full path to the uv executable."""
53 uv_path = shutil.which("uv")
54 if not uv_path:
55 logger.error(
56 "uv executable not found in PATH, falling back to 'uv'. Please ensure uv is installed and in your PATH"
57 )
58 return "uv" # Fall back to just "uv" if not found
59 return uv_path
60
61
62def update_claude_config(

Callers 2

test_get_uv_pathFunction · 0.90
update_claude_configFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by 1

test_get_uv_pathFunction · 0.72