opencode icon indicating copy to clipboard operation
opencode copied to clipboard

MCP servers showing as `disabled`

Open joseph-stano opened this issue 1 week ago • 14 comments

Description

Seeing previously-working MCP servers showing as disabled, despite "enabled": true being set in opencode.jsonc.

Seems to have been introduced by a change in version 1.1.24 - the MCP servers work correctly in 1.1.23 and below.

I don't see any recent logs in ~/.local/share/opencode/log.

Plugins

Only one custom plugin for analytics.

OpenCode version

1.1.24+

Steps to reproduce

sample of my opencode.jsonc (servers obfuscated with ...)

"mcp": {
  "github-mcp": {
    "type": "local",
    "command": [
      "docker",
      "run",
      "-i",
      "--rm",
      "-e",
      "GITHUB_HOST=...",
      "-e",
      "GITHUB_API_URL=...",
      "-e",
      "GITHUB_PERSONAL_ACCESS_TOKEN",
      "ghcr.io/github/github-mcp-server"
    ],
    "enabled": true,
    "environment": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT}"
    }
  },
  "gyde-mcp": {
    "type": "remote",
    "url": "https://.../api/mcp/",
    "timeout": 60000,
    "enabled": true
  },
  "codex-mcp": {
    "type": "remote",
    "url": "https://.../mcp/",
    "timeout": 60000,
    "enabled": true
  },
  "jira-mcp": {
    "type": "remote",
    "url": "https://.../mcp/",
    "timeout": 60000,
    "enabled": true,
    "headers": {
      "Authorization": "Token {env:JIRA_PAT}"
    }
  }
}

Screenshot and/or share link

Image

Operating System

macOS 15.7.2

Terminal

Ghostty

joseph-stano avatar Jan 16 '26 23:01 joseph-stano

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

  • #6892: MCP tool permissions not working after migration from tools to permissions (configuration-related MCP issue with similar version-specific problem)
  • #8171: MCP Docker servers fail to connect after upgrade from v1.1.6 to v1.1.7+ (shows pattern of MCP connectivity breaking in specific version ranges)
  • #5299: {env:...} variable substitution inconsistently fails for specific MCP server URLs (mirrors your symptom of some MCPs working while others don't with identical config)

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

github-actions[bot] avatar Jan 16 '26 23:01 github-actions[bot]

Seeing this on ubuntu 25 with github MCP. opencode v1.1.25

owenconti avatar Jan 17 '26 00:01 owenconti

Yes, I encountered the same issue. All MCPs with type "remote" are disabled by default and cannot be opened

zer0Black avatar Jan 17 '26 02:01 zer0Black

same issue here with v1.1.25

johnsonsleo avatar Jan 17 '26 02:01 johnsonsleo

hardcoded?

super-unique-ai avatar Jan 17 '26 02:01 super-unique-ai

Hmm

rekram1-node avatar Jan 17 '26 02:01 rekram1-node

same here

Aaalice233 avatar Jan 17 '26 02:01 Aaalice233

It looks like this was this issue: https://github.com/anomalyco/opencode/commit/40b275d7e6759d2209bbaec7d4d13f729198bda3

Sorry guys, shouldn't have merged that.

Strangely I cannot replicate this issue tho

rekram1-node avatar Jan 17 '26 02:01 rekram1-node

If you put this in ur config it might fix it:

"oauth": false  // <-- Add this

For the mcps failing to start

rekram1-node avatar Jan 17 '26 02:01 rekram1-node

If you put this in ur config it might fix it:

"oauth": false  // <-- Add this

For the mcps failing to start

Is it supposed to be added to opencode.json? After adding it, launching opencode will prompt the following error: Error: Configuration is invalid at C:\Users\Administrator\.config\opencode\opencode.json ↳ Unrecognized key: "oauth"

Aaalice233 avatar Jan 17 '26 03:01 Aaalice233

If you put this in ur config it might fix it:

"oauth": false  // <-- Add this

For the mcps failing to start

Is it supposed to be added to opencode.json? After adding it, launching opencode will prompt the following error: Error: Configuration is invalid at C:\Users\Administrator\.config\opencode\opencode.json ↳ Unrecognized key: "oauth"

Should of installed it on Rocky Linux... https://rockylinux.org/

super-unique-ai avatar Jan 17 '26 03:01 super-unique-ai

No I meant doing it per mcp server like this:

  "jira-mcp": {
    "type": "remote",
    "url": "https://.../mcp/",
    "timeout": 60000,
    "enabled": true,
    "headers": {
      "Authorization": "Token {env:JIRA_PAT}"
    },
    "oauth": false
  }

rekram1-node avatar Jan 17 '26 04:01 rekram1-node

I have reverted bad commit (or the only suspect commit I should say): https://github.com/anomalyco/opencode/commit/33290c54cdd68081236ede205133d255ed639455

rekram1-node avatar Jan 17 '26 04:01 rekram1-node