Unclear MCP error #2920

Open
opened 2026-02-16 17:37:48 -05:00 by yindo · 6 comments
Owner

Originally created by @jcubic on GitHub (Nov 17, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When MCP return an error, there is a cryptic error. You have no idea which MCP is throwing an error. And it disappears so fast that you can't even copy the error message to report a bug.

OpenCode version

0.15.31

Steps to reproduce

This is my config:

{
  "$schema": "https://opencode.ai/config.json",
  "keybinds": {
    "session_child_cycle": "none",
    "session_child_cycle_reverse": "none"
  },
  "permission": {
    "bash": {
      "*": "allow",
      "sudo *": "ask",
      "git *": "ask",
      "git checkout *": "allow",
      "git status*": "allow",
      "git diff*": "allow",
      "git log*": "allow",
      "git show*": "allow",
      "git branch*": "allow",
      "git remote -v *": "allow",
      "git ls-files*": "allow"
    }
  },
  "mcp": {
    "context7": {
      "type": "remote",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "..."
      },
      "enabled": true
    },
    "DeepWiki": {
      "type": "remote",
      "url": "https://mcp.deepwiki.com/mcp",
      "enabled": true
    },
    "chrome-devtools": {
      "type": "local",
      "command": ["npx", "-y", "chrome-devtools-mcp@latest"],
      "enabled": true
    },
    "Better Auth": {
      "type": "remote",
      "url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp",
      "enabled": true
    },
    "chakra-ui": {
      "type": "local",
      "command": ["npx", "-y", "@chakra-ui/react-mcp"],
      "enabled": true
    },
    "playwright": {
      "type": "local",
      "command": ["npx", "-y", "@playwright/mcp@latest"],
      "enabled": true
    },
    "github": {
      "type": "remote",
      "url": "https://api.githubcopilot.com/mcp/",
      "enabled": true
    }
  }
}

Screenshot and/or share link

I don't have a screenshot, the error appears for a split second. You can't even read the message.

Operating System

Fedora 43

Terminal

xfce terminal (VTE)

Originally created by @jcubic on GitHub (Nov 17, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When MCP return an error, there is a cryptic error. You have no idea which MCP is throwing an error. And it disappears so fast that you can't even copy the error message to report a bug. ### OpenCode version 0.15.31 ### Steps to reproduce This is my config: ```json { "$schema": "https://opencode.ai/config.json", "keybinds": { "session_child_cycle": "none", "session_child_cycle_reverse": "none" }, "permission": { "bash": { "*": "allow", "sudo *": "ask", "git *": "ask", "git checkout *": "allow", "git status*": "allow", "git diff*": "allow", "git log*": "allow", "git show*": "allow", "git branch*": "allow", "git remote -v *": "allow", "git ls-files*": "allow" } }, "mcp": { "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "..." }, "enabled": true }, "DeepWiki": { "type": "remote", "url": "https://mcp.deepwiki.com/mcp", "enabled": true }, "chrome-devtools": { "type": "local", "command": ["npx", "-y", "chrome-devtools-mcp@latest"], "enabled": true }, "Better Auth": { "type": "remote", "url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp", "enabled": true }, "chakra-ui": { "type": "local", "command": ["npx", "-y", "@chakra-ui/react-mcp"], "enabled": true }, "playwright": { "type": "local", "command": ["npx", "-y", "@playwright/mcp@latest"], "enabled": true }, "github": { "type": "remote", "url": "https://api.githubcopilot.com/mcp/", "enabled": true } } } ``` ### Screenshot and/or share link I don't have a screenshot, the error appears for a split second. You can't even read the message. ### Operating System Fedora 43 ### Terminal xfce terminal (VTE)
yindo added the bug label 2026-02-16 17:37:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 17, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1878: User reports similar problem - "How do I know which one from looking at the error?" when getting MCP errors, asking for better error source identification
  • #3511: Reports MCP error messages that don't clearly indicate which server is failing ("socket connection was closed unexpectedly")
  • #1720: Another case of cryptic MCP errors with insufficient debugging information

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 17, 2025): This issue might be a duplicate of existing issues. Please check: - #1878: User reports similar problem - "How do I know which one from looking at the error?" when getting MCP errors, asking for better error source identification - #3511: Reports MCP error messages that don't clearly indicate which server is failing ("socket connection was closed unexpectedly") - #1720: Another case of cryptic MCP errors with insufficient debugging information Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

luckily context7 api keys arent that sensitive but you should prolly delete that key and make a new one

@rekram1-node commented on GitHub (Nov 17, 2025): luckily context7 api keys arent that sensitive but you should prolly delete that key and make a new one
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

@jcubic I think it may be more clear if you update to latest, we are going to upgrade all v0 users soon, rn about 2/3rds of people are on v1.

You can do:

opencode upgrade 1.0.68

@rekram1-node commented on GitHub (Nov 17, 2025): @jcubic I think it may be more clear if you update to latest, we are going to upgrade all v0 users soon, rn about 2/3rds of people are on v1. You can do: opencode upgrade 1.0.68
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

Image

Example

@rekram1-node commented on GitHub (Nov 17, 2025): <img width="301" height="318" alt="Image" src="https://github.com/user-attachments/assets/2e792f0f-9bf5-4ec5-a3c7-3d1b106f4c3b" /> Example
Author
Owner

@jcubic commented on GitHub (Nov 17, 2025):

Oh, it didn't update automatically, like it use to.

@jcubic commented on GitHub (Nov 17, 2025): Oh, it didn't update automatically, like it use to.
Author
Owner

@rekram1-node commented on GitHub (Nov 17, 2025):

Yeah what i was saying is we intentionally havent auto updated all the v0 users yet

@rekram1-node commented on GitHub (Nov 17, 2025): Yeah what i was saying is we intentionally havent auto updated all the v0 users yet
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2920