Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#60,350 コメント 2 件 リアクション 0 件 担当者 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時間 19分
マージ済み PR(30日)
504

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。