Skip to content

[Bug] vllm docking dialogue with MCP will fail #3387

@zhainanshidai

Description

@zhainanshidai

Contact Information

No response

MaxKB Version

1.10.8

Problem Description

vllm对接含MCP的对话会对接失败,提示 -

Steps to Reproduce

1.构建vllm环境,确保环境正常

Image

Image

Image

2.构建高级编排
只有对话一个节点,提问showtables 不带mcp

Image
3.加入mcp

Image
提问
Image

Image

vllm报错(此处可以看出,是请求参数出错了):

Image

换其他应用,使用百炼平台的千问:

Image

换成本地vllm:

Image

使用dify +mcp+vllm:正常提问

Image

查阅资料发现,vllm目前仅支持OpenAI规范API,加入mcp时,会导致出错。这里需要增强下对vllm的兼容性,对有mcp的情况做处理

The expected correct result

No response

Related log output

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