Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

TUI permission prompt for MCP tools doesn't show the call arguments

未关闭 适合新手
#60,350 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@bjck 已经在做这个了。

开始于 2026年10月30日。

  • #60548 来自 @bjck —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
73/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli

调研方向

从 packages/tui/src/util/permission.ts 开始,issue 指出回退分支遗漏了 metadata.input。追踪权限提示如何呈现该分支,并使用已在元数据中传递的 MCP 调用参数。使用设置为 ask 的远程 MCP 写入工具复现;完成标准是提示中显示这些参数,以便用户在批准前查看拟执行的操作。

由索引模型根据 Issue 内容生成。

描述

Description

When an MCP tool asks for permission, the TUI prompt shows only the tool name:

△ Permission required
  ⚙ Call tool linear_save_comment

  Tool: linear_save_comment

The arguments (which issue, what the comment says) are not shown anywhere, so approving a write means approving it blind. The tool line in the transcript above the prompt leaves out object arguments too.

Since #51062 the MCP wrapper passes the call arguments as metadata.input, so the data reaches the prompt. The fallback branch in packages/tui/src/util/permission.ts just doesn't render it. #51519 is the same problem in the web/desktop dock, and #50234 the general version of it.

Plugins

None needed to reproduce

OpenCode version

1.19.4, and still on dev (085d6f7)

Steps to reproduce
  1. Add a remote MCP server with a write tool and set its permission to ask.
  2. Ask the agent to call the write tool.
  3. The prompt shows Call tool <name> and Tool: <name>, but no arguments.
Screenshot

See the prompt above.

Operating System

macOS 26

主要语言
TypeScript
星标
221k
派生
29.6k
平均合并
7 小时 41 分钟
30 天内合并 PR
510

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。