-
Notifications
You must be signed in to change notification settings - Fork 20.8k
[FEATURE]: MCP Tool Output #6604
Copy link
Copy link
Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature hasn't been suggested before.
Describe the enhancement you want to request
Description:
MCP tool outputs are not displayed in the TUI. When using any MCP server, you only see the tool name and input parameters, but never the actual output/result. I often times want to see what the tool actually returned. You end up having to rely on manually asking the model to duplicate all the output for you.
Root cause:
GenericTool in packages/opencode/src/cli/cmd/tui/routes/session/index.tsx (lines 1515-1520) ignores props.output:
Built-in tools like bash and patch render their output, but MCP tools fall back to GenericTool which discards it.
Suggested fix:
Add output rendering to GenericTool, gated by the existing tool_details_visibility setting (or a new config option):
This follows the same pattern used by the patch tool renderer (lines 1838-1856).
Ideally this would be configurable - either via the existing tool_details keybind toggle, or a separate config option like tui.mcp_tool_output: true/false.
Impact:
Anyone using MCP servers cannot see tool results in the TUI, making it difficult to understand what the model is working with.