mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
change location of MCP client
This commit is contained in:
parent
50ec2bd5c9
commit
039129676c
5 changed files with 8 additions and 3 deletions
|
@ -1,10 +1,15 @@
|
||||||
# Create server parameters for stdio connection
|
# 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 import ClientSession, StdioServerParameters
|
||||||
from mcp.client.stdio import stdio_client
|
from mcp.client.stdio import stdio_client
|
||||||
import os
|
import os
|
||||||
from langchain_mcp_adapters.tools import load_mcp_tools
|
|
||||||
from langgraph.prebuilt import create_react_agent
|
|
||||||
|
|
||||||
from langchain_openai import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue