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]

change location of MCP client

Ishaan Jaffd61febc05381
diff --git a/litellm/litellm_core_utils/mcp_client/Readme.md b/litellm/mcp_client/Readme.md
similarity index 100%
rename from litellm/litellm_core_utils/mcp_client/Readme.md
rename to litellm/mcp_client/Readme.md
diff --git a/litellm/litellm_core_utils/mcp_client/__init__.py b/litellm/mcp_client/__init__.py
similarity index 100%
rename from litellm/litellm_core_utils/mcp_client/__init__.py
rename to litellm/mcp_client/__init__.py
diff --git a/litellm/litellm_core_utils/mcp_client/client.py b/litellm/mcp_client/client.py
similarity index 100%
rename from litellm/litellm_core_utils/mcp_client/client.py
rename to litellm/mcp_client/client.py
diff --git a/litellm/litellm_core_utils/mcp_client/tools.py b/litellm/mcp_client/tools.py
similarity index 100%
rename from litellm/litellm_core_utils/mcp_client/tools.py
rename to litellm/mcp_client/tools.py
diff --git a/tests/mcp_tests/test_mcp_litellm_client.py b/tests/mcp_tests/test_mcp_litellm_client.py
index 19a40f68c0a..b42278b7fa7 100644
--- a/tests/mcp_tests/test_mcp_litellm_client.py
+++ b/tests/mcp_tests/test_mcp_litellm_client.py
@@ -1,10 +1,15 @@
# Create server parameters for stdio connection
+import os
+import sys
+import pytest
+
+sys.path.insert(
+ 0, os.path.abspath("../../..")
+) # Adds the parent directory to the system path
+
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
import os
-from langchain_mcp_adapters.tools import load_mcp_tools
-from langgraph.prebuilt import create_react_agent
-
from langchain_openai import ChatOpenAI
import pytest