File tree Expand file tree Collapse file tree 3 files changed +1362
-993
lines changed
samples/simple-remote-mcp Expand file tree Collapse file tree 3 files changed +1362
-993
lines changed Original file line number Diff line number Diff line change 5
5
from langchain_anthropic import ChatAnthropic
6
6
from langchain_mcp_adapters .tools import load_mcp_tools
7
7
from mcp import ClientSession
8
- from mcp .client .sse import sse_client
8
+ from mcp .client .streamable_http import streamablehttp_client
9
9
10
10
dotenv .load_dotenv ()
11
11
12
12
@asynccontextmanager
13
13
async def make_graph ():
14
- async with sse_client (
14
+ async with streamablehttp_client (
15
15
url = os .getenv ("UIPATH_MCP_SERVER_URL" ),
16
16
headers = {"Authorization" : f"Bearer { os .getenv ('UIPATH_ACCESS_TOKEN' )} " },
17
17
timeout = 60 ,
18
- ) as (read , write ):
18
+ ) as (read , write , _ ):
19
19
async with ClientSession (read , write ) as session :
20
20
await session .initialize ()
21
21
tools = await load_mcp_tools (session )
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ version = "0.0.1"
4
4
description = " simple-remote-mcp"
5
5
authors = [{
name =
" John Doe" ,
email =
" [email protected] " }]
6
6
dependencies = [
7
- " uipath-langchain==0.0.113 " ,
8
- " langchain>=0.3.25 " ,
9
- " langchain-anthropic>=0.3.13 " ,
10
- " langgraph>=0.4.5 " ,
7
+ " uipath-langchain==0.0.118 " ,
8
+ " langchain>=0.3.26 " ,
9
+ " langchain-anthropic>=0.3.17 " ,
10
+ " langgraph>=0.5.3 " ,
11
11
" python-dotenv>=1.0.0" ,
12
- " anthropic>=0.51.0 " ,
13
- " langchain-mcp-adapters>=0.1.0 "
12
+ " anthropic>=0.57.1 " ,
13
+ " langchain-mcp-adapters>=0.1.9 "
14
14
]
15
15
requires-python = " >=3.10"
You can’t perform that action at this time.
0 commit comments