mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +00:00
fix: update input schema structure in getTools method (#5089)
* fix: update input schema structure in getTools method * Update mcp.ts * Update mcp.ts --------- Co-authored-by: Archer <545436317@qq.com>
This commit is contained in:
@@ -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: {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user