From 243ee552a57a875ae25d08348e790ccb0ffea44e Mon Sep 17 00:00:00 2001 From: Arjun Pakhan Date: Wed, 19 Aug 2026 08:24:59 +0000 Subject: [PATCH] fix(mcp): resolve undefined variable typo in mcp_handler --- .../anthropic/experimental_pass_through/messages/mcp_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 096ffe2acef..15cf448b426 100644 --- a/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py +++ b/litellm/llms/anthropic/experimental_pass_through/messages/mcp_handler.py @@ -89,7 +89,7 @@ async def anthropic_messages_with_mcp( max_tokens=max_tokens, messages=list(messages), model=model, - tools=list(lists) if tools else None, # kwargs-ok: param pass-through + tools=list(tools) if tools else None, # kwargs-ok: param pass-through _skip_mcp_handler=True, **kwargs, )