summaryrefslogtreecommitdiff
path: root/packages/server/src/tools/mcp-tool.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/mcp-tool.test.ts
parenta60e51f44d84b1a13c335e6b75339b8ad8c544bb (diff)
confirm mcp tool executions from untrusted servers (per "trust" setting) (#631)
Diffstat (limited to 'packages/server/src/tools/mcp-tool.test.ts')
-rw-r--r--packages/server/src/tools/mcp-tool.test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/server/src/tools/mcp-tool.test.ts b/packages/server/src/tools/mcp-tool.test.ts
index e28cf586..331696f7 100644
--- a/packages/server/src/tools/mcp-tool.test.ts
+++ b/packages/server/src/tools/mcp-tool.test.ts
@@ -55,6 +55,7 @@ describe('DiscoveredMCPTool', () => {
it('should set properties correctly and augment description', () => {
const tool = new DiscoveredMCPTool(
mockMcpClient,
+ 'mock-mcp-server',
toolName,
baseDescription,
inputSchema,
@@ -78,6 +79,7 @@ describe('DiscoveredMCPTool', () => {
const customTimeout = 5000;
const tool = new DiscoveredMCPTool(
mockMcpClient,
+ 'mock-mcp-server',
toolName,
baseDescription,
inputSchema,
@@ -92,6 +94,7 @@ describe('DiscoveredMCPTool', () => {
it('should call mcpClient.callTool with correct parameters and default timeout', async () => {
const tool = new DiscoveredMCPTool(
mockMcpClient,
+ 'mock-mcp-server',
toolName,
baseDescription,
inputSchema,
@@ -122,6 +125,7 @@ describe('DiscoveredMCPTool', () => {
const customTimeout = 15000;
const tool = new DiscoveredMCPTool(
mockMcpClient,
+ 'mock-mcp-server',
toolName,
baseDescription,
inputSchema,
@@ -146,6 +150,7 @@ describe('DiscoveredMCPTool', () => {
it('should propagate rejection if mcpClient.callTool rejects', async () => {
const tool = new DiscoveredMCPTool(
mockMcpClient,
+ 'mock-mcp-server',
toolName,
baseDescription,
inputSchema,