Commit 62605583 by Theresa Committed by GitHub

fix: correct input schema property name in getTools method (#5095)

parent b3562e9d
...@@ -78,10 +78,12 @@ export class MCPClient { ...@@ -78,10 +78,12 @@ export class MCPClient {
const tools = response.tools.map((tool) => ({ const tools = response.tools.map((tool) => ({
name: tool.name, name: tool.name,
description: tool.description || '', description: tool.description || '',
input_schema: tool.inputSchema ? { inputSchema: tool.inputSchema
? {
...tool.inputSchema, ...tool.inputSchema,
properties: tool.inputSchema.properties || {} properties: tool.inputSchema.properties || {}
} : { }
: {
type: 'object', type: 'object',
properties: {} properties: {}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment