summaryrefslogtreecommitdiff
path: root/packages/server/src/tools/tool-registry.test.ts
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-05-30 15:32:21 -0700
committerGitHub <[email protected]>2025-05-30 15:32:21 -0700
commit2e57989aec569055a11f21762f72b961377281ab (patch)
tree0fb4a97f195801472b07ed1ba679c21c1151e867 /packages/server/src/tools/tool-registry.test.ts
parenta60e51f44d84b1a13c335e6b75339b8ad8c544bb (diff)
confirm mcp tool executions from untrusted servers (per "trust" setting) (#631)
Diffstat (limited to 'packages/server/src/tools/tool-registry.test.ts')
-rw-r--r--packages/server/src/tools/tool-registry.test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/server/src/tools/tool-registry.test.ts b/packages/server/src/tools/tool-registry.test.ts
index 6a960a27..c93109ae 100644
--- a/packages/server/src/tools/tool-registry.test.ts
+++ b/packages/server/src/tools/tool-registry.test.ts
@@ -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,