You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/integration/suite.ts
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -989,6 +989,26 @@ export function createIntegrationTestsSuite(
989
989
990
990
awaitclient.close();
991
991
});
992
+
it.runIf(options.transport==='streamable-http')(`should swap call-actor for add-actor when client supports dynamic tools for default tools`,async()=>{
993
+
client=awaitcreateClientFn({clientName: 'Visual Studio Code'});
994
+
constnames=getToolNames(awaitclient.listTools());
995
+
996
+
// should not contain call-actor but should contain add-actor
997
+
expect(names).not.toContain('call-actor');
998
+
expect(names).toContain('add-actor');
999
+
1000
+
awaitclient.close();
1001
+
});
1002
+
it.runIf(options.transport==='streamable-http')(`should NOT swap call-actor for add-actor when client supports dynamic tools when using the call-actor explicitly`,async()=>{
1003
+
client=awaitcreateClientFn({clientName: 'Visual Studio Code',tools: ['call-actor']});
1004
+
constnames=getToolNames(awaitclient.listTools());
1005
+
1006
+
// should not contain call-actor but should contain add-actor
1007
+
expect(names).toContain('call-actor');
1008
+
expect(names).not.toContain('add-actor');
1009
+
1010
+
awaitclient.close();
1011
+
});
992
1012
993
1013
it('should return error message when tryging to call MCP server Actor without tool name in actor parameter',async()=>{
0 commit comments