You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v2 web/desktop: MCP permission prompt shows only *, not the tool name #51519
When an MCP tool asks for permission, the prompt in the web and desktop UI shows only *. The tool name never appears, so there is no way to tell what the agent is asking about. The TUI is fine: it labels the prompt with the action.
The shared dock (packages/app/src/session/requests/session-permission-dock.tsx) renders request.resources as the detail line. The MCP tool wrapper (packages/core/src/tool/mcp.ts) passes resources: ["*"]. The dock does read request.action, but only to look up settings.permissions.tool.<action>.description, and MCP actions have no entry, so there is no hint line either.
The v2 PR #51062 only forwards metadata and leaves resources as ["*"], so v2 still shows *.
Plugins
No response
OpenCode version
2.0.18
Steps to reproduce
Configure an MCP server with a tool set to ask, e.g. { "action": "_", "resource": "", "effect": "ask" }.
In the web or desktop UI, have the agent call that MCP tool.
Same bug as #19549. That one was closed by the stale bot and never fixed; none of the attempts (#19618, #24605, #32564) were merged. This is the v2 version, reproduced on 2.0.18 in the web/desktop dock. Either way is fine with me: track it here or reopen #19549.
I rendered the web/desktop SessionPermissionDock with that same request. It shows no hint line and only *, and the tool name appears nowhere. I couldn't run the full web or desktop app here, so this check covered the dock component on its own.
The script below reproduces the server side and prints the request. I've passed this on to the maintainers. Related: #51062 (forwards the tool input as permission metadata, but the dock doesn't show it yet).
Run it with opencode-drive: opencode-drive run ./drive.ts. It drives opencode from your PATH; set OC_DEV to the path of an OpenCode checkout to run that from source instead.
Activity
github-actions commentedon Sep 26, 2026
This issue might be a duplicate of an existing issue. Please check:
*instead of actual tool name in permission dialogs #19549: MCP permission dialogs show*instead of the actual tool name.DamienSchreurs commentedon Sep 26, 2026
Same bug as #19549. That one was closed by the stale bot and never fixed; none of the attempts (#19618, #24605, #32564) were merged. This is the v2 version, reproduced on 2.0.18 in the web/desktop dock. Either way is fine with me: track it here or reopen #19549.
opencodejr commentedon Oct 28, 2026
Thanks for the detailed report. I can confirm this on 2.0.18, and it still happens on the latest
dev(86ce19d).What I did:
demowith one tool,greet, and the rule{ "action": "demo_*", "resource": "*", "effect": "ask" }.demo_greet.What I saw:
action: "demo_greet",resources: ["*"]. Ondev,metadata.inputis now set too (from fix(mcp): pass tool input as permission metadata #51062).SessionPermissionDockwith that same request. It shows no hint line and only*, and the tool name appears nowhere. I couldn't run the full web or desktop app here, so this check covered the dock component on its own.The script below reproduces the server side and prints the request. I've passed this on to the maintainers. Related: #51062 (forwards the tool input as permission metadata, but the dock doesn't show it yet).
Reproduction script (drive.ts)
Run it with opencode-drive:
opencode-drive run ./drive.ts. It drivesopencodefrom yourPATH; setOC_DEVto the path of an OpenCode checkout to run that from source instead.