Skip to content

Desktop: MCP servers appear disconnected when WSL mode is enabled #28159

@herjarsa

Description

@herjarsa

Description

When using the OpenCode desktop app on Windows with WSL mode enabled, MCP servers configured as 'local' type appear disconnected in the UI, even though they work correctly when using the CLI inside WSL.

Steps to Reproduce

  1. Install OpenCode desktop on Windows
  2. Enable WSL mode in the desktop settings
  3. Configure an MCP server with a local command that references a Linux/WSL executable
  4. Observe that the MCP server shows as disconnected in the desktop status popover
  5. Run the same opencode configuration from the CLI inside WSL — the MCP server connects successfully

Expected Behavior

MCP servers should connect successfully when WSL mode is enabled in the desktop app.

Actual Behavior

MCP servers fail to connect because the sidecar process runs natively on Windows and cannot execute Linux/WSL binaries referenced in MCP commands.

Environment

  • OS: Windows (with WSL2)
  • OpenCode Desktop
  • WSL mode: Enabled

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions