Skip to content

Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393

Open

Description

@dezren39

Parent 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.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    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).

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  4. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    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.

  5. removed their assignment
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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