Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(mypy): add type: ignore for conditional function variants in MCP modules

shin-bot-litellmd9da49bc357a
diff --git a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
index d763b8fb644..4c17a2ff3e0 100644
--- a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
+++ b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
@@ -77,7 +77,7 @@ except ImportError:
is_valid: bool = True
warnings: list = []
- def validate_tool_name(name: str) -> ToolNameValidationResult:
+ def validate_tool_name(name: str) -> ToolNameValidationResult: # type: ignore[misc]
return ToolNameValidationResult()
diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
index 6225f39626d..40f4745615e 100644
--- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
@@ -69,7 +69,7 @@ if MCP_AVAILABLE:
is_valid: bool = True
warnings: list = []
- def validate_tool_name(name: str) -> ToolNameValidationResult:
+ def validate_tool_name(name: str) -> ToolNameValidationResult: # type: ignore[misc]
return ToolNameValidationResult()
from litellm.proxy._experimental.mcp_server.db import (