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 code QA

Ishaan Jaff385206c4bc61
diff --git a/litellm/responses/mcp/mcp_streaming_iterator.py b/litellm/responses/mcp/mcp_streaming_iterator.py
index e43426253de..b0673880cec 100644
--- a/litellm/responses/mcp/mcp_streaming_iterator.py
+++ b/litellm/responses/mcp/mcp_streaming_iterator.py
@@ -41,9 +41,6 @@ async def create_mcp_list_tools_events(
pre_processed_mcp_tools: List[Any]
) -> List[ResponsesAPIStreamingResponse]:
"""Create MCP discovery events using pre-processed tools from the parent"""
- from litellm.responses.mcp.litellm_proxy_mcp_handler import (
- LiteLLM_Proxy_MCP_Handler,
- )
events: List[ResponsesAPIStreamingResponse] = []
@@ -462,8 +459,6 @@ class MCPEnhancedStreamingIterator(BaseResponsesAPIStreamingIterator):
if not tool_calls:
return
- # Create tool execution events
- base_item_id = f"mcp_{uuid.uuid4().hex[:8]}"
for tool_call in tool_calls:
tool_name, tool_arguments, tool_call_id = LiteLLM_Proxy_MCP_Handler._extract_tool_call_details(tool_call)
if tool_name and tool_call_id: