zai-org / zai-org/feedback

[Bug] MCP input_required / elicitation 无法完成交互确认

Open
#382 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

环境

  • macOS 14.4.1,Apple Silicon
  • ZCode 3.9.2
  • ZCode Agent

问题

当 MCP Server 在 tools/call 中返回标准 input_required,并通过 elicitation/create 请求表单确认时,ZCode 直接返回:

The request client capabilities do not declare the required elicitation capability.

界面没有显示确认请求,调用无法继续。

预期

ZCode 支持表单型 elicitation:在 capability 中正确声明支持,显示由用户操作的接受、拒绝或取消界面;用户接受后,使用 inputResponsesrequestState 重试原始调用。危险操作不得自动批准。

该问题与具体 MCP Server 或工具实现无关,任何依赖 input_required / elicitation 的标准交互流程均可能受到影响。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the MCP tools/call flow and the elicitation/create request described in the report, including capability negotiation. Verify that a form confirmation is shown with accept, reject, and cancel actions, and that acceptance retries the original call with inputResponses and requestState without automatically approving dangerous operations.

Written by the indexing model from the issue text.

Assessment

Domain
api, frontend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.