Skip to content

OpenCode Desktop ignores path, while TUI doesn't #25748

Closed as not planned
Closed as not planned

Description

@theLastOfCats

Description

Installed latest OpenCode desktop via deb package.

MCP is not working, since it can't find npx and uv in PATH.

TUI works correctly.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "memory": {
      "type": "local",
      "command": ["npx", "-y", "@modelcontextprotocol/server-memory"]
    },
    "filesystem": {
      "type": "local",
      "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/home/thelastofcats/Code"]
    },
    "git": {
      "type": "local",
      "command": ["uvx", "mcp-server-git"]
    }
  },
  "plugin": [
    "@tarquinen/opencode-dcp",
    "opencode-snip",
    "opencode-agent-memory",
    "cc-safety-net",
    "envsitter-guard"
  ],
  "permission": {
    "websearch": "ask",
    "webfetch": "ask"
  }
}

Desktop logs:

thelastofcats@pika:~$ OpenCode
Wayland session detected; using native Wayland first with X11 fallback (auto backend). Set OC_FORCE_X11=1 to force X11.

(OpenCode:27347): dbind-WARNING **: 21:44:05.843: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
2026-05-04T18:44:05.859692Z  INFO opencode_lib: Initializing app
2026-05-04T18:44:05.944691Z  INFO opencode_lib: Spawning sidecar on http://127.0.0.1:46883
2026-05-04T18:44:05.944709Z  INFO opencode_lib::cli: Spawning sidecar port=46883
2026-05-04T18:44:06.070204Z  INFO opencode_lib::cli: Loaded shell environment with -il shell="/bin/bash" env_count=83
2026-05-04T18:44:06.070475Z  INFO opencode_lib::cli: No CLI installation found, skipping sync
2026-05-04T18:44:06.691687Z  INFO sidecar: opencode_lib::cli: opencode server listening on http://127.0.0.1:46883
2026-05-04T18:44:06.785612Z  INFO opencode_lib::server: Server ready elapsed=715.122819ms
2026-05-04T18:44:06.785634Z  INFO opencode_lib: Sidecar health check OK
2026-05-04T18:44:06.785637Z  INFO opencode_lib: Loading task finished
2026-05-04T18:44:06.785646Z  INFO opencode_lib: Loading done, completing initialisation
2026-05-04T18:44:07.152987Z  INFO sidecar: opencode_lib::cli: ERROR 2026-05-04T18:44:07 +720ms service=mcp key=memory command=["npx","-y","@modelcontextprotocol/server-memory"] cwd=/home/thelastofcats/Code/Orchid error=Executable not found in $PATH: "npx" local mcp startup failed
2026-05-04T18:44:07.153125Z  INFO sidecar: opencode_lib::cli: ERROR 2026-05-04T18:44:07 +1ms service=mcp key=filesystem command=["npx","-y","@modelcontextprotocol/server-filesystem","/home/thelastofcats/Code"] cwd=/home/thelastofcats/Code/Orchid error=Executable not found in $PATH: "npx" local mcp startup failed
2026-05-04T18:44:07.153171Z  INFO sidecar: opencode_lib::cli: ERROR 2026-05-04T18:44:07 +0ms service=mcp key=git command=["uvx","mcp-server-git"] cwd=/home/thelastofcats/Code/Orchid error=Executable not found in $PATH: "uvx" local mcp startup failed

Additional:

thelastofcats@pika:~$ which npx
/home/thelastofcats/.local/share/mise/installs/node/lts/bin/npx
thelastofcats@pika:~$ npx -v
11.12.1
thelastofcats@pika:~$ which uvx
/home/thelastofcats/.local/share/mise/installs/uv/0.11.8/uv-x86_64-unknown-linux-musl/uvx
thelastofcats@pika:~$ uvx -v
DEBUG Searching for user configuration in: `/home/thelastofcats/.config/uv/uv.toml`
DEBUG uv 0.11.8 (x86_64-unknown-linux-musl)
Provide a command to run with `uvx <command>`.

See `uvx --help` for more information.
thelastofcats@pika:~$ opencode mcp list

┌  MCP Servers
│
●  ✓ memory connected
│      npx -y @modelcontextprotocol/server-memory
│
●  ✓ filesystem connected
│      npx -y @modelcontextprotocol/server-filesystem /home/thelastofcats/Code
│
●  ✓ git connected
│      uvx mcp-server-git
│
└  3 server(s)

Plugins

"@tarquinen/opencode-dcp", "opencode-snip", "opencode-agent-memory", "cc-safety-net", "envsitter-guard"

OpenCode version

1.14.33

Steps to reproduce

  1. setup mise with uv and node@lts
  2. install opencode desktop via deb
  3. setup config
  4. run opencode desktop

Screenshot and/or share link

No response

Operating System

PikaOS 4

Terminal

Kitty

Activity

  1. github-actions commented on May 4, 2026

    @github-actions
    Contributor

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

    If your issue is the same, please consider adding a thumbs-up or comment on those issues instead of opening a new one.

  2. marked zsh:1: command not found #25952 as a duplicate of this issue on May 6, 2026
  3. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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