File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/agents-core/test Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,11 @@ describe('MCP tools cache invalidation', () => {
87
87
] ;
88
88
89
89
const serverA = new StubServer ( 'server' , tools ) ;
90
- await getAllMcpTools ( [ serverA ] ) ;
90
+ await getAllMcpTools (
91
+ [ serverA ] ,
92
+ new RunContext ( { } ) ,
93
+ new Agent ( { name : 'test' } ) ,
94
+ ) ;
91
95
92
96
const serverB = new StubServer ( 'server' , tools ) ;
93
97
let called = false ;
@@ -96,7 +100,11 @@ describe('MCP tools cache invalidation', () => {
96
100
return [ ] ;
97
101
} ;
98
102
99
- const cachedTools = ( await getAllMcpTools ( [ serverB ] ) ) as FunctionTool [ ] ;
103
+ const cachedTools = ( await getAllMcpTools (
104
+ [ serverB ] ,
105
+ new RunContext ( { } ) ,
106
+ new Agent ( { name : 'test' } ) ,
107
+ ) ) as FunctionTool [ ] ;
100
108
await cachedTools [ 0 ] . invoke ( { } as any , '{}' ) ;
101
109
102
110
expect ( called ) . toBe ( true ) ;
You can’t perform that action at this time.
0 commit comments