Repository navigation
[FEATURE]: MCP Tool Output #6604
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request 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:
function GenericTool(props: ToolProps<any>) {
return (
<ToolTitle icon="⚙" fallback="Writing command..." when={true}>
{props.tool} {input(props.input)}
</ToolTitle>
)
}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):
function GenericTool(props: ToolProps<any>) {
const { theme } = useTheme()
return (
<>
<ToolTitle icon="⚙" fallback="Writing command..." when={true}>
{props.tool} {input(props.input)}
</ToolTitle>
<Show when={props.output}>
<box>
<text fg={theme.text}>{props.output?.trim()}</text>
</box>
</Show>
</>
)
}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.
Activity
github-actions commentedon Jan 1, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if your request has specific requirements not addressed by these issues.
ai-llt commentedon Jan 5, 2026
I searched all over but couldn't find the relevant settings, which is very important for us (agent development).
ai-llt commentedon Jan 5, 2026
I tried to find the most standard way to write the MCP format, but still couldn't view the return content from other tools.
kostrse commentedon Jan 10, 2026
Could it be relevant that GitHub MCP
get_file_contentsonly returns "successfully downloaded" without actually returning actual file contents to the model?yanosh-k commentedon Jan 18, 2026
I think it would be better if the output is collapsible (just like the output of the
bashtool). Some tools return long output and it becomes cluttered when output is displayed directly.I've tested the following version:
Here is how it looks (
websearch-ddgsis a custom tool andtmux_list-sessionis an MCP tool):tool_output_after.mp4
rserbitar commentedon Jan 22, 2026
This is great! Absolutley needed!
karta0807913 commentedon Jan 26, 2026
@yanosh-k looks great! maybe you can create a PR about this change and see will they merge it?
rekram1-node commentedon Jan 26, 2026
Yeah that's valid I like it
cuipengfei commentedon Feb 1, 2026
Having a settings option to control how many lines are shown of the mcp tool call output would be great
yanosh-k commentedon Feb 3, 2026
It could check the config for such a setting and set the number of shown lines based on it.
In the PR I've also added (per Aiden Cline's request) a menu option to toggle the output on and off, so probably the minimum number of lines should be 1, as setting it to 0 would be equivalent to turning the option off.
So when checking the setting it should be something like
const maxLines = Math.max(1, ctx.sync.data.config.tui?.generic_tool_preview_lines).fix(opencode): show MCP tool output in non-interactive run mode
quangbilly79 commentedon May 20, 2026
Did you guys freaking fix this? It's May 21st! And you guys just released the Antigravity Chatbot app! I can't use my Power BI-MCP properly with Antigravity because of this bug. Have to switch to Claude Desktop!