mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-27 01:02:22 +08:00
fix: relax MCP tool JSON Schema Zod validation to handle non-standard types (#6455)
* fix: relax MCP tool JSON Schema Zod validation to accept any type values MCP servers may return JSON Schema with type values outside the standard 6 types. Use z.any() for type and items fields to avoid 500 errors on /api/core/app/mcpTools/getTools. - Remove SchemaInputValueTypeSchema enum and SchemaInputValueType - Remove unnecessary .passthrough() - Use plain string type for function parameters Fixes #6451 * fix: mcp adapt --------- Co-authored-by: c121914yu <yucongcong_test@163.com>
This commit is contained in:
@@ -205,4 +205,4 @@
|
||||
"document/content/docs/use-cases/external-integration/openapi.mdx": "2026-02-12T18:45:30+08:00",
|
||||
"document/content/docs/use-cases/external-integration/wecom.mdx": "2025-12-10T20:07:05+08:00",
|
||||
"document/content/docs/use-cases/index.mdx": "2025-07-24T14:23:04+08:00"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user