MCP servers showing as disabled #6545

Closed
opened 2026-02-16 18:04:32 -05:00 by yindo · 17 comments
Owner

Originally created by @joseph-stano on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @joseph-stano on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="505" height="307" alt="Image" src="https://github.com/user-attachments/assets/023c5ea8-fedf-4394-b5da-3be01c571d96" /> ### Operating System macOS 15.7.2 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:04:32 -05:00
yindo closed this issue 2026-02-16 18:04:33 -05:00
Author
Owner

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

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] commented on GitHub (Jan 16, 2026): 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.
Author
Owner

@owenconti commented on GitHub (Jan 16, 2026):

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

@owenconti commented on GitHub (Jan 16, 2026): Seeing this on ubuntu 25 with github MCP. opencode v1.1.25
Author
Owner

@zer0Black commented on GitHub (Jan 16, 2026):

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

@zer0Black commented on GitHub (Jan 16, 2026): Yes, I encountered the same issue. All MCPs with type "remote" are disabled by default and cannot be opened
Author
Owner

@johnsonsleo commented on GitHub (Jan 16, 2026):

same issue here with v1.1.25

@johnsonsleo commented on GitHub (Jan 16, 2026): same issue here with v1.1.25
Author
Owner

@super-unique-ai commented on GitHub (Jan 16, 2026):

hardcoded?

@super-unique-ai commented on GitHub (Jan 16, 2026): hardcoded?
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

Hmm

@rekram1-node commented on GitHub (Jan 16, 2026): Hmm
Author
Owner

@Aaalice233 commented on GitHub (Jan 16, 2026):

same here

@Aaalice233 commented on GitHub (Jan 16, 2026): same here
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

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 commented on GitHub (Jan 16, 2026): 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
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

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

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

For the mcps failing to start

@rekram1-node commented on GitHub (Jan 16, 2026): If you put this in ur config it might fix it: ``` "oauth": false // <-- Add this ``` For the mcps failing to start
Author
Owner

@Aaalice233 commented on GitHub (Jan 16, 2026):

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 commented on GitHub (Jan 16, 2026): > 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"`
Author
Owner

@super-unique-ai commented on GitHub (Jan 16, 2026):

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 commented on GitHub (Jan 16, 2026): > > 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/
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

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 commented on GitHub (Jan 16, 2026): 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 } ```
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

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

@rekram1-node commented on GitHub (Jan 16, 2026): I have reverted bad commit (or the only suspect commit I should say): https://github.com/anomalyco/opencode/commit/33290c54cdd68081236ede205133d255ed639455
Author
Owner

@shawnmcrowley commented on GitHub (Jan 17, 2026):

The "oauth": false took care of n8n mcp servers in 1.1.25 all are enabled now.

@shawnmcrowley commented on GitHub (Jan 17, 2026): The "oauth": false took care of n8n mcp servers in 1.1.25 all are enabled now.
Author
Owner

@juneleung commented on GitHub (Jan 19, 2026):

still happened in Arch Linux and needs the "oauth" fix in the config JSON.

@juneleung commented on GitHub (Jan 19, 2026): still happened in Arch Linux and needs the "oauth" fix in the config JSON.
Author
Owner

@joseph-stano commented on GitHub (Jan 19, 2026):

setting "oauth": false did the trick for now 👍

@joseph-stano commented on GitHub (Jan 19, 2026): setting `"oauth": false` did the trick for now 👍
Author
Owner

@fengwk commented on GitHub (Jan 19, 2026):

Fixed in 1.1.26

@fengwk commented on GitHub (Jan 19, 2026): Fixed in 1.1.26
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6545