Files
oh-my-pi/packages
Roman Alexander 0800cfa2d3 feat(mcp): support disabling discovered servers from third-party configs
Previously, /mcp enable|disable only worked for servers defined directly
in user or project config files. Discovered servers from third-party
configs (e.g. capability-provided) could not be toggled off without
removing them at the source.

This adds a disabledServers list to the user-level .mcp.json config that
acts as an overlay. When loading MCP configs, servers whose names appear
in this list are excluded alongside those with enabled: false.

Changes:
- Add disabledServers field to MCPConfigFile type
- Add readDisabledServers/setServerDisabled helpers in config-writer
- Filter discovered servers against the disabled list during config load
- Handle enable/disable toggle for discovered servers in the MCP
  command controller, including reconnection on re-enable
- Show disabled discovered servers in /mcp list output
2026-02-16 00:49:35 +07:00
..
2026-02-15 15:38:46 +01:00
2026-02-15 15:38:46 +01:00
2026-02-15 15:38:46 +01:00
2026-02-15 15:38:46 +01:00
2026-02-15 15:38:46 +01:00
2026-02-15 15:38:46 +01:00