diff options
Diffstat (limited to 'packages/server/src/tools/tool-registry.ts')
| -rw-r--r-- | packages/server/src/tools/tool-registry.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/server/src/tools/tool-registry.ts b/packages/server/src/tools/tool-registry.ts index 7bc04432..d0bdfba0 100644 --- a/packages/server/src/tools/tool-registry.ts +++ b/packages/server/src/tools/tool-registry.ts @@ -99,6 +99,7 @@ export class DiscoveredMCPTool extends BaseTool<ToolParams, ToolResult> { readonly name: string, readonly description: string, readonly parameterSchema: Record<string, unknown>, + readonly serverToolName: string, ) { description += ` @@ -112,7 +113,7 @@ Returns the MCP server response as a json string. async execute(params: ToolParams): Promise<ToolResult> { const result = await this.mcpClient.callTool({ - name: this.name, + name: this.serverToolName, arguments: params, }); return { @@ -251,6 +252,7 @@ export class ToolRegistry { : tool.name, tool.description ?? '', tool.inputSchema, + tool.name, ), ); } |
