Skip to content

MCP服务器解析出现错误 #6451

Description

@chung1912

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.14.7

问题描述, 日志截图,配置文件等

Image

v4.14.6还是正常的,v4.14.7就不正常了,提示下错误:

2026-02-23 08:37:11   DBG app:mcp-tools        MCP client connection closed: {
                                                 requestId: 'xxxxxxxxxxxxxx',
                                                 url: 'http://xxxxxxxxx'
                                               }
2026-02-23 08:37:11   INF http:response        [POST] /api/core/app/mcpTools/getTools - 500 in 190ms
2026-02-23 08:37:11   WRN http:error           Request validation failed: {
                                                 requestId: 'xxxxxxxxxxxxxx',
                                                 method: 'POST',
                                                 url: '/api/core/app/mcpTools/getTools',
                                                 error: ZodError: [
                                                   {
                                                     "code": "invalid_value",
                                                     "values": [
                                                       "string",
                                                       "number",
                                                       "integer",
                                                       "boolean",
                                                       "array",
                                                       "object"
                                                     ],
                                                     "path": [
                                                       7,
                                                       "inputSchema",
                                                       "properties",
                                                       "method",
                                                       "items",
                                                       "type"
                                                     ],
                                                     "message": "Invalid option: expected one of \"string\"|\"number\"|\"integer\"|\"boolean\"|\"array\"|\"object\""
                                                   },
                                                   {
                                                     "code": "invalid_value",
                                                     "values": [
                                                       "string",
                                                       "number",
                                                       "integer",
                                                       "boolean",
                                                       "array",
                                                       "object"
                                                     ],
                                                     "path": [
                                                       8,
                                                       "inputSchema",
                                                       "properties",
                                                       "exportTarget",
                                                       "items",
                                                       "type"
                                                     ],
                                                     "message": "Invalid option: expected one of \"string\"|\"number\"|\"integer\"|\"boolean\"|\"array\"|\"object\""
                                                   }
                                                 ]
2026-02-23 08:37:11   ERR http:error           Zod validation error: {
                                                 requestId: '',
                                                 url: '/api/core/app/mcpTools/getTools',
                                                 data: [
                                                   {
                                                     code: 'invalid_value',
                                                     values: [Array],
                                                     path: [Array],
                                                     message: 'Invalid option: expected one of "string"|"number"|"integer"|"boolean"|"array"|"object"'
                                                   },
                                                   {
                                                     code: 'invalid_value',
                                                     values: [Array],
                                                     path: [Array],
                                                     message: 'Invalid option: expected one of "string"|"number"|"integer"|"boolean"|"array"|"object"'
                                                   }
                                                 ],
                                                 error: ZodError: [
                                                   {
                                                     "code": "invalid_value",
                                                     "values": [
                                                       "string",
                                                       "number",
                                                       "integer",
                                                       "boolean",
                                                       "array",
                                                       "object"
                                                     ],
                                                     "path": [
                                                       7,
                                                       "inputSchema",
                                                       "properties",
                                                       "method",
                                                       "items",
                                                       "type"
                                                     ],
                                                     "message": "Invalid option: expected one of \"string\"|\"number\"|\"integer\"|\"boolean\"|\"array\"|\"object\""
                                                   },
                                                   {
                                                     "code": "invalid_value",
                                                     "values": [
                                                       "string",
                                                       "number",
                                                       "integer",
                                                       "boolean",
                                                       "array",
                                                       "object"
                                                     ],
                                                     "path": [
                                                       8,
                                                       "inputSchema",
                                                       "properties",
                                                       "exportTarget",
                                                       "items",
                                                       "type"
                                                     ],
                                                     "message": "Invalid option: expected one of \"string\"|\"number\"|\"integer\"|\"boolean\"|\"array\"|\"object\""
                                                   }
                                                 ]

在工作流先后调用同一个mcp不同工具的时候,会出现这个错误:
Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.
这在v4.14.6版本中不会出现这种问题,而v4.14.7版本则出现了这个问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions