Skip to content

Add Option to Disable MCP Servers#513

Merged
thdxr merged 1 commit into
anomalyco:devfrom
timoclsn:add-disable-mcp-servers-option
Jun 29, 2025
Merged

Add Option to Disable MCP Servers#513
thdxr merged 1 commit into
anomalyco:devfrom
timoclsn:add-disable-mcp-servers-option

Conversation

@timoclsn
Copy link
Copy Markdown
Contributor

@timoclsn timoclsn commented Jun 28, 2025

Adds the (simple) option to enable/disable MCP servers via the config:

  • Adds a new optional "enabled" key to the config.
  • A missing key means enabled for backwards compatibility.
  • "Disabled" prevents the server from being started.

Closes #512

@thdxr thdxr merged commit f0962e2 into anomalyco:dev Jun 29, 2025
@timoclsn timoclsn deleted the add-disable-mcp-servers-option branch June 29, 2025 06:11
@timoclsn
Copy link
Copy Markdown
Contributor Author

timoclsn commented Jun 29, 2025

@thdxr thanks for merging and releaseing! But does that work for you with the published version? With the dev version it worked fine for me but with the npm version 0.1.162 iI get these errors:

Error: Config file at /Users/timo/.config/opencode/config.json is invalid
↳ Unrecognized key(s) in object: 'enabled' mcp.playwright
↳ Unrecognized key(s) in object: 'enabled' mcp.ios-simulator
↳ Unrecognized key(s) in object: 'enabled' mcp.figma

But I don't get where they are coming from 🤔 Not sure if it's a issue on my side…

achembarpu pushed a commit to achembarpu/opencode that referenced this pull request Aug 4, 2025
andreipromarketing-dev pushed a commit to andreipromarketing-dev/opencode that referenced this pull request Apr 7, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to Enable / Disable MCP Servers (via Config)

2 participants