Skip to content

tui: "Toggle MCPs" command has no effect when pressing spacebar #36482

Description

@diegoquiroz

Summary

Toggling MCP servers via the command palette (Ctrl+P → "Toggle MCPs" → spacebar) has no effect. The server's disabled state does not change.

Environment

  • opencode version: opencode2 v0.0.0-next-15355
  • OS: Darwin 25.5.0 (darwin arm64) — MacBook Pro
  • Terminal: TERM=xterm-256color, COLORTERM=truecolor
  • Shell: /bin/zsh
  • Install/channel: next
  • Active plugins: None found in config

Reproduction

  1. Open opencode TUI
  2. Press Ctrl+P to open the command palette
  3. Select "Toggle MCPs"
  4. Navigate to an MCP server entry and press the spacebar
  5. Observe that nothing happens — the server's enabled/disabled state does not change

Expected Behavior

Pressing spacebar on an MCP server in the "Toggle MCPs" dialog should toggle its enabled/disabled state (and optionally persist the change to config).

Actual Behavior

Nothing happens. The MCP server remains in its current state (enabled or disabled) regardless of the spacebar press.

Additional Context

  • MCP servers are defined across three config files:
    • opencode.jsonc (repo root) — 4 AWS servers, all disabled: true
    • apps/frontend/opencode.json — 1 server (prompt-kit)
    • ~/.config/opencode/opencode.jsonc — 2 servers (github_grep, chrome-devtools), both disabled: false
  • The issue is reproducible consistently across all MCP server entries.
  • No error messages are displayed in the TUI when attempting to toggle.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions