File tree Expand file tree Collapse file tree 4 files changed +669
-102
lines changed Expand file tree Collapse file tree 4 files changed +669
-102
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies = [
13
13
" pydantic>=2.10.6" ,
14
14
" aiohttp>=3.11.12" ,
15
15
" typing-extensions>=4.12.2" ,
16
- " langchain-mcp-adapters>=0.0.5 " ,
16
+ " langchain-mcp-adapters>=0.1.0 " ,
17
17
" ipython>=8.32.0" ,
18
18
" mcp>=1.4.1" ,
19
19
]
Original file line number Diff line number Diff line change 10
10
11
11
@asynccontextmanager
12
12
async def make_graph ():
13
- async with MultiServerMCPClient (
14
- {
13
+ client = MultiServerMCPClient ({
15
14
"math" : {
16
15
"command" : sys .executable ,
17
16
"args" : ["src/simple-local-mcp/math_server.py" ],
@@ -22,7 +21,6 @@ async def make_graph():
22
21
"args" : ["src/simple-local-mcp/weather_server.py" ],
23
22
"transport" : "stdio" ,
24
23
},
25
- }
26
- ) as client :
27
- agent = create_react_agent (model , client .get_tools ())
28
- yield agent
24
+ })
25
+ agent = create_react_agent (model , await client .get_tools ())
26
+ yield agent
Original file line number Diff line number Diff line change 2
2
"entryPoints" : [
3
3
{
4
4
"filePath" : " agent" ,
5
- "uniqueId" : " e728db57-9280-4222-84e8-72e9a7adb9e7 " ,
5
+ "uniqueId" : " 35ccd28e-c612-4395-9076-ff0b0db2a104 " ,
6
6
"type" : " agent" ,
7
7
"input" : {
8
8
"type" : " object" ,
24
24
"type" : " string"
25
25
},
26
26
{
27
+ "additionalProperties" : true ,
27
28
"type" : " object"
28
29
}
29
30
]
34
35
"title" : " Content"
35
36
},
36
37
"additional_kwargs" : {
38
+ "additionalProperties" : true ,
37
39
"title" : " Additional Kwargs" ,
38
40
"type" : " object"
39
41
},
40
42
"response_metadata" : {
43
+ "additionalProperties" : true ,
41
44
"title" : " Response Metadata" ,
42
45
"type" : " object"
43
46
},
46
49
"type" : " string"
47
50
},
48
51
"name" : {
49
- "anyOf" : [
50
- {
51
- "type" : " string"
52
- },
53
- {
54
- "type" : " null"
55
- }
56
- ],
57
- "default" : null ,
58
- "title" : " Name"
52
+ "type" : " string"
59
53
},
60
54
"id" : {
61
- "anyOf" : [
62
- {
63
- "type" : " string"
64
- },
65
- {
66
- "type" : " null"
67
- }
68
- ],
69
- "default" : null ,
70
- "title" : " Id"
55
+ "type" : " string"
71
56
}
72
57
},
73
58
"required" : [
105
90
"type" : " string"
106
91
},
107
92
{
93
+ "additionalProperties" : true ,
108
94
"type" : " object"
109
95
}
110
96
]
115
101
"title" : " Content"
116
102
},
117
103
"additional_kwargs" : {
104
+ "additionalProperties" : true ,
118
105
"title" : " Additional Kwargs" ,
119
106
"type" : " object"
120
107
},
121
108
"response_metadata" : {
109
+ "additionalProperties" : true ,
122
110
"title" : " Response Metadata" ,
123
111
"type" : " object"
124
112
},
127
115
"type" : " string"
128
116
},
129
117
"name" : {
130
- "anyOf" : [
131
- {
132
- "type" : " string"
133
- },
134
- {
135
- "type" : " null"
136
- }
137
- ],
138
- "default" : null ,
139
- "title" : " Name"
118
+ "type" : " string"
140
119
},
141
120
"id" : {
142
- "anyOf" : [
143
- {
144
- "type" : " string"
145
- },
146
- {
147
- "type" : " null"
148
- }
149
- ],
150
- "default" : null ,
151
- "title" : " Id"
121
+ "type" : " string"
152
122
}
153
123
},
154
124
"required" : [
You can’t perform that action at this time.
0 commit comments