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