[PR #10515] feat(opencode): show mcp errors on /mcps dialog #13468

Open
opened 2026-02-16 18:18:19 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10515

State: open
Merged: No


What does this PR do?

  • using tab to check mcp errors, esc back to /mcps dialog
  • add "pop()", and "push()" in Dialog class.
  • new api "/:name/stderr" to get mcp errors.

How did you verify your code works?

  1. setup opencode.json
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. show mcp list before mcp initlized
    Before, MCP won't show up before all mcp is ready.
    image
    Now, they will show "loading" status.
    image

  2. show mcp errors not only in logs, but also in dialog
    my previous mr (#9982) only dumps the stderr into the error log. now you can see the error log by using "tab".
    image

image

Closes #10516

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10515 **State:** open **Merged:** No --- ### What does this PR do? * using tab to check mcp errors, esc back to /mcps dialog * add "pop()", and "push()" in Dialog class. * new api "/:name/stderr" to get mcp errors. ### How did you verify your code works? 0. setup opencode.json ```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 ``` 2. show mcp list before mcp initlized Before, MCP won't show up before all mcp is ready. <img width="2796" height="1772" alt="image" src="https://github.com/user-attachments/assets/a54d00e6-3a47-4050-bf0c-9bd97461ea53" /> Now, they will show "loading" status. <img width="2156" height="1384" alt="image" src="https://github.com/user-attachments/assets/e22b6458-7ef7-4541-ad78-b455d6c3d3a4" /> 3. show mcp errors not only in logs, but also in dialog my previous mr (#9982) only dumps the stderr into the error log. now you can see the error log by using "tab". <img width="2064" height="1102" alt="image" src="https://github.com/user-attachments/assets/c1fa7a8c-f620-45be-babf-236745b80540" /> <img width="1796" height="1558" alt="image" src="https://github.com/user-attachments/assets/82de8026-0ec2-4248-96bf-3a2455570e00" /> Closes #10516
yindo added the pull-request label 2026-02-16 18:18:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13468