mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 01:37:50 +00:00
confirm mcp tool executions from untrusted servers (per "trust" setting) (#631)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user