Skip to content

[Bug] 对话中AI调用MCP工具时传错参数后会直接中断对话 #4933

@ocean105885-cmyk

Description

@ocean105885-cmyk

Contact Information

No response

MaxKB Version

2.7.1 -- 商业版镜像
[root@localhost logs]# docker images | grep max
registry.fit2cloud.com/maxkb/maxkb-pro v2.7.1 36f55f211efa 4 days ago 3.14GB

Problem Description

如标题所示,查看源码,是被改动过了,改动的提交是7ec4e7cef fix: Mcp error raise,之前调用mcp工具返回错误后能够读取错误,修正参数后继续请求,现在对话直接中断失败。AI本来就会很大几率传入错误的参数,这么一搞之前的应用都受到影响,请问这个改动是出于什么考虑呢?Image

Image

Steps to Reproduce

1、对话
2、AI调用工具处理任务
3、AI传入给MCP的参数有误
4、对话直接被中断

The expected correct result

No response

Related log output

Image

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions