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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
change location of MCP client
Ishaan Jaffd61febc05381
diff --git a/litellm/litellm_core_utils/mcp_client/Readme.md b/litellm/mcp_client/Readme.mdsimilarity index 100%rename from litellm/litellm_core_utils/mcp_client/Readme.mdrename to litellm/mcp_client/Readme.mddiff --git a/litellm/litellm_core_utils/mcp_client/__init__.py b/litellm/mcp_client/__init__.pysimilarity index 100%rename from litellm/litellm_core_utils/mcp_client/__init__.pyrename to litellm/mcp_client/__init__.pydiff --git a/litellm/litellm_core_utils/mcp_client/client.py b/litellm/mcp_client/client.pysimilarity index 100%rename from litellm/litellm_core_utils/mcp_client/client.pyrename to litellm/mcp_client/client.pydiff --git a/litellm/litellm_core_utils/mcp_client/tools.py b/litellm/mcp_client/tools.pysimilarity index 100%rename from litellm/litellm_core_utils/mcp_client/tools.pyrename to litellm/mcp_client/tools.pydiff --git a/tests/mcp_tests/test_mcp_litellm_client.py b/tests/mcp_tests/test_mcp_litellm_client.pyindex 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, StdioServerParametersfrom mcp.client.stdio import stdio_clientimport os-from langchain_mcp_adapters.tools import load_mcp_tools-from langgraph.prebuilt import create_react_agent-from langchain_openai import ChatOpenAIimport pytest