From 30ad47b03d810b52f2aaa0d7abab8e23da38aa56 Mon Sep 17 00:00:00 2001 From: Arjun Pakhan Date: Wed, 19 Aug 2026 06:16:20 +0000 Subject: [PATCH] style: apply ruff formatting to mcp_handler and test file --- .../experimental_pass_through/messages/mcp_handler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py b/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py index 6c242e8cc7e..ada3efef65d 100644 --- a/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py +++ b/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py @@ -146,10 +146,7 @@ async def anthropic_messages_with_mcp( # If any requested tool is not owned by server-side MCP (e.g. client-native tools like Read/Bash), # do not auto-execute server-side. Pass the full response back to the client. - has_client_side_tool = any( - block.get("name") not in tool_server_map - for block in tool_use_blocks - ) + has_client_side_tool = any(block.get("name") not in tool_server_map for block in tool_use_blocks) if has_client_side_tool: break