Skip to content

mcpx: codedb and fff entries in .mcpx.json still use /home/user absolute paths #864

Closed

Description

@dezren39

Follow-up to #863 (which made the desktop-commander entry portable).

The same portability wart remains for two other entries in the tracked project config .mcpx.json:

  • codedb: command: "/home/user/bin/codedb"
  • fff: command: "/home/user/.local/bin/fff-mcp"

These absolute paths only resolve on machines whose home is /home/user. Because mcpx project scope overrides user scope, a machine with a different home directory cannot shadow them with working user-level entries — the broken project entries win and the servers fail to start.

Observed on the Muse sandbox (home /home/hatch), merged project view via mcpx status:

  • server "codedb": start /home/user/bin/codedb: fork/exec ...
  • server "fff": start /home/user/.local/bin/fff-mcp: fork/exec ...

Possible directions (not prescribed): portable npx-style commands like the rest of the file where a published package exists, a PATH-relative command name, or an env-substituted path if mcpx config supports it. Any change should keep the laptop (home /home/user) working unchanged in behavior.

Acceptance criteria

  • The codedb and fff entries in the tracked .mcpx.json no longer hard-code /home/user absolute paths; they resolve on machines with a different home directory (verified on the Muse sandbox, home /home/hatch, via mcpx status with no fork/exec errors for these servers).
  • Behavior on the laptop (home /home/user) is unchanged: both servers still start and respond.
  • The chosen mechanism (PATH-relative name, published package command, or env substitution) matches the portability approach already used for the desktop-commander entry in mcpx: make desktop-commander entry portable (npx form) #863.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 26, 2026
  2. dezren39 commented on Oct 26, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (2026-10-25 run). Acceptance criteria appended to the body this pass (original body preserved verbatim above it).

    Still live — verified this run: No sibling issue or PR found addressing the codedb / fff entries (search this run: none); #863 fixed only the desktop-commander entry, and this is its named follow-up.

    Related: #863 (the desktop-commander portability fix — its mechanism is the precedent to match). Cross-repo note: mcpx also lives in dezren39/nix, but this issue is specifically about this repo's tracked .mcpx.json project entries, so it stays single-repo per the fleet's one-change-one-issue rule; if the fix turns out to be an mcpx config-mechanism change (e.g. env substitution support), that part would be a set handled from the origin issue.

    Notes / suggested approach: Because project scope overrides user scope in mcpx, these two entries are actively broken on any non-/home/user machine (observed fork/exec failures on the Muse sandbox, home /home/hatch). Prefer, in order: a PATH-relative command name if both tools are reliably on PATH, a published-package command like the rest of the file where one exists, or env substitution if mcpx supports it. Verify on both homes (sandbox /home/hatch and laptop /home/user) per the criteria.

    Risks: Low. Only real risk is picking a mechanism that resolves differently under the systemd/user-session PATH vs an interactive shell — the mcpx status check on each machine covers it.

  3. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  4. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  5. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Triage verdict — CONFIRMED, with one dormancy nuance and one scope expansion (queue task 2277, lane B)

    Verified on current main b56ccda (.mcpx.json read from origin/main):

    • ✅ fff — confirmed, active. Line 13 (active mcpServers): "command": "/home/user/.local/bin/fff-mcp". Project scope overrides user scope, so this breaks fff on every machine whose home isn't /home/user — the failure mode in the issue stands.
    • ⚠️ codedb — path confirmed, impact dormant. Line 89 still has "command": "/home/user/bin/codedb", but the entry now sits under disabledMcpServers — parked there by 387a0cf ("mcpx: park the codedb server under disabledMcpServers", Drew 2026-10-29). It cannot fail to start while parked; the wart returns the moment it's re-enabled, so it stays in the fix scope at lower urgency. Its parked state is Drew's call and the fix does not re-enable it.
    • ➕ Scope expansion (same pattern, not named in the issue): fff-nix (lines 79–80) and fff-worktree (lines 83–84) are active entries with the same absolute command plus absolute-path args — /home/user/code and /home/user/.local/share/opencode/worktree. Those args name machine-specific roots, so they're in the fix packet too.
    • Route facts: mcpx spawns servers via exec.Command, so bare command names resolve through PATH exactly like the existing npx/go entries (the mcpx: make desktop-commander entry portable (npx form) #863 desktop-commander precedent, 789b7f9); there is no $HOME/tilde expansion of server command/args in pkgs/mcpx/internal/config, so "just write $HOME/..." is not an available spelling today.

    Remainder, routed as one scoped small_fix packet (enqueued as task 4865, packet-864-fix.json): bare-name commands for fff/codedb after PATH verification in the daemon environments; fff-nix/fff-worktree removed from the tracked project config (machine-specific roots belong in user scope) unless a portable root spelling is proven; grep-verified zero /home/user in .mcpx.json; file stays biome/treefmt-clean. No mcpx expansion machinery, no codedb re-enable.

  6. 29 remaining items

  7. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Blocked-claim validation — UNBLOCKED (dropped-thread catcher, 2026-11-13T05:31Z)

    Checked live, not the claim's wording:

    • The bug is still live on current main: tracked .mcpx.json still carries the absolute paths — fff (line 13), fff-nix (line 75, arg /home/user/code), fff-worktree (line 82, arg under /home/user/.local/share/opencode/worktree), and the dormant codedb entry (line ~90). No open PR addresses mcpx: codedb and fff entries in .mcpx.json still use /home/user absolute paths #864.
    • The recorded blocker (task 4865, 2026-11-01) is real but fleet-solvable, not a stop: a bare fff-mcp command does not resolve from the live mcpx daemon's PATH, which omits /home/user/.local/bin. That PATH gap is fleet configuration, not an external dependency and not a Drew decision.

    Scope expansion approved under standing fleet authority: the fix for this issue may include making fff-mcp resolvable from the daemon's PATH (repo install step / PATH directory / daemon environment) in addition to the .mcpx.json portability edits, so the bare-name fix the triage verified (resolvable on both the sandbox and the laptop login PATH) also works for the daemon. The codedb entry stays disabled/dormant per Drew's 2026-10-29 park — fix its path, do not re-enable it.

    Labels: status/blocked + queue/blocked removed; queue/queued (already present) is the live route. Resume task 4865's scope under this expanded packet.

  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Agent note — PR opened (task 4865, lane any-d, 2026-11-13)

    • PR: mcpx: portable fff/codedb entries + daemon PATH for home bins (#864) #9380 — branch queue/4865-864-mcpx-portable, commit 3939d82 (3 files, +6/-20).
    • Fix: .mcpx.json fff command is now the bare name fff-mcp; fff-nix/fff-worktree removed from the tracked project config (machine-specific roots belong in user scope); codedb bridge arg is now repo-relative bin/codedb-bridge.mjs. No /home/user string remains in .mcpx.json (grep-verified, JSON parses).
    • Daemon side (STEER): home/common/mcpx-settings.nix fff commands are bare fff-mcp, and home/common/default.nix appends /home/user/.local/bin:/home/user/bin to the mcpx daemon PATH (mcpxEnvironment) so the daemon resolves them. Takes effect at the next home switch via the mcpx deploy handover; not switched from this lane.
    • Packet correction: the packet said codedb sits under disabledMcpServers with command /home/user/bin/codedb — on current main it is active with command node and an absolute bridge arg; handled as above. The daemon's live config is mcpx-settings.nix, not the root .mcpx.json.
    • Verification: bare-name resolution in a clean env (fff-mcp -> /home/user/.local/bin/fff-mcp, codedb -> /home/user/bin/codedb); nix-instantiate --parse passes on both edited .nix files.
    • Worktree note: foreign pkgs/mcpx prompt-hooks WIP appeared in the worktree via a shared-stash pop mid-shift; left untouched, not in PR mcpx: portable fff/codedb entries + daemon PATH for home bins (#864) #9380.
  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 13, 2026
  10. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Agent note — done (task 4865, lane any-d, 2026-11-13)

    PR #9380 squash-merged at 2026-11-13T08:29:59Z, merge commit 6aeef4c; issue #864 auto-closed by the merge. Codex review could not run (Codex usage limits — review failed with no findings); CodeRabbit neutral/rate-limited; GitHub Actions checks had not queued in the fleet Actions stall, so the merge rests on the local verification recorded on PR #9380 (grep, JSON parse, nix parse, clean-env PATH resolution), per standing merge authority. The daemon PATH/settings change takes effect at the next home switch via the mcpx deploy handover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions