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
MCP tool output not visible in UI — GenericTool ignores output prop #15825
MCP tools' output is invisible in the UI. When any MCP tool executes and returns results, the output is consumed by the LLM correctly but never rendered to the user in the terminal/app.
Root Cause
The GenericTool component in packages/ui/src/components/message-part.tsx (line 159-161) is the fallback renderer for all tools without a dedicated registered renderer — which includes all MCP tools.
Type signature only accepts { tool, status, hideDetails } — no output prop
No children passed to BasicTool — so there's no expandable content area
Even though ToolPartDisplay (line 1041) passes output={part.state.output} to the rendered component, GenericTool silently drops it
In contrast, built-in tools (bash, grep, glob, list, etc.) all register custom renderers via ToolRegistry.register() that explicitly render props.output.
Steps to Reproduce
Configure any MCP server in OpenCode
Have the agent call any MCP tool
Observe the UI — only the tool name is shown (with MCP icon), no output content
Expected Behavior
MCP tool output should be visible and expandable, similar to how built-in tools display their results.
Suggested Fix
Update GenericTool to accept and render the output prop:
Hey, I'd like to work on this — it's been really annoying me :D I use the context-mode MCP and not being able to see the output of commands is kinda odd. That way I just have to trust how the LLM interprets the output.
Hey, I just noticed that a PR has already been raised before - sorry about that! My approach is a little bit different to the previous PR tho, with a slightly different rendering mechanism more targeted at command outputs (Screenshots are attached in the PR).
Activity
github-actions commentedon Mar 3, 2026
This issue might be a duplicate of existing issues. Please check:
Femumme commentedon Apr 10, 2026
Hey, I'd like to work on this — it's been really annoying me :D I use the context-mode MCP and not being able to see the output of commands is kinda odd. That way I just have to trust how the LLM interprets the output.
Happy to put up a PR for it.
Femumme commentedon Apr 11, 2026
Hey, I just noticed that a PR has already been raised before - sorry about that! My approach is a little bit different to the previous PR tho, with a slightly different rendering mechanism more targeted at command outputs (Screenshots are attached in the PR).
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.