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:
3131 return path
3232 return None
3333
34+
3435def get_uv_path () -> str :
3536 """Get the full path to the uv executable."""
3637 uv_path = shutil .which ("uv" )
@@ -42,6 +43,7 @@ def get_uv_path() -> str:
4243 return "uv" # Fall back to just "uv" if not found
4344 return uv_path
4445
46+
4547def update_claude_config (
4648 file_spec : str ,
4749 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]:
4747
4848import mcp .types as types
4949from mcp .server .models import InitializationOptions
50- from mcp .shared .message import SessionMessage , ServerMessageMetadata
50+ from mcp .shared .message import ServerMessageMetadata , SessionMessage
5151from mcp .shared .session import (
5252 BaseSession ,
5353 RequestResponder ,
Original file line number Diff line number Diff line change 3333 ErrorData ,
3434 JSONRPCError ,
3535 JSONRPCMessage ,
36- JSONRPCNotification ,
3736 JSONRPCRequest ,
3837 JSONRPCResponse ,
3938 RequestId ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def test_absolute_uv_path(mock_config_path: Path):
5454 """Test that the absolute path to uv is used when available."""
5555 # Mock the shutil.which function to return a fake path
5656 mock_uv_path = "/usr/local/bin/uv"
57-
57+
5858 with patch ("mcp.cli.claude.get_uv_path" , return_value = mock_uv_path ):
5959 # Setup
6060 server_name = "test_server"
@@ -71,5 +71,5 @@ def test_absolute_uv_path(mock_config_path: Path):
7171 # Verify the command is the absolute path
7272 server_config = config ["mcpServers" ][server_name ]
7373 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