[FEATURE]: Show the mcp startup error on opencode tui #7523

Open
opened 2026-02-16 18:07:27 -05:00 by yindo · 1 comment
Owner

Originally created by @karta0807913 on GitHub (Jan 25, 2026).

Originally assigned to: @thdxr on GitHub.

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

As in MR I created before (#9982), I added MCP's stderr to the logfile. However, it's somehow hard to view the stderr while MCP is crashing. Therefore, I suggest we add a "tab" on the MCP item to see its stderr when it fails.

So, I have a TUI prototype now.

cat <<'EOF' > opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mock-mcp": {
      "type": "local",
      "command": [
        "bash",
        "-c",
         "sleep 10; echo 'I AM HERE' >&2"
      ]
    }
  }
}
EOF
  1. Open the /mcps dialog
    image
  2. Press "Tab" to expand and see the stderr
    image
Originally created by @karta0807913 on GitHub (Jan 25, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request As in MR I created before (#9982), I added MCP's stderr to the logfile. However, it's somehow hard to view the stderr while MCP is crashing. Therefore, I suggest we add a "tab" on the MCP item to see its stderr when it fails. So, I have a TUI prototype now. ```bash cat <<'EOF' > opencode.json { "$schema": "https://opencode.ai/config.json", "mcp": { "mock-mcp": { "type": "local", "command": [ "bash", "-c", "sleep 10; echo 'I AM HERE' >&2" ] } } } EOF ``` 1. Open the `/mcps` dialog <img width="2064" height="1102" alt="image" src="https://github.com/user-attachments/assets/c1fa7a8c-f620-45be-babf-236745b80540" /> 2. Press "Tab" to expand and see the stderr <img width="1796" height="1558" alt="image" src="https://github.com/user-attachments/assets/82de8026-0ec2-4248-96bf-3a2455570e00" />
yindo added the opentuidiscussion labels 2026-02-16 18:07:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

This issue is related to existing feature request #9781: FEAT: Expandable view for MCP tool params and results (TUI).

While #9781 focuses on viewing MCP tool parameters and results during normal execution, your feature request (#10516) specifically addresses the need to view MCP stderr output when MCPs fail/crash. These features complement each other well for improving MCP debugging experience in the TUI.

You may want to cross-reference these issues to ensure they're implemented in a coordinated way for a cohesive debugging UI.

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue is related to existing feature request #9781: **FEAT: Expandable view for MCP tool params and results (TUI)**. While #9781 focuses on viewing MCP tool parameters and results during normal execution, your feature request (#10516) specifically addresses the need to view MCP stderr output when MCPs fail/crash. These features complement each other well for improving MCP debugging experience in the TUI. You may want to cross-reference these issues to ensure they're implemented in a coordinated way for a cohesive debugging UI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7523