From e131f02db7c6cf6fcc1875062597a443e5b920c6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 19:18:36 +0000 Subject: [PATCH] refactor(proxy): type is_mcp_discovery_request body as Mapping Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/auth_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index ae6fab83a7e..680290d021f 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -857,7 +857,7 @@ MCP_ZERO_SPEND_JSONRPC_METHODS: Final = frozenset({"initialize", "notifications/ MCP_TOOL_CALL_ROUTES: Final = frozenset({"/mcp/tools/call", "/mcp-rest/tools/call"}) -def is_mcp_discovery_request(route: str, request_body: dict) -> bool: +def is_mcp_discovery_request(route: str, request_body: Mapping[str, object]) -> bool: if route in MCP_DISCOVERY_ROUTES: return True if route in MCP_TOOL_CALL_ROUTES or not (route == "/mcp" or route.startswith("/mcp/")):