Commit 62605583 by Theresa Committed by GitHub

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

parent b3562e9d
......@@ -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
......
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