-
Notifications
You must be signed in to change notification settings - Fork 625
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
功能请求:为 DeepChat 添加 MCP 协议的 Sampling 支持
你的功能请求是否与某个问题有关?请描述一下。
目前,DeepChat缺乏对 MCP 协议中 sampling 能力的支持。这导致服务器无法通过 DeepChat 请求 LLM 的补全或生成功能,限制了其在代理工作流和嵌套 MCP 交互中的应用。
请描述你希望的解决方案
我希望按照 MCP 规范实现 sampling 能力,包括:
- 客户端能力声明:
- DeepChat 应在初始化时声明支持
sampling:{ "capabilities": { "sampling": {} } }
- DeepChat 应在初始化时声明支持
- 用户交互流程:
- 提供 UI 让用户审核并批准/拒绝采样请求。
- 允许用户在提交前查看和编辑提示词。
- 在交付前展示生成的响应供用户审核。
- 模型选择与存储:
- 支持服务器提供的
modelPreferences(如模型提示、智能/速度优先级)。 - 存储用户批准的模型或自动批准策略(如特定模型的允许列表)。
- 支持服务器提供的
- 协议实现:
- 处理
sampling/createMessage请求和响应。 - 支持消息中的文本、图像和音频内容类型。
- 处理
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed