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]

litellm_fix(lint): remove unused ToolNameValidationResult imports (#20176)

shin-bot-litellm14f31a0df985
diff --git a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
index 0087bc05b25..5ae5b610805 100644
--- a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
+++ b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py
@@ -67,7 +67,6 @@ from litellm.types.utils import CallTypes
try:
from mcp.shared.tool_name_validation import ( # type: ignore
SEP_986_URL,
- ToolNameValidationResult,
validate_tool_name,
)
except ImportError:
diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
index 1e06c1eace4..3ba841f07fd 100644
--- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py
@@ -60,7 +60,6 @@ except ImportError as e:
if MCP_AVAILABLE:
try:
from mcp.shared.tool_name_validation import ( # type: ignore
- ToolNameValidationResult,
validate_tool_name,
)
except ImportError: