You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Desktop][macOS][MCP] bunx cannot be resolved for local MCP server (Executable not found in $PATH) #15565
On macOS, OpenCode Desktop fails to start a local MCP server when the command uses bunx, even though bunx is installed and works normally in both zsh and bash in Terminal.
The Desktop app reports: Executable not found in $PATH: "bunx"
This appears to be a Desktop environment / PATH inheritance bug rather than a missing executable on the system.
On the same machine, in Terminal, all of the following work normally: opencode bun bunx
But when the same executable is used in a local MCP configuration inside OpenCode Desktop, it fails immediately with Executable not found in $PATH.
This makes Bun-based local MCP setups unreliable in Desktop on macOS, even when the toolchain is installed correctly and working in the user’s normal shell environment.
This issue seems related to other OpenCode problems around executable resolution / Desktop runtime environment / command spawning, but this report is specifically about macOS Desktop local MCP failing to resolve bunx.
Plugins
None
OpenCode version
1.2.15
Steps to reproduce
Install Bun on macOS so that bun and bunx work normally in Terminal.
Verify that bunx works in both zsh and bash.
Configure a local MCP server in OpenCode Desktop with a command that uses bunx, for example:
Activity
Brendonovich commentedon Mar 3, 2026
This should be fixed in the latest beta and the next stable release
fix(desktop): resolve full shell PATH on macOS before spawning sidecar
github-actions commentedon May 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.