diff --git a/packages/service/core/app/mcp.ts b/packages/service/core/app/mcp.ts index 5a2461cea..1d375136a 100644 --- a/packages/service/core/app/mcp.ts +++ b/packages/service/core/app/mcp.ts @@ -78,13 +78,15 @@ export class MCPClient { const tools = response.tools.map((tool) => ({ name: tool.name, description: tool.description || '', - input_schema: tool.inputSchema ? { - ...tool.inputSchema, - properties: tool.inputSchema.properties || {} - } : { - type: 'object', - properties: {} - } + inputSchema: tool.inputSchema + ? { + ...tool.inputSchema, + properties: tool.inputSchema.properties || {} + } + : { + type: 'object', + properties: {} + } })); // @ts-ignore