Skip to content

MCP : Change the status of an MCP using the switch #25928

Closed as not planned
Closed as not planned

Description

@ddbd

Description

Assume you have multiple disabled mcp servers configured (with enabled: false).
When you try to activate an mcp with the toggle switch the mcp is grey and flips back to disabled mode.
But this is only an optical issue. If you restart OpenCode Desktop with STRG+R the mcp is enabled.

Of course nothing is or should be changed within the setting json.
But when the mcp is enabled the settings should be changed in the ui until openCode is restarted.

Plugins

could be reproduced with no plugins

OpenCode version

v1.14.39

Steps to reproduce

  1. configure multiple mcps with enabled: false
  2. enable those mcps within opencode
  3. wait 5 secs
  4. the mcp flips back to enabled false
  5. reload OpenCode with STRG + R
  6. the mcp is enabled

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on May 5, 2026

    @github-actions
    Contributor

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

    Please review these issues and consider whether your report adds new information (e.g., specific to the switch UI element or Windows behavior) before continuing.

  2. ddbd commented on May 5, 2026

    @ddbd
    Author

    #17799: MCP toggling via /mcp command doesn't persist changes — same symptom of toggle appearing to work but reverting after restart
    #13763: Disabling MCPs doesn't persist across sessions — describes the same behavior with the toggle reverting on restart
    #18664: MCP server cannot keep off in Mac desktop app — same underlying issue on a different platform

    I think the behavior of openCode Desktop should be identical to openCode. Within OpenCode the setting change is not persistant in config file. The OpenCode Desktop Change should not be persistant neither.

    But #23862 seems to tbe the fix

  3. Brendonovich commented on May 6, 2026

    @Brendonovich
    Member

    Reloading the window doesn't reload the opencode server which is what actually manages MCPs. The toggle does accurately represent the MCP state afaict.

    Screen.Recording.2026-05-06.at.3.02.23.pm.mov
  4. ddbd commented on May 6, 2026

    @ddbd
    Author

    Reloading the window doesn't reload the opencode server which is what actually manages MCPs. The toggle does accurately represent the MCP state afaict.

    You are right and wrong the same time. The issue is not the server, which manages the mcps.
    The frontend is not showing the corret state of the mcps. Reloading the Frontend is just a way of forcing the frontend to reload the settings form server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions