GeezerVison is showing github.com — Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph · Issue #10393 · developing-today/code
Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393DescriptionParent design mill: #10389
Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph
Part of the fleet-surface design mill (Drew, 2026-11-14). Parent issue cross-links all passes.
The convergence rule
The "connect to all the same things" machinery has already been built three times (MCP, fleet, ID). Do not build a fourth copy. Fleet's MCP should run THROUGH mcpx: fleet starts/connects mcpx, registers fleet's own interface on mcpx's side (an alternate port/socket, a remote URL, or disabled if unwanted; namespaced fleet, or fleet.<hostname>, fleet.<hostname>.1, … on collision), and fleet's conventional MCP endpoint forwards to it. Through mcpx, fleet's MCP gains exec/TypeScript code mode over merged namespaces: local MCP servers, remote GitHub/Cloudflare MCP, iroh-exposed MCP servers via ID's MCP (including passing code-mode scripts into those interfaces, which may themselves reach further mcpx servers).
Fleet remotes (core functionality, not just MCP)
Fleet needs dynamic connect/disconnect to other fleet instances and remote machines inside its core commands:
- Named remotes with friendly aliases; auth and secrets are managed by the connection as its own unit.
- Every subcommand available locally is available across remotes; admin commands to connect, disconnect, list connections, and inspect each connection's metadata, details, and stats.
- Fan-out helpers:
map (run on each, stream results back as they arrive), collect-all (return when all done), write results to a file; any/some (first success wins); first (like map but any failure cancels). jq-style projection built in (e.g. "just give me the name/path/key from all results into a list"), results piped into shell commands as they stream, tee'd to a file.
- Tree walking + promotion: children are only started after the parent succeeds; walking descends secondary connections. A secondary connection can be promoted to the root level where permitted (connected A→B, B→C and B→D: C may refuse promotion while D allows it; the root then exposes B, D, B.C, B.D). Metadata travels with results: depth from the original caller, path taken.
- Example shape Drew gave:
fleet kv get <key> across all remotes, returning only the failures.
ID's MCP server
- ID needs an MCP server: the standard ID commands as tools (list/search/get/put blobs, namespaces), plus tooling for common world-app shapes (chat as the worked example).
- App inspection: get an app by ID, hash, or common namespace — name, details, server-side stats, links to comments/reviews, versions, releases, previous versions (a graph on the backend). List a world's standard commands; list its MCP commands if it provides them; hints for common shapes/schemas/tools.
- Dynamic attach: load all of a world's tools into the ID MCP session, or attach the world — the tool set updates live when the world adds/removes tools or changes arguments.
- World apps may offer code mode (a roc script, or another format, inside the app's own server code, with access to a series of app commands and conditionals). ID also has its own code mode: an MCP command running a script against the ID server's platform, as client or as admin — distinct from an app's code mode, which runs in the environment/capabilities the world exposes (also listed in its metadata).
- Expose ID's own MCP server inside the ID graph behind a flag (admin or specific user), the same way a world's MCP server can be enabled/disabled; some deployments may have no exposed MCP server except inside the iroh environment.
- Forward-looking: expose an mcpx server THROUGH ID as a world (or part of a world) — e.g. a "my laptop" world whose published functions include an MCP subset alongside other functions, so a caller can run a vector-store query on the laptop that travels MCP → mcpx → the ID server hosting the world, possibly via a relay's MCP server.
mcpx chaining/clustering
- mcpx already has a directive to be fully self-described in its own MCP server, with access to every MCP server it can reach — confirm coverage, then add: chain/cluster connections, namespacing merged servers (five upstreams with identical command sets and random-UUID or absent names get caller-assigned namespaces:
server.a.<cmd>, server.b.<cmd>, server.c.exec(...)), admin tools to connect/disconnect/list/inspect dynamically, and code-mode scripts that iterate and aggregate across all of them (fan out in iroh to many mcpx servers, which fan out to their local servers, reducing at each step).
- The
mcpx namespace in our OpenCode fork's built-in tool surface: by default no direct MCP commands — just list, get, inspect, exec or similar — with admin/power-user scripts (add/remove/rename servers, aliases/namespaces, copy namespaces, per-user/global/per-session/per-execution settings changed dynamically, runtime changes written to disk persistently with backups of previous versions, shell_exec / run_exec, and shell_session — an attachable transport/socket/iroh/SSE stream that works like a shell tunnel) kept out of every agent's default view.
- Fleet's MCP variations: use the fleet tools themselves to list, extract, promote-to-root, or add servers (OpenChamber's, mcpx's, ID's) into unique namespaces as desired. Routing this through mcpx is the expected easiest path.
Cycle safety (TODO, not V1)
Pass-through headers on chained calls, an incrementing depth count stored with the originating client, per-server max depth on received requests, basic cycle detection using initial request IDs.
Acceptance
A design section naming: the fleet↔mcpx wiring (ports/sockets/namespace registration), the remote-graph model (aliases, promotion, depth metadata), the fan-out verb semantics (map / collect / any / first, failure handling, jq projection), ID's MCP tool surface + dynamic world attach, and the mcpx namespace/merge rules. Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 15, 2026 Supplement that extends this pass: #10405 — especially sections 1 (middle-road basic fleet MCP), 2 (dynamic tool-list refresh), 8 (install flow + conflict policies), 9 (aggregates + shadow worlds), and 10 (transitive capability purity). dezren39 commented on Nov 17, 2026
Triage verdict (repo-queue task 19252, openchamber scheduled lane, 2026-11-17 UTC)
Fresh state: issue OPEN, no labels. Pass 4 of the design mill under parent #10389, still open. The 2026-11-15 comment points to #10405 as a supplement that extends this pass, which covers the same MCP-through-mcpx surface.
It is a design pass (fleet MCP through mcpx, namespacing, fan-out, remote graph), with no implementation in scope. Nothing merged covers it.
Verdict: keep open, triaged. Route to the design-mill owner under #10389, with #10405 as the supplement to read alongside it. No worker packet from here: the design needs the pass 1 and pass 2 endpoint and transport decisions first. dezren39 commented on Nov 18, 2026
Agent note — triage re-verified (openchamber scheduled lane oc-code-03, queue task 20581, 2026-11-18)
state: triaged
route: design pass 4 of the design mill under parent #10389, read with supplement #10405. No worker packet from this lane. Needs the pass 1 and pass 2 endpoint and transport decisions first.
Fresh state 2026-11-18: #10393 OPEN, no labels, no blocked-by dependencies. The 2026-11-17 verdict still holds. dezren39 commented on Nov 24, 2026
🤖 Agent note · second-pass verify-and-route (pass 2, task 22032)
- Agent: queue worker (repo-worker-code), lane code-f
- Task: coverage-reconciliation second pass — verify fresh, size remaining work, route follow-on packet(s) or close with evidence
Fresh verification (2026-11-24, this run)
- Issue Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393 OPEN:
epic/design-register, primary-parent/design-register, stray-work. No hard-stop labels. Parent Design mill: one fleet surface for OpenCode, OpenChamber, ID, and mcpx #10389 OPEN (protected design — do not close without Drew); supplement Design mill supplement: middle-road fleet MCP, ID graph publication, transitive capability purity #10405 OPEN, triaged.
- Pass 1 (Design mill pass 1: fleet subcommands for the four tools — pass-through, endpoint + credential resolution #10390) OPEN — endpoint-resolution slice PR feat(fleet-config): pass-1 tool endpoint resolution order + sections (#10389, #10390) #14083 is OPEN (unmerged).
- Pass 2 (Design mill pass 2: iroh-native ID transport in fleet — identity, postcards, format conversion #10391) OPEN, no labels — iroh-transport design is in flight on a branch.authors note:
docs(10391): nine-point design for iroh-native ID transport in fleet visible in the lane checkout; not landed on origin/main.
- Pass 4 has no implementation scope of its own; its design inputs are the pass-1 endpoint decisions and pass-2 transport decisions. Neither has landed.
Verdict
Prior triage stands (tasks 19252, 20581): no worker packet from here — routing a pass-4 packet now would jump the mill sequence while both prerequisite decisions are still in flight. Issue stays OPEN under the protected parent #10389; read with supplement #10405 when the pass-1/PR-#14083 and pass-2 decisions land. Nothing to close: the design work is pending, not resolved. dezren39 commented on Nov 24, 2026 Correction to the note above: "in flight on a branch.authors note" should read "in flight on a branch — authors note:". No change to the verdict. dezren39 commented on Nov 24, 2026
Second-pass verdict (openchamber lane oc-code-03, queue task 22776, 2026-11-24)
state: triaged, still open, no labels added.
Fresh state 2026-11-24: #10393 OPEN. The verdict from 2026-11-17 and 2026-11-18 still holds.
This is design pass 4 under #10389, read with supplement #10405. It has no implementation scope, so no worker packet is routed from here. It needs the pass 1 and pass 2 endpoint and transport decisions first. Nothing in the queue covers those decisions, so the next action sits with the design-mill owner under #10389. dezren39 commented on Nov 26, 2026 Claimed by lane 4, 2026-11-26T08:06Z
Generated by Claude Code dezren39 commented on Nov 26, 2026 Design record merged in #15455: doc/2026-11-26T07-59-16Z_design_fleet_mcp_through_mcpx_remotes_10393/. It is read with the #10405 supplement record merged in #15451. Lane 4's claim comment said 08:06Z; the real start was 07:57Z.
The acceptance's five sections:
- fleet and mcpx wiring (D1, D2).
- fleet finds mcpx through pass 1's resolution order.
- It registers its standalone server into mcpx through mcpx's live
servers add. That upstream has no attachments, so it cannot loop.
- Its conventional MCP endpoint is a shim that forwards to mcpx's
/mcp.
- mcpx namespaces must be TypeScript identifiers, so the names are
fleet, fleet_<hostname>, then fleet_<hostname>_1.
- Remote graph (D3, D5).
- Named remotes hold an endpoint, an auth reference (a secret route, never a value), an expected identity that fails closed, and a
promotable flag.
- Any subcommand runs on remotes with
fleet --on <selector>.
--walk is breadth first. A child starts only after its parent succeeds, the default max depth is 3, and a visited set is keyed by identity.
- Promotion follows the owner's flag. Results carry
path and depth.
- Fan-out (D4).
- The four modes are
map, collect, any (also spelled some) and first, with per-target outcomes and exit rules.
--select projection, --only ok|failed, NDJSON streaming and --tee are built in.
- The jq evaluator is in
full only.
- ID's MCP server (D7, D8). It has store, app, world and attach tool groups, exposed behind a per-deployment flag. ID code mode and app code mode stay separate.
- mcpx namespace and merge rules (D9).
- One upstream gets one namespace, never merged.
- Caller-assigned names come first, such as
server_a.
- Chains use mcpx's existing
ssh:// and tsnet:// routes.
- A coverage test compares mcpx's MCP surface with its
/v1 table.
D10 hands the OpenCode fork's built-in mcpx tools to pass 6 (#10395). D11 records the shape of cycle safety, marked not V1. Build slices S1 to S6 are in section 9.
This issue stays open for the build.
Generated by Claude Code developing-today commented on Nov 27, 2026
🤖 Agent note · triage and route (queue task 25169, lane code-h, 2026-11-27)
Fresh state: #10393 is OPEN under protected parent #10389. Pass-4 design record merged in PR #15455; supplement #10405 design merged in #15451. The pass-2 transport issue #10391 is CLOSED; pass-1 #10390 remains OPEN with a live design artifact task (25249), so dependent pass-4 fleet build slices S1–S5 are not being jumped ahead.
The merged pass-4 design section 9 explicitly marks S6 as having no gate and able to start at once. S6 is the mcpx MCP surface coverage test plus identical-upstreams namespace-isolation test. Checked queued/claimed/parked/blocked tasks: no task covers #10393 S6.
Verdict: routed independent no-gate slice 6 as Fleet task 25577 (mcpx-owned paths; tests mcpx_mcp_surface_covers_v1_table and identical_upstreams_never_merge). The design parent stays open for build; gated slices wait for their design dependencies. developing-today-fleet commented on Nov 27, 2026 S6 slice delivered in PR #15863: TestMcpxMCPSurfaceCoversV1Table guards every exposed /v1 operation against the MCP tool list (including a non-vacuity guard), and TestIdenticalUpstreamsNeverMerge verifies identically configured FAKE upstreams remain visible as alpha and beta. Both focused tests passed, including -race -shuffle=on -count=5 runs from isolated worktree commit 27764aa3ec2. Fleet test dispatch was attempted first but denied with HTTP 403 (Resource not accessible by integration), so only these targeted tests ran locally. PR is open and mergeable; CI checks are currently skipped. Remaining design slices remain outside this PR.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|