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
mcpx program — full-investigation prompt: design completion & build-out for the MCP gateway #13264
Commission (Drew, 2026-11-23): "make one of these for mcpx" — a full-programme investigation master prompt for mcpx, mirroring the ID programme prompt (#13240) and the Atlas programme prompt (#13241). The full prompt is the first comment on this issue; it also lands in the repo as a dated design record under doc/ by starter PR.
Scope in one paragraph: mcpx is the fleet's single MCP gateway — a Go daemon + CLI in pkgs/mcpx/ that owns every MCP server process and serves every harness, with a 252-setting typed config registry, an effect-probe ratchet with an 8-setting exemption tail, transports over local socket/systemd, ssh, and tsnet, a live book at the repo Pages root, and live integrations (Atlas as a remote server; ID's capability-first MCP bridge; fleet integration at design stage). The prompt drives its executors to establish purpose, current + planned capabilities, and short/long-term roadmap; review and improve all existing designs and create new designs for the obvious next steps toward a fully featured MCP platform (not an MVP) — server onboarding and lifecycle (the supervisor design), per-client policy and capability ceilings tied to Atlas's sensitivity tiers and ID's capability discipline, remote/hosted servers as versioned deployments, config-system completion (the exemption tail to zero), observability, library/embedding use of mcpx's parts, and the mcpx↔fleet↔Atlas↔ID integration surface.
Deliverables: the mcpx book extended (starting from a mechanical book-vs-binary coverage audit), a dependency + blocker map, a prioritized issue map of all mcpx issues with blockers marked, landed designs, and merged implementation PRs wherever unblocked. Many parallel agents. The prompt states explicitly that it is a starting point, not a final stopping point — expand, review, repeat.
Standing constraints carried in the prompt: flag-held items (#8472's plugin.disabledTools + plugin.instructions remainders, #8473's protoTasks.cancelGrace) are investigated and designed around, never implemented without Drew's item-specific word; Drew's decisions (#8809 server logins, #8810's answers, #1943's CNAME, #12900 thread 2) are surfaced with substance, never silently decided.
This issue stays open as the programme's tracking home.
MCPX Program — Full Investigation, Next-Steps Design & Build-Out Prompt
You are the coordinator of a program-scale investigation and build-out of mcpx — Drew's
MCP aggregation and proxy daemon in developing-today/code (pkgs/mcpx/), the single gateway
through which every agent on the fleet reaches every MCP server. Dig into the full system:
what it aggregates, how the daemon lives and dies, how its 252 settings behave, who consumes it
(harnesses, fleet, Atlas, ID), and what it should become. This prompt is a starting point, not
a conclusive or final stopping point. Work the design end to end, begin implementation
wherever you are unblocked, and when a pass finishes, review what remains, expand the plan, and
repeat — until nothing more can be done with the access and authority you have. Use subtasks and
orchestration heavily: launch many parallel agents (analyze, research, design, document,
implement) and keep them pointed at the frontier. A phase finishing is a signal to start the
next one, not to stop and ask.
1. What mcpx is (ground truth — verify, don't re-derive)
mcpx is a Go daemon + CLI (version 0.1.0) that owns every MCP server process on a machine and
exposes them to agents through one surface, so no harness ever loads every tool schema into
context. The agent loop is mcpx ls → mcpx search → mcpx types <namespace> → mcpx run / mcpx exec (TypeScript scripts on deno/bun/node with namespaces preloaded).
One canonical source in pkgs/mcpx/ (the dedup shipped; #8822
is its tracking home). Programme homes: epic #8993
(one canonical MCP gateway and server parity), maintenance epic #12459, and the super tracker #1900 (every theme, in one order, with
the disagreements between them).
Surface: ~50 CLI commands in five groups (running code, finding tools, the daemon,
configuration, inspection) — including exec, catalog (token-budgeted tool listing), search (keyword or semantic), types, prompt (words in, script back), proxy
(an OpenAI-compatible LLM reverse proxy), serve (MCP over stdio), stdio-proxy (daemon
API over an ssh tunnel), settings, servers, registry, dashboard. Public Go API at pkg/client; ~60 internal packages (daemon, settings, catalog, policy, elicit, mcpauth, mcpclient, mcpserver, model, tasks, …).
Daemon lifecycle: transports are local socket/systemd, ssh, and tsnet (the daemon
as a tailnet node). Upgrades use a takeover handoff — the successor starts as the old
daemon's child and receives stdio children's pipes over a unix socket; streamable HTTP
upstream sessions survive, SSE sessions do not. Cold restarts resume streamable HTTP
sessions from upstream-sessions.json (design(mcpx): resume upstream HTTP sessions after a cold restart — persist the resumable session state #1414 phases 1–2 landed; phase 3 open). The
self-described stopgap replacement is a supervisor that owns each stdio child's pipes
for its whole life — design #1384,
Phase 3 #9963. When no daemon runs,
the CLI starts one inline and polls readiness on the daemon.inlineStartPoll interval.
The book exists and is the Pages root: pkgs/mcpx/docs/ (mdBook, .#mcpx-docs,
siteUrl argument) — 84 SUMMARY chapters, 120 markdown files, ~288k words including the
package-local archives (decisions/, changes/, compare/, spec/). It deploys via .github/workflows/mcpx-docs.yml as the whole repo Pages site at https://developing-today.github.io/code/ — the fleet book already joins under /fleet/,
atlas and id books join the same deploy. mcpx design records live in the book tree, not the repo-root doc/ archive (0 mcpx entries there). No mechanical
book-vs-binary coverage proof has ever been run — the audit is yours to build.
Deployment: Nix modules in pkgs/mcpx/modules/ are consumed through the
openchamber flake (inputs.openchamber.nixosModules.mcpx etc.); services.openchamber.enable
cascades to opencode + mcpx (2026-11-04 consolidation). The laptop runs services.mcpx with settings in home/common/mcpx-settings.nix; the live ~/.config/mcpx/config.json (beside its config.json.pre-cascade-20261103 fossil)
aggregates many servers: chrome-devtools, cloudrun, codebase-memory, codedb,
codex-connectors, deepwiki, desktop-commander, antigravity, and more.
Embeddings inside mcpx: the daemon has its own embeddings subsystem for semantic
tool search (internal/catalog/embeddings.go) — a wazero Wasm embedder
(embeddings.wasmPath) and remote OpenAI-compatible endpoints. This is tool-discovery
search, a different index from Atlas's corpus search; the boundary is un-drawn.
2. Drew's directions (the next-steps agenda — design all of it, build what's unblocked)
A. Server onboarding and lifecycle
Make adding a server a designed, boring path end to end: declaration shapes (stdio
command, remote URL, adapter-wrapped CLI #11147/adapters.allowBare + cwd, OpenAPI-derived api servers, plugins, registry finds), credential resolution (in-memory mcpx secrets,
env, per-server env), health/probe semantics, restart and reload without disturbing
unchanged servers, and removal with session cleanup. Finish the supervisor design
(#1384 → #9963): one lifecycle design that unifies takeover, cold-restart resume
(#1414 phase 3), and supervised stdio — a daemon upgrade should become a plain restart
of a front end whose children never notice. Cover multi-daemon machines (mcpx daemons)
and the systemd/socket-activation posture.
B. Per-client policy and capability ceilings
mcpx is where every client's reach is actually decided, but today policy is scattered
(rate limits and elicitation in proto.*, write policy, autonomy levels). Design one
per-client policy model: client identity (harness, seat, session), a capability
ceiling per client (which namespaces, which tools, read/write posture, rate and budget),
and enforcement inside the daemon so every transport inherits it. Tie the ladder to the
fleet's existing disciplines instead of inventing a third one: Atlas's sensitivity
ceilings (shareable < personal < local-only < secret-bearing, enforced server-side per
client identity) and ID's capability discipline (attenuable, revocable, audited —
the PolicySession shape). Open questions to design, not assume: how a ceiling is
declared (settings, config, per-server manifest), how elicitation binds user identity
(#7843, #1957), annotation trust, and what the audit record of a refused call looks like. #12900 thread 2 (is Atlas headed for multi-client use?) is Drew's decision — design the
ceiling model so it survives either answer; don't pre-build multi-tenancy.
C. Remote and hosted servers as versioned deployments
The Atlas server is the template: a hosted MCP server shipped as a versioned Cloudflare
deployment and wired into mcpx by URL. Generalize it: how a remote server is declared,
versioned, health-checked, and rolled back from the mcpx side; OAuth authorization for
remote servers and for mcpx's own /mcp (#1950, 61 conformance rows); session resume
across deploys; what mcpx registry should promise about a hosted server's provenance.
Close the release-channel gap on mcpx itself (#9900 → #1881): the install channels the
docs promise must be channels that exist.
D. Config-system completion — burn the exemption tail to zero
The ratchet only moves one way; finish it. For each of the 8 exempt settings, design
the probe (or, where a setting is a pure allocation hint like http.streamBufferInit,
the contract decision that reclassifies it honestly — an exemption with a permanent
reason is a design smell, not a resting place): a harness-controlled tailnet for the
two daemon.tsnet.* settings and daemon.tsnetUpTimeout's bring-up budget; a
timing-observable inline-start harness for daemon.inlineStartPoll; a small
embed-exporting wasm fixture model in-tree for embeddings.wasmPath (which also
unblocks real testing of the Wasm embedder). The three flag-held settings
(plugin.instructions, plugin.disabledTools, protoTasks.cancelGrace) get their
probe designs prepared and recorded — implementation waits for Drew's word, exactly
like the 11 sibling plugin.* probes that landed 2026-11-23 under #8472. In parallel:
the remaining burn-downs (#8465 CLI running group, #8469, #8471) and the test-venue
blockers (#2686, #10330) that decide how much of this CI can see.
E. Daemon lifecycle, transports, and reach
Beyond §A's supervisor: tsnet as a first-class reach (a daemon on the tailnet,
reachable from any seat — the stdio-proxy/ssh pattern generalized), inline-start
semantics, stream buffering as a designed contract (#4375: one bounded response-read
contract for all outbound calls — the http.streamBufferInit/Max pair is one
instance), dashboard and observability of the daemon itself, and the upgrade path's
failure shapes. Every bound in the daemon should be a setting with a probe (§D) —
no magic numbers with a comment.
F. Observability and the event record
mcpx already keeps events, logs, stats, and feedback (mcpx feedback, the event
store, logstore). Design the coherent observability story: one event record for
every tool call (client, ceiling decision, latency, bytes, refusal reason), stats
that answer "which servers/tools does the fleet actually use", feedback wired to
something that consumes it, and the dashboard as the live view of the same record —
not three partial systems. This is also the audit substrate §B's policy model needs.
G. Library and embedding use
mcpx's parts should be usable without the daemon: the public Go API (pkg/client
today), the C ABI / WASM / mcpx-as-its-own-upstream programme (#1877), the
harness-free plugin core with per-harness adapters (#1861), and embedding the
catalog/settings/policy packages as libraries in fleet and ID. Define the versioned
library surface (what is public, what is internal, what stability is promised),
with embedding examples taken from real call sites.
H. The integration surface: mcpx ↔ fleet ↔ Atlas ↔ ID
Settle where the model comes from (#1891, #1925 — blocked): the provider layer mcpx
owns, model profiles, the prompt command's contract, the OpenAI-compatible proxy, and life after MCP Sampling's deprecation. Include administration by intent
(#1931: finish the operation surface, then route a sentence to a declared operation),
the request repair ladder (#1927), and lifecycle hooks on exec (#1929) — these are
one AI-surface design, currently four issues.
J. Book extension, issue map, and the living record
Extend the mcpx book (it exists — do not rebuild it): first run the missing mechanical coverage audit — every CLI command and flag, every one of the 252
settings (with default + provenance + probe/exemption status), every transport,
every public library entry point, mapped to a chapter or a named gap; then write
the missing chapters (the §A–§I designs join as book chapters in pkgs/mcpx/docs/,
per mcpx's own convention), fix reverse gaps (chapters describing surfaces the
code no longer has — the ASSESSMENT corrections-header pattern), and keep the
zero-warning build + docs-twins gates green. The book's deployment chapter must
absorb the new reality: its deploy now carries the fleet, atlas, and id books
under subpaths (fix(ci): stage fleet docs into writable Pages directory #13225's staging fix is part of this workstream's surface).
Extend the docs-sync contract the way fleet's DOC-01 works: a surface change
(command, flag, setting, transport) updates its chapter in the same change.
Designs + PRs — every workstream produces landed designs (mcpx product
designs in the book tree; programme records in the repo doc/ archive) and,
wherever unblocked, merged implementation PRs.
3. How to work (fleet rules — binding)
GitHub via the gh CLI / REST only (the GitHub connector is banned). File a GitHub
issue in the owning repo the same pass for any problem found.
Execution on the laptop (primaries stay on main + clean; worktrees on branches,
landed by PR). Never git stash in shared clones. Never force-push main.
Before implementing any issue: premise check + singular-ownership check (a claim
comment from another agent is a hard stop). Re-read an issue's newest comments
immediately before merging.
Evidence standard: every factual claim carries its checked source or is labelled
unverified; counts computed from a named source, never estimated in prose.
Secrets by name only, never values. mcpx's own secrets handling is in-memory only;
keep it that way in every design. Never touch the vertexinc org. External
communications need per-item pre-approval. Quota doctrine: plan quotas only,
never funds; a 402 is a wall.
4. The iteration rule
This prompt is the starting point. When every workstream has reported, do not
conclude: re-survey (issues, settings registry, book coverage, consumers, the live
daemon's server set), reconcile what the passes learned, expand the design set and
the issue map, and run the next pass. The program ends only when a full pass finds
nothing more that can be designed, documented, or implemented with the authority
available — and even then, the book, the issue map, the exemption ratchet at zero,
and the docs-sync contract remain as the living record the next pass starts from.
Pages deploy structure: recommendation from the mcpx book audit
Asked as part of the bookwright pass over the mcpx book (PR #13413): should each book have its own GitHub Pages deploy, or should mcpx stay merged in the single deploy — and should mcpx stay at the site root? This comment records the analysis and the recommendation. Nothing was restructured: the deploy shape is the owner's call; the book PR only documented the current arrangement (new chapter: Deploying this book).
Recommendation
Keep the single deploy. Keep mcpx at the root. Fleet, Atlas and ID stay under /fleet/, /atlas/, /id/.
Why per-book deploys are not really on the table
GitHub Pages gives a repository one site, and a deployment replaces the whole site. There is no per-book deployment inside this repo to be had: a second workflow publishing its own output alone would erase the other three books on its first run. The current workflow's deploy job says as much in its comments.
The actual alternatives are worse than the problem: move books to separate repositories (splits the one-flake build, the shared mdBook/docs-twins tooling pattern, and cross-book links), or move hosting off Pages (new infrastructure, new failure modes, zero reader benefit).
Pages offers no server-side redirects. Moving mcpx to /mcpx/ for symmetry with the other three would break every existing link to the root, or require a maintained tree of meta-refresh stubs — a permanent tax for an aesthetic gain.
Symmetry is the only thing a move buys, and it can be bought later: if a fifth book or a books index ever needs the root, the staging step makes it a one-line siteUrl change plus the stub question. That decision belongs with mcpx docs: a custom subdomain for the site (DNS, CNAME, HTTPS) #1943's CNAME call, since both change the site's public addresses at once.
What the audit changed around this
The book now documents the arrangement (Deploying this book chapter): the single deploy, the four books' subpaths and siteUrls, the publish-job split, and the verify-every-book step after a landing.
Activity
developing-today commentedon Nov 23, 2026
CODE-4838
dezren39 commentedon Nov 23, 2026
MCPX Program — Full Investigation, Next-Steps Design & Build-Out Prompt
You are the coordinator of a program-scale investigation and build-out of mcpx — Drew's
MCP aggregation and proxy daemon in
developing-today/code(pkgs/mcpx/), the single gatewaythrough which every agent on the fleet reaches every MCP server. Dig into the full system:
what it aggregates, how the daemon lives and dies, how its 252 settings behave, who consumes it
(harnesses, fleet, Atlas, ID), and what it should become. This prompt is a starting point, not
a conclusive or final stopping point. Work the design end to end, begin implementation
wherever you are unblocked, and when a pass finishes, review what remains, expand the plan, and
repeat — until nothing more can be done with the access and authority you have. Use subtasks and
orchestration heavily: launch many parallel agents (analyze, research, design, document,
implement) and keep them pointed at the frontier. A phase finishing is a signal to start the
next one, not to stop and ask.
1. What mcpx is (ground truth — verify, don't re-derive)
mcpx is a Go daemon + CLI (version 0.1.0) that owns every MCP server process on a machine and
exposes them to agents through one surface, so no harness ever loads every tool schema into
context. The agent loop is
mcpx ls→mcpx search→mcpx types <namespace>→mcpx run/mcpx exec(TypeScript scripts on deno/bun/node with namespaces preloaded).One canonical source in
pkgs/mcpx/(the dedup shipped; #8822is its tracking home). Programme homes: epic #8993
(one canonical MCP gateway and server parity), maintenance epic
#12459, and the super tracker
#1900 (every theme, in one order, with
the disagreements between them).
configuration, inspection) — including
exec,catalog(token-budgeted tool listing),search(keyword or semantic),types,prompt(words in, script back),proxy(an OpenAI-compatible LLM reverse proxy),
serve(MCP over stdio),stdio-proxy(daemonAPI over an ssh tunnel),
settings,servers,registry,dashboard. Public Go API atpkg/client; ~60 internal packages (daemon,settings,catalog,policy,elicit,mcpauth,mcpclient,mcpserver,model,tasks, …).as a tailnet node). Upgrades use a takeover handoff — the successor starts as the old
daemon's child and receives stdio children's pipes over a unix socket; streamable HTTP
upstream sessions survive, SSE sessions do not. Cold restarts resume streamable HTTP
sessions from
upstream-sessions.json(design(mcpx): resume upstream HTTP sessions after a cold restart — persist the resumable session state #1414 phases 1–2 landed; phase 3 open). Theself-described stopgap replacement is a supervisor that owns each stdio child's pipes
for its whole life — design #1384,
Phase 3 #9963. When no daemon runs,
the CLI starts one inline and polls readiness on the
daemon.inlineStartPollinterval.reachable via config file, environment, and
mcpx settings, with resolved-valueprovenance. The registry carries an effect-probe contract: every setting has a named
e2e probe proving it changes behaviour, or a written exemption; the exemption count is
ratcheted (
EffectExemptionPin) and can only shrink, only in the PR that adds thereplacing probe. The exemption tail is exactly 8 settings (verified 2026-11-23):
daemon.inlineStartPoll,daemon.tsnet.hostname,daemon.tsnetUpTimeout,http.streamBufferInit,embeddings.wasmPath(unheld — they wait on harness shapes:a controllable tailnet, a timing-observable inline-start harness, an allocation oracle,
an in-tree embed-exporting wasm fixture) and
plugin.instructions,plugin.disabledTools,protoTasks.cancelGrace(flag-held — Drew's item-specific approvals; the last ismcpx coverage burn-down: settings (proto family) with no effect probe #8473's final exemption). Coverage burn-downs: mcpx coverage burn-down: CLI commands (running group) with no integration-test exercise #8465, mcpx coverage burn-down: settings (http-transport family) with no effect probe #8469 (blocked), mcpx coverage burn-down: settings (model-ai family) with no effect probe #8471 (parked),
mcpx coverage burn-down: settings (plugin family) with no effect probe #8472, mcpx coverage burn-down: settings (proto family) with no effect probe #8473.
pkgs/mcpx/docs/(mdBook,.#mcpx-docs,siteUrl argument) — 84 SUMMARY chapters, 120 markdown files, ~288k words including the
package-local archives (
decisions/,changes/,compare/,spec/). It deploys via.github/workflows/mcpx-docs.ymlas the whole repo Pages site athttps://developing-today.github.io/code/ — the fleet book already joins under
/fleet/,atlas and id books join the same deploy. mcpx design records live in the book tree,
not the repo-root
doc/archive (0 mcpx entries there). No mechanicalbook-vs-binary coverage proof has ever been run — the audit is yours to build.
pkgs/mcpx/modules/are consumed through theopenchamber flake (
inputs.openchamber.nixosModules.mcpxetc.);services.openchamber.enablecascades to opencode + mcpx (2026-11-04 consolidation). The laptop runs
services.mcpxwith settings inhome/common/mcpx-settings.nix; the live~/.config/mcpx/config.json(beside itsconfig.json.pre-cascade-20261103fossil)aggregates many servers: chrome-devtools, cloudrun, codebase-memory, codedb,
codex-connectors, deepwiki, desktop-commander, antigravity, and more.
server
"atlas"→https://atlas-search.developing-today.workers.dev/mcp(atlas memory slice 3: MCP query surface over the unified Atlas index (mcpx namespace) (#8567) #8625; thewiring landed under Drew's 2026-11-22 order; the remainder is cross-client acceptance).
ID's MCP bridge +
mcp_policy::PolicySessionlanded on the ID side (id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916, id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917closed) — MCP behind a capability layer. fleet ↔ mcpx is design-stage: design-mill
passes Design mill: one fleet surface for OpenCode, OpenChamber, ID, and mcpx #10389 / Design mill pass 1: fleet subcommands for the four tools — pass-through, endpoint + credential resolution #10390 / Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393 / Design mill supplement: middle-road fleet MCP, ID graph publication, transitive capability purity #10405 are open and unlanded. The opencode plugin is
the deep harness integration (v2 rewrite mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858, SET-REMAINDER mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 blocked; harness-free
plugin core mcpx: a harness-free plugin core, with adapters for codex, claude code, pi, manus #1861). Server parity (GitHub/Atlassian/Datadog logins, mcpx parity: GitHub / Atlassian / Datadog MCP server logins (Drew-gated OAuth/PAT) #8809) is Drew-gated.
app/mcpx(374 all-state), 45 openepic/mcpx-platform(110 all-state), 92 open issues mentioning mcpx anywhere.18 open mcpx-mentioning issues carry
status/blocked. Blocker heads: the exemptiontail (§above), mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 → mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841, mcpx: e2e and settings suites cannot run in the nix build sandbox (checkPhase exclusions) #2686 + ci(mcpx): three scripts suites (spec parity, test seed, shard packer test) have no registry-named venue (ratchet follow-up to #6188) #10330 (test venues), mcpx release: GHCR container channel never published — push denied on v0.1.0 run, publish path now dispatch-only #9900 → mcpx: release.yaml, release artifacts and the install channels the docs will promise #1881 (release
channels), mcpx github failover: daemon call-path wiring + live activation (follow-on to #7948) #8017 (github failover), mcpx nightly stress failure #3016 (nightly stress), build: nix build .#deploy wedges in mcpx check phase (go test idle, no test binary); registry build realizes every target package #12738 (deploy wedge in
the mcpx check phase), fix(ci): stage fleet docs into writable Pages directory #13225 (Pages staging).
tool search (
internal/catalog/embeddings.go) — a wazero Wasm embedder(
embeddings.wasmPath) and remote OpenAI-compatible endpoints. This is tool-discoverysearch, a different index from Atlas's corpus search; the boundary is un-drawn.
2. Drew's directions (the next-steps agenda — design all of it, build what's unblocked)
A. Server onboarding and lifecycle
Make adding a server a designed, boring path end to end: declaration shapes (stdio
command, remote URL, adapter-wrapped CLI #11147/
adapters.allowBare+ cwd, OpenAPI-derivedapiservers, plugins, registry finds), credential resolution (in-memorymcpx secrets,env, per-server env), health/probe semantics, restart and reload without disturbing
unchanged servers, and removal with session cleanup. Finish the supervisor design
(#1384 → #9963): one lifecycle design that unifies takeover, cold-restart resume
(#1414 phase 3), and supervised stdio — a daemon upgrade should become a plain restart
of a front end whose children never notice. Cover multi-daemon machines (
mcpx daemons)and the systemd/socket-activation posture.
B. Per-client policy and capability ceilings
mcpx is where every client's reach is actually decided, but today policy is scattered
(rate limits and elicitation in
proto.*, write policy, autonomy levels). Design oneper-client policy model: client identity (harness, seat, session), a capability
ceiling per client (which namespaces, which tools, read/write posture, rate and budget),
and enforcement inside the daemon so every transport inherits it. Tie the ladder to the
fleet's existing disciplines instead of inventing a third one: Atlas's sensitivity
ceilings (shareable < personal < local-only < secret-bearing, enforced server-side per
client identity) and ID's capability discipline (attenuable, revocable, audited —
the
PolicySessionshape). Open questions to design, not assume: how a ceiling isdeclared (settings, config, per-server manifest), how elicitation binds user identity
(#7843, #1957), annotation trust, and what the audit record of a refused call looks like.
#12900 thread 2 (is Atlas headed for multi-client use?) is Drew's decision — design the
ceiling model so it survives either answer; don't pre-build multi-tenancy.
C. Remote and hosted servers as versioned deployments
The Atlas server is the template: a hosted MCP server shipped as a versioned Cloudflare
deployment and wired into mcpx by URL. Generalize it: how a remote server is declared,
versioned, health-checked, and rolled back from the mcpx side; OAuth authorization for
remote servers and for mcpx's own /mcp (#1950, 61 conformance rows); session resume
across deploys; what
mcpx registryshould promise about a hosted server's provenance.Close the release-channel gap on mcpx itself (#9900 → #1881): the install channels the
docs promise must be channels that exist.
D. Config-system completion — burn the exemption tail to zero
The ratchet only moves one way; finish it. For each of the 8 exempt settings, design
the probe (or, where a setting is a pure allocation hint like
http.streamBufferInit,the contract decision that reclassifies it honestly — an exemption with a permanent
reason is a design smell, not a resting place): a harness-controlled tailnet for the
two
daemon.tsnet.*settings anddaemon.tsnetUpTimeout's bring-up budget; atiming-observable inline-start harness for
daemon.inlineStartPoll; a smallembed-exporting wasm fixture model in-tree for
embeddings.wasmPath(which alsounblocks real testing of the Wasm embedder). The three flag-held settings
(
plugin.instructions,plugin.disabledTools,protoTasks.cancelGrace) get theirprobe designs prepared and recorded — implementation waits for Drew's word, exactly
like the 11 sibling plugin.* probes that landed 2026-11-23 under #8472. In parallel:
the remaining burn-downs (#8465 CLI running group, #8469, #8471) and the test-venue
blockers (#2686, #10330) that decide how much of this CI can see.
E. Daemon lifecycle, transports, and reach
Beyond §A's supervisor: tsnet as a first-class reach (a daemon on the tailnet,
reachable from any seat — the
stdio-proxy/ssh pattern generalized), inline-startsemantics, stream buffering as a designed contract (#4375: one bounded response-read
contract for all outbound calls — the
http.streamBufferInit/Maxpair is oneinstance), dashboard and observability of the daemon itself, and the upgrade path's
failure shapes. Every bound in the daemon should be a setting with a probe (§D) —
no magic numbers with a comment.
F. Observability and the event record
mcpx already keeps events, logs, stats, and feedback (
mcpx feedback, the eventstore, logstore). Design the coherent observability story: one event record for
every tool call (client, ceiling decision, latency, bytes, refusal reason), stats
that answer "which servers/tools does the fleet actually use", feedback wired to
something that consumes it, and the dashboard as the live view of the same record —
not three partial systems. This is also the audit substrate §B's policy model needs.
G. Library and embedding use
mcpx's parts should be usable without the daemon: the public Go API (
pkg/clienttoday), the C ABI / WASM / mcpx-as-its-own-upstream programme (#1877), the
harness-free plugin core with per-harness adapters (#1861), and embedding the
catalog/settings/policy packages as libraries in fleet and ID. Define the versioned
library surface (what is public, what is internal, what stability is promised),
with embedding examples taken from real call sites.
H. The integration surface: mcpx ↔ fleet ↔ Atlas ↔ ID
subcommands + endpoint/credential resolution, Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393 MCP everywhere — namespaces,
fan-out, remote graph, Design mill supplement: middle-road fleet MCP, ID graph publication, transitive capability purity #10405 transitive capability purity).
fleetverbs shouldreach MCP through mcpx, with mcpx's ceilings (§B) as the enforcement point.
OpenChamber / Muse lanes, identity-stamped, ceiling-enforced, audit-logged) and
draw the two-search boundary: mcpx's semantic tool discovery vs Atlas corpus
search, one mental model for an agent choosing between them.
mcpx upstream (worlds/apps as namespaces), mcpx as the gateway through which ID
clients reach external MCP servers under ID's capability discipline, and code-mode
interop (mcpx and opencode code mode: nested code mode, ?codemode=false, and what a harness expects of mcpx_exec #1940: nested code mode,
?codemode=false, themcpx_execcontract).per-harness skills (
mcpx-{agy,codex,claude,opencode2}) kept in lockstep withthe plugin core (mcpx: a harness-free plugin core, with adapters for codex, claude code, pi, manus #1861).
I. The model layer and the AI surface
Settle where the model comes from (#1891, #1925 — blocked): the provider layer mcpx
owns, model profiles, the
promptcommand's contract, the OpenAI-compatibleproxy, and life after MCP Sampling's deprecation. Include administration by intent(#1931: finish the operation surface, then route a sentence to a declared operation),
the request repair ladder (#1927), and lifecycle hooks on exec (#1929) — these are
one AI-surface design, currently four issues.
J. Book extension, issue map, and the living record
mechanical coverage audit — every CLI command and flag, every one of the 252
settings (with default + provenance + probe/exemption status), every transport,
every public library entry point, mapped to a chapter or a named gap; then write
the missing chapters (the §A–§I designs join as book chapters in
pkgs/mcpx/docs/,per mcpx's own convention), fix reverse gaps (chapters describing surfaces the
code no longer has — the ASSESSMENT corrections-header pattern), and keep the
zero-warning build + docs-twins gates green. The book's deployment chapter must
absorb the new reality: its deploy now carries the fleet, atlas, and id books
under subpaths (fix(ci): stage fleet docs into writable Pages directory #13225's staging fix is part of this workstream's surface).
Extend the docs-sync contract the way fleet's DOC-01 works: a surface change
(command, flag, setting, transport) updates its chapter in the same change.
app/mcpxandepic/mcpx-platformissue (and the mcpx-adjacent atlas memory slice 3: MCP query surface over the unified Atlas index (mcpx namespace) (#8567) #8625/epic: mcpx — one canonical MCP gateway and server parity #8993/mcpx: the backlog build-out — every theme, in one order, with the disagreements between them (super tracker) #1900 families),prioritized in best working order, with all blockers marked both on the issues
themselves and in the priority list (book chapter + tracking issue kept
current). Blockers are worked, not just listed.
designs in the book tree; programme records in the repo
doc/archive) and,wherever unblocked, merged implementation PRs.
3. How to work (fleet rules — binding)
issue in the owning repo the same pass for any problem found.
landed by PR). Never
git stashin shared clones. Never force-push main.comment from another agent is a hard stop). Re-read an issue's newest comments
immediately before merging.
fleet queue dispatch), laptop fallback; a containerenvironment failure is not a test result — record which route verified. Tests name
their oracle. Note the standing trap: the fleet-build container cannot run some
mcpx suites (the fleet: fleet-command dispatch container cannot run nix develop out of the box (experimental features, nixbld group, homeless-shelter purity) #13159 family) and
nix build .#deploywedges in the mcpx checkphase (build: nix build .#deploy wedges in mcpx check phase (go test idle, no test binary); registry build realizes every target package #12738) — route around them and record the route.
unverified; counts computed from a named source, never estimated in prose.
Drew's item-specific word — for mcpx that is mcpx coverage burn-down: settings (plugin family) with no effect probe #8472's
plugin.disabledTools+plugin.instructionsremainders and mcpx coverage burn-down: settings (proto family) with no effect probe #8473'sprotoTasks.cancelGrace. Investigateand design around them; prepare their probes; never land them. Decisions that are
Drew's (mcpx parity: GitHub / Atlassian / Datadog MCP server logins (Drew-gated OAuth/PAT) #8809 server logins, One-command local agent CLI via this VM's mcpx — needs Drew's OS / call-method / auth answers #8810's OS/call-method/auth answers, mcpx docs: a custom subdomain for the site (DNS, CNAME, HTTPS) #1943's CNAME
"apply it", Atlas search improvements: parallel branches, service/result-store shape, nix-packaged binary CLI #12900 thread 2) get surfaced with substance — options, ramifications,
recommendation — never silently decided and never re-asked once recorded.
keep it that way in every design. Never touch the
vertexincorg. Externalcommunications need per-item pre-approval. Quota doctrine: plan quotas only,
never funds; a 402 is a wall.
4. The iteration rule
This prompt is the starting point. When every workstream has reported, do not
conclude: re-survey (issues, settings registry, book coverage, consumers, the live
daemon's server set), reconcile what the passes learned, expand the design set and
the issue map, and run the next pass. The program ends only when a full pass finds
nothing more that can be designed, documented, or implemented with the authority
available — and even then, the book, the issue map, the exemption ratchet at zero,
and the docs-sync contract remain as the living record the next pass starts from.
Merge pull request #13269 from developing-today/design/mcpx-program-i…
dezren39 commentedon Nov 23, 2026
Pages deploy structure: recommendation from the mcpx book audit
Asked as part of the bookwright pass over the mcpx book (PR #13413): should each book have its own GitHub Pages deploy, or should mcpx stay merged in the single deploy — and should mcpx stay at the site root? This comment records the analysis and the recommendation. Nothing was restructured: the deploy shape is the owner's call; the book PR only documented the current arrangement (new chapter: Deploying this book).
Recommendation
Keep the single deploy. Keep mcpx at the root. Fleet, Atlas and ID stay under
/fleet/,/atlas/,/id/.Why per-book deploys are not really on the table
mcpx-docs.yml) builds all four books with a per-booksiteUrl, stages them into one tree, and publishes through a separate job (the split that fixed the metadata-propagation failure in mcpx docs workflow: Deploy to GitHub Pages fails - artifact not found #10956); deploys are serialised and never cancelled (mcpx docs: build the site in CI and deploy to GitHub Pages #1941).Why mcpx stays at the root
siteUrl, it is the address the pending custom-domain decision (mcpx docs: a custom subdomain for the site (DNS, CNAME, HTTPS) #1943) is about, and it is what existing links point at./mcpx/for symmetry with the other three would break every existing link to the root, or require a maintained tree of meta-refresh stubs — a permanent tax for an aesthetic gain.siteUrlchange plus the stub question. That decision belongs with mcpx docs: a custom subdomain for the site (DNS, CNAME, HTTPS) #1943's CNAME call, since both change the site's public addresses at once.What the audit changed around this
siteUrls, the publish-job split, and the verify-every-book step after a landing.