confirm mcp tool executions from untrusted servers (per "trust" setting) (#631)

This commit is contained in:
Olcan
2025-05-30 15:32:21 -07:00
committed by GitHub
parent a60e51f44d
commit 2e57989aec
7 changed files with 101 additions and 6 deletions

View File

@@ -729,6 +729,7 @@ describe('DiscoveredMCPTool', () => {
it('constructor should set up properties correctly and enhance description', () => {
const tool = new DiscoveredMCPTool(
mockMcpClient,
'mock-mcp-server',
toolName,
toolDescription,
toolInputSchema,
@@ -744,6 +745,7 @@ describe('DiscoveredMCPTool', () => {
it('execute should call mcpClient.callTool with correct params and return serialized result', async () => {
const tool = new DiscoveredMCPTool(
mockMcpClient,
'mock-mcp-server',
toolName,
toolDescription,
toolInputSchema,