File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def get_claude_config_path() -> Path | None:
31
31
return path
32
32
return None
33
33
34
+
34
35
def get_uv_path () -> str :
35
36
"""Get the full path to the uv executable."""
36
37
uv_path = shutil .which ("uv" )
@@ -42,6 +43,7 @@ def get_uv_path() -> str:
42
43
return "uv" # Fall back to just "uv" if not found
43
44
return uv_path
44
45
46
+
45
47
def update_claude_config (
46
48
file_spec : str ,
47
49
server_name : str ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ async def handle_list_prompts(ctx: RequestContext) -> list[types.Prompt]:
47
47
48
48
import mcp .types as types
49
49
from mcp .server .models import InitializationOptions
50
- from mcp .shared .message import SessionMessage , ServerMessageMetadata
50
+ from mcp .shared .message import ServerMessageMetadata , SessionMessage
51
51
from mcp .shared .session import (
52
52
BaseSession ,
53
53
RequestResponder ,
Original file line number Diff line number Diff line change 33
33
ErrorData ,
34
34
JSONRPCError ,
35
35
JSONRPCMessage ,
36
- JSONRPCNotification ,
37
36
JSONRPCRequest ,
38
37
JSONRPCResponse ,
39
38
RequestId ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def test_absolute_uv_path(mock_config_path: Path):
54
54
"""Test that the absolute path to uv is used when available."""
55
55
# Mock the shutil.which function to return a fake path
56
56
mock_uv_path = "/usr/local/bin/uv"
57
-
57
+
58
58
with patch ("mcp.cli.claude.get_uv_path" , return_value = mock_uv_path ):
59
59
# Setup
60
60
server_name = "test_server"
@@ -71,5 +71,5 @@ def test_absolute_uv_path(mock_config_path: Path):
71
71
# Verify the command is the absolute path
72
72
server_config = config ["mcpServers" ][server_name ]
73
73
command = server_config ["command" ]
74
-
75
- assert command == mock_uv_path
74
+
75
+ assert command == mock_uv_path
You can’t perform that action at this time.
0 commit comments