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', () => {
8787 ] ;
8888
8989 const serverA = new StubServer ( 'server' , tools ) ;
90- await getAllMcpTools ( [ serverA ] ) ;
90+ await getAllMcpTools (
91+ [ serverA ] ,
92+ new RunContext ( { } ) ,
93+ new Agent ( { name : 'test' } ) ,
94+ ) ;
9195
9296 const serverB = new StubServer ( 'server' , tools ) ;
9397 let called = false ;
@@ -96,7 +100,11 @@ describe('MCP tools cache invalidation', () => {
96100 return [ ] ;
97101 } ;
98102
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 [ ] ;
100108 await cachedTools [ 0 ] . invoke ( { } as any , '{}' ) ;
101109
102110 expect ( called ) . toBe ( true ) ;
You can’t perform that action at this time.
0 commit comments