Repository navigation
Description
Relocated from dezren39/darwin-nix#97 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).
Parent: #91
Purpose
The notes' goal: "a general goal is to ensure all features have one or more integration tests", proved through the real product -- "the mcp servers can be specialized mocks but the app entrypoint or binary is used" -- and then proved again in every environment mcpx claims to run in.
Where it starts. The binary half of this is already good: internal/e2e/e2e_test.go:35 newEnv builds the real binary once per test binary (internal/testsupport/build.go) and drives it against a fake MCP server (internal/testsupport/fakemcp/main.go, plus askmcp for elicitation), isolated by MCPX_STATE_DIR, MCPX_CACHE_DIR, MCPX_CONFIG and MCPX_REGISTRY_URL, with a 60 s MCPX_AUTOSTART_IDLE_EXIT and a stop --all cleanup since #182. 199 tests did this at d0b7e01; 209 at 05c78b2. So the notes' "for both binary && app entrypoint" is really one path that exists and one that does not: cmd/mcpx/main.go:56 builds &cli.App{...} and dispatches inside main(), and there is no in-process entrypoint any test uses.
Three things this tracker had to correct in the notes, because the premises were not true when it was written (the first two are updated for #182):
- There was no Containerfile when this was written; Phase 5: tag event bodies must travel with the event #182 added one.
pkgs/mcpx/Containerfile(withdocs/container.md):debian:bookworm-slim, bun only, git,ARG CGO_ENABLED=1, pinned by tag and digest, 413 MB. No CI job builds it and no test runs in it, and there is still nodockerToolsimage in the flake. So "all tests should pass for nix flake & container" now has an artifact to point at but nothing that tests it, and "the supported mcp version is the one in the flake/containerfile" now has two version sources that already drift (Renovate Phase 5: compaction for tag clears #184 bumps the Containerfile's Go image on its own). Update Rust crate rand to v0.9.3 [SECURITY] #134 owns testing it; Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 owns the version pin. - "basically everything should work because static binary" is true of what mcpx can be and false of what ships. mcpx can be static:
os/userandnetpull libc only under cgo, and Phase 5: tag event bodies must travel with the event #182 verified aCGO_ENABLED=0build is fully static and works (ldd: "not a dynamic executable";--version,ls,call,execpass). But the default nix package is built with nixpkgs' cgo default andpostInstallwraps it to pingit,deno,bun-binandnodejsontoPATH, and the Containerfile keepsCGO_ENABLED=1deliberately -- so the shipped artifacts are not static, by choice. And even a staticmcpxcannot runmcpx execwithout a JavaScript runtime, which (like git) is a dynamically linked distribution binary, so aFROM scratchimage withexecneeds those closures inside it. Update dependency happy-dom to v21 [SECURITY] #136 owns the policy (which artifacts are static; the NSS/DNS trade-off). When checking the nix output,file result/bin/mcpxinspects themakeBinaryWrapperC launcher; look atresult/bin/.mcpx-wrapped. - mcpx does not compile for
GOOS=windows.syscall.SysProcAttr{Setpgid},Setsidandsyscall.Killappear unguarded acrossinternal/runner,internal/mcpclientandinternal/cli; only the tty files have a build-tag split, andpackage.nixagrees --meta.platforms = lib.platforms.unix. Windows is a port, not a matrix leg, and Update dependency happy-dom to v21 [SECURITY] #136 files it as one.
And one hazard that is a live bug rather than a design question, still open at 05c78b2: newEnv does append(os.Environ(), ...) (e2e_test.go:52), and socketPath returns $MCPX_SOCKET verbatim before any state-dir logic (internal/daemon/paths.go:103-105). A developer with MCPX_SOCKET or MCPX_DAEMON_ENDPOINT exported -- exactly the developer who has their own daemon running, which is the case the notes call out -- points the whole suite at it. That is #138, and it is the cheapest issue in this tracker.
What this tracker does not own: the CI job graph the environment legs become entries in (#95, #135/#139), the seed (#93), and the policy about which of these an agent runs locally (#99).
Children
- Update dependency @chenglou/pretext to ^0.0.9 [SECURITY] #132 mcpx testing: inventory every feature against its integration tests, and guard that each has one
- Update Rust crate bytes to v1.11.1 [SECURITY] #133 mcpx testing: an in-process app entrypoint beside the binary suite, and a scriptable mock MCP server
- Update Rust crate rand to v0.9.3 [SECURITY] #134 mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries
- Update dependency happy-dom to v21 [SECURITY] #136 mcpx testing: extended platforms -- which artifacts ship static; alpine, scratch, distroless, flatpak, Fedora, Windows tiers
- Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 mcpx testing: a labelled real-software subset, pinned by the flake, run nightly
- Update dependency htmx.org to v1.9.12 #138 mcpx testing: e2e inherits the caller's environment -- build it from an allowlist so tests never reach the user's daemon
Proposed order
- Update dependency htmx.org to v1.9.12 #138 first, out of dependency order, because it is S-M, it is a correctness hole in every e2e run started from a shell that has
MCPX_*set, and every environment leg added later inherits the bug if it is not fixed first. An allowlist-built environment is also the mechanism the "user has a real daemon running" subset needs. Phase 5: tag event bodies must travel with the event #182 already did its idle-exit step (and closed chore(deps): bump build/buck/preludes/buck2-prelude fromd956689toe7457f6#52); the allowlist itself is what remains, and it is now also the last precondition fort.Parallelin e2e (Update dependency hyperscript.org to v0.9.93 #139). - Update dependency @chenglou/pretext to ^0.0.9 [SECURITY] #132 -- inventory what exists against what is claimed, and make the coverage goal enforce itself. "Every feature has a test" is a slogan until something fails when it stops being true; the generalisation of
TestEveryDeclaredRouteAnswersOverTheSocket(internal/e2e/v1ops_test.go:287) is what makes it a fact. - Update Rust crate bytes to v1.11.1 [SECURITY] #133 -- the in-process entrypoint, as a second driver running the same test bodies rather than a second copy of the tests. That is what makes "consider binary a superset" an executable claim instead of an assertion.
- Update Rust crate rand to v0.9.3 [SECURITY] #134 -- the environments the notes treat as required: nix flake, container, local, remote. A user-facing image now exists (Phase 5: tag event bodies must travel with the event #182); the bulk of the work is a flake-built test image and the legs that run in it. Its cheapest entries -- assertions on the installed nix output, and a CI build of Phase 5: tag event bodies must travel with the event #182's Containerfile -- can land earlier.
- Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 -- the real-software subset, opt-in by construction. It must be opt-in rather than opt-out: Update Rust crate axum to 0.6.20 #65 is the recorded case of a test reaching the real internet and failing only in CI.
- Update dependency happy-dom to v21 [SECURITY] #136 -- the wishlist. The notes frame these as "ideally would like if worked", not as requirements, and this issue tiers them accordingly.
Children -- ease and impact
| # | Title | Kind | Ease | Impact |
|---|---|---|---|---|
| #132 | inventory features against tests, guard that each has one | design + review | M (review S; ledger and guard M; closing gaps is separate) | high |
| #133 | in-process entrypoint + scriptable mock MCP server | design | L (stage 1 M; env threading L; scriptable fake M) | high |
| #134 | nix flake, container, local, remote as matrix entries | design | L (devShell S; flake image and checks.mcpx-e2e M; remote runner M-L) |
high |
| #136 | extended platforms; which artifacts ship static (feasibility verified in #182) | design + research | XL overall (static build + tier-2 containers M; Windows port L; flatpak/silverblue M each) | med (tier 2), low-med (tier 3) |
| #137 | labelled real-software subset, pinned, nightly | design | M (tag, helper, reference servers M; packaging S-M) | med-high -- the only proof mcpx works with anything but its own fakes |
| #138 | e2e inherits the caller's environment -- allowlist it | bug + implement | S-M | high -- a correctness hole in every affected run |
Warnings carried by this tracker
- A leg that skips is a green leg that tested nothing.
internal/e2e/runtime_test.goskips when a runtime is absent, so a runner without bun is silently green. This has to be fixed before any OS matrix is added, or the matrix is decorative. - There is no single "supported mcp version".
internal/mcpserveradvertises a list of protocol versions andinternal/mcpclientpins one;GET /v1/protocolalready reports both directions. The pin is a golden-file diff on an existing route propagated outward into packaging, not a number typed into a Containerfile. Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 has the detail. - Every extra environment leg fights Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /sources/launcher #95's time budget directly. Update dependency happy-dom to v21 [SECURITY] #136's tiering (gating / nightly / aspiration-with-no-CI) exists precisely so the wishlist does not quietly become the critical path.
- Hidden interpreter dependency: parts of the e2e suite and
scripts/stress.shshell out topython3, whichpackage.nixdoes not declare. A minimal container image will find this the hard way. - Flatpak is a poor fit and should be argued, not assumed. It is desktop GUI packaging; mcpx spawns arbitrary host processes and hands out unix sockets, so it would need
--filesystem=host --share=network --talk-name=org.freedesktop.Flatpak, at which point the sandbox provides nothing the container image does not. Silverblue/Kinoite likewise are an install story, not a different runtime -- which is the notes' own "installers make assumptions and require permissions" bullet.
Related
#91 (parent), #95 (#134/#136's legs are entries in its matrix; #135, #139, #140), #93 (generators aim at the features #132 inventories), #99 (#127 decides which of these an agent runs locally; #129 owns guards generally), #100 (owns #181 collision 11; its no-Deno leg is a #134 matrix row), #178 (assertions on the nix output's man page, completions, version), #158 (release artifacts; the static tarball), #52 (closed, fixed in #182), #88, #65, #35, #76, #79, #78, #47, #48, #49, #102, #106.
Security/auth deferred; see tracker.
Acceptance criteria
- Integration tests cover every mcpx feature named in this issue across the environments it lists, run in CI, and are enumerated in a matrix linked from this issue.
- A feature without integration coverage is either added to the matrix with a test or explicitly excluded with a reason recorded here.
Activity
developing-today commentedon Oct 28, 2026
CODE-832
dezren39 commentedon Oct 28, 2026
History carried over from dezren39/darwin-nix#97 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:20:02Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T12:03:35Z
Issues pass (2026-09-30, at 05c78b2).
CGO_ENABLED=0build works). Update dependency happy-dom to v21 [SECURITY] #136 owns the policy.d956689toe7457f6#52 is closed; Update dependency htmx.org to v1.9.12 #138's allowlist still goes first. Update Rust crate rand to v0.9.3 [SECURITY] #134's first cheap entries can land before the test image. Update dependency happy-dom to v21 [SECURITY] #136's title and table row now say "which artifacts ship static".d956689to9afedba#100 (collision 11), Phase 3: range read_flight buffers frames with no cap while more is set #178, amd host fails at evaluation: no outputHashes for p2panda-core-0.7.1 #158; chore(deps): bump build/buck/preludes/buck2-prelude fromd956689toe7457f6#52 marked closed.@dezren39 · 2026-10-28T21:37:23Z
Triage verdict (task 2105, repo-health-nix-pilot): RELOCATED / SUPERSEDED IN PLACE — tracker stays open, its test surface moved repos; no fix packet in this repo.
Verified against current main at
224c7b738e88c7a8e5d406987a7d88257e229db2:tracker,testing— no hard-stop labels. Its leaves are all still OPEN here: Update dependency htmx.org to v1.9.12 #138 (e2e env allowlist,bug), Update dependency @chenglou/pretext to ^0.0.9 [SECURITY] #132 (feature/test inventory guard), Update Rust crate bytes to v1.11.1 [SECURITY] #133 (in-process entrypoint + mock server), Update Rust crate rand to v0.9.3 [SECURITY] #134 (environments as CI matrix), Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 (real-software subset), Update dependency happy-dom to v21 [SECURITY] #136 (extended platforms).path:internal/e2ein this repo returns 0 results, andmcpx-nixbuild.ymlstates mcpx's source "lives only in developing-today/code now". That repo carries the mcpx test workflows (mcpx.yml,mcpx-conformance.yml).Route: no
small_fixpacket in dezren39/nix — there is no e2e suite here to extend. The leaves need the same relocation pass flagged on #95, referencing this tracker rather than spawning fresh per-repo issues. One nuance for that pass: #134 (nix flake as an environment) and #136 (which artifacts ship, via this flake) are partially nix-relevant, so split those two rather than moving them wholesale. #97 stays open as the nix-side tracker until relocation is decided/done.dezren39 commentedon Oct 28, 2026
Intake review
🤖 Agent note · filed
Notes: Filed in the large mcpx filing batch of 2026-10-28 21:59–22:24Z and already carries a queued triage task — it is not orphaned. Verified live at intake: no merged PR references this issue and it was filed under an hour ago, so nothing can have resolved it yet. Acceptance criteria appended to the body from the issue's own stated scope; original body preserved verbatim above it.
Risks: Tracker-level scope overlaps its sibling batch issues — the triage pass must dedupe against them before any implementation packet is written, and split rather than implement if the scope is multi-PR.
Suggested approach: Triage first (task see queue): confirm the boundary against the sibling issues, then enqueue one scoped packet per deliverable slice.
34 remaining items
developing-today commentedon Nov 8, 2026
🤖 Agent note · done (triaged)
queue/queued.queue/blocked+status/blocked+user/escalated; the escalation is the recorded disposition, not a stall.developing-today commentedon Nov 8, 2026
🤖 Agent note · done (triaged — tracker stays open; child map refreshed; children already routed)
Fresh child map (2026-11-08T02:47Z):
queue/queued; its delivering PR #4804 is now CLOSED unmerged, so the child is back in the queue pool — the next claim on it should note the PR died and why before re-implementingstatus/in-progress,queue/claimed— actively claimednext,queue/queued— routeddeveloping-today commentedon Nov 8, 2026
🤖 Agent note · CORRECTION to the task 11992 verdict note (comment 6716356872)
ghreads at 2026-11-08T03:26Z). The verdict itself — tracker stays open, children carry the work, no new packet from that triage — is unchanged and is in fact strengthened. The map is superseded as follows:queue/queued,status/needs-triage, priority/high) — NOT closed. Its implementation PR mcpx e2e: env allowlist + registry guard + TestMain backstop (#1992 follow-up) #4804 is OPEN, not merged.queue/claimed+queue/parked,work/assigned,status/in-progress+status/parked— not merely queued.queue/blocked+status/blocked+user/escalated(as posted).queue/blocked+status/blocked+user/escalated— NOT unlabelled and NOT the least-tracked child; it is Drew-escalated. My "least-tracked actionable child" flag for issue mcpx testing: an in-process app entrypoint beside the binary suite, and a scriptable mock MCP server #1980 is withdrawn.status/triaged(its own remainder triage was task 12015, same shift).developing-today commentedon Nov 8, 2026
🤖 Agent note · correction (supersedes my note 6716362068 on this issue)
ghbatch completed 02:48:04Z and a re-verification batch after the shift) contradict. Do not use that map. The verdict core stands (tracker stays open, not complete, no new packet), but the child states are:Corrected fresh child map (verified twice, 2026-11-08 ~02:48–03:00Z):
queue/queued; delivering PR #4804 is still OPEN (not closed)queue/claimed,status/in-progress,work/assigned(with stalequeue/parked/status/parkedalso present) — actively claimedstatus/blocked,user/escalated,queue/blocked— blocked/escalated, NOT in-progressstatus/blocked,user/escalated,queue/blocked— blocked/escalatedstatus/triaged— open, routed#2691,#1980) blocked onuser/escalateddecisions, and mcpx testing: e2e inherits the caller's environment -- build it from an allowlist so tests never reach the user's daemon #1992's PR mcpx e2e: env allowlist + registry guard + TestMain backstop (#1992 follow-up) #4804 still open. The tracker still closes only when the children do.developing-today commentedon Nov 8, 2026
🤖 Agent note · correction to the correction (one cell: #1983)
ghbatch plus a direct foreground read just now: issue mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries #1983 is CLOSED (closedAt2026-11-01T13:48:30Z, verified three times: two independent exec batches and one directgh issue view).dezren39 commentedon Nov 8, 2026
Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [2799, 5546, 7783] were marked done, and some work did land:
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11598.
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged (task 18165, lane code-d)
Triage verdict stands, re-verified fresh this shift (2026-11-17T02:10Z): issue #1905 is OPEN, no hard-stop labels; it is the mcpx integration-test coverage parent and its execution lives in its leaf issues — no new packet for the parent (same routing as task 11992).
Fresh child map (supersedes the 2026-11-08 map where it differs): #1990 CLOSED, #1992 CLOSED (its PR #4804 MERGED), #1978 CLOSED, #2691 CLOSED, #1980 CLOSED. Still OPEN: #1983 (environments — nix flake / container / local; note it reads OPEN fresh today despite a 2026-11-08 correction note reporting a 2026-11-01 close) and #1987 (extended platforms).
Outcome: this task completes as
triaged. Issue #1905 stays OPEN until #1983 and #1987 close; no follow-on is enqueued because those two leaves are already the scoped work.dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged