Repository navigation
Description
Design mill supplement: the middle-road fleet MCP, ID graph publication, and transitive capability purity
Parent design mill: #10389
Closest pass: pass 4, MCP everywhere — #10393
Dictated by Drew 2026-11-14, after the seven passes were filed. This is documentation of intent; several pieces are explicitly "exists at some point," not V1.
1. The middle road: a basic fleet MCP without code mode
The convergence rule from pass 4 stands (fleet's MCP runs through mcpx where mcpx exists), but there must be an in-between option: a basic MCP server that is fleet itself, for setups without the full code-mode machinery.
- At MCP start, it connects to the ID server and to the mcpx-configured servers, registers there, publishes its commands, and adds them to its own MCP surface. It IS the fleet server; ID and mcpx are optional things added during startup specifically.
- It does NOT replicate mcpx: no dynamic adding/removing of providers at runtime, no exec runtime.
- Drew: "I don't know that I would use it, but it might exist." Low priority, but it should exist at some point.
2. Dynamic tool-list updates
Whether stock MCP servers/clients support dynamic updating of the available tool list is an open question the design must answer. Pieces to design:
- A refresh mechanism: a refresh-tools command, or a need-to-refresh signal the server can raise, so new commands appearing in mcpx or the ID MCP become visible without a restart.
- Automatic dynamic self-update when either command surface changes, or a poke that triggers a re-pull.
- For our own server we can just re-pull; remote ones do not need restarting.
- Client side: if clients cannot pick up changes by querying again, options are a "reconnect MCP servers" affordance in OpenCode, or the MCP server having a command that turns itself off and back on. Acceptable fallback: only newly connecting clients see the wider published surface.
- Hard fallback, always true: if you need more, go use the code-mode tool, where listing is its own command that returns a list — dynamic by construction.
3. ID's MCP server: dynamic attach by ID or URI
When ID turns on its MCP server, it accepts a list of IDs or URIs — hashes or namespace paths. For each one that really does publish an MCP, expose it.
- The rest of the ID system already has full add/remove commands for dynamic access to different internal iroh servers, so attach/detach should be doable with the same machinery.
- Entries can be removed after startup, or marked not-removable if they came in from config. That is itself configurable.
- ID can expose the fleet MCP over iroh and the ID graph, the same way it can for mcpx. Once the machinery exists to accept the main basic auth formats for any given URL and build out the mcpx flag, adding one that automatically handles fleet should not be bad.
4. Fleet boot orchestration
- During boot, fleet can trigger the ID server to expose its MCP over the graph.
- Fleet can also expose mcpx over the graph, possibly accepting and passing through remote or completely unrelated MCPs where there is an accepted auth format.
- Fleet can inject arbitrary MCPs into mcpx, in addition to injecting itself and ID; it can also swap out its own server on the conventional port for mcpx.
5. ID serving worlds, and where MCPs get published
- The ID server can dynamically serve any number of roc apps, platforms, or arbitrary executables that don't use roc at all. Non-roc executables are typically controlled only by the server admin and marked accordingly — unless config says which ID or group owns the established worlds.
- By default ID uses the server's default admin credentials and puts the servers entirely within their private namespace. ID may have config to expose additional MCPs arbitrarily and to provide the appropriate world names, aliases, or exact IDs.
- Publication location alternatives: a different location the admin has access to; a key on disk the server can point at; or a drop-box namespace — a namespace that accepts puts from specific users or groups but does not allow reads or access.
- Delegated admin: grant delegated admin read or write to MCP endpoints within the graph — e.g. random server IDs boot up and expose everything over their private namespace, with the public key of the appropriate admin or moderator group (that clients and other servers are members of) attached as delegate, either for everything in the admin's namespace or for specifically one or more MCP servers.
- Command filtering: possibly at the graph level, possibly only inside the world. Drew's lean for this design: filtering may live at the world level; graph-level partial visibility is an open question. See §8 for the shadow-world trap.
6. Naming conventions
MCP servers may not have a namespace concept natively (that is an mcpx / worlds concept), but inside worlds we have namespaces. Defaults to design around:
- Default MCP locations in the server admin's namespace:
mcp.id,mcp.fleet,mcp.mcpx(shape to be settled). - Conventional names:
fleetandmcpx. - All of it configurable — somebody may want
.mcpsas their title, or a different namespace entirely. The standard location can be changed.
7. Discovery and inspection tooling
Fleet needs tooling to query the ID server: are the mcpx / fleet MCPs already configured and deployed? Check the standard locations (configurable names), and check whether a URL is being served from the ID server.
Structured output — human-friendly, JSON, or TSV — queryable from the shell, and equally from REST, MCP, or inside the graph as a specialized platform capability:
- All server-wide exposed ports and what is running on each (system endpoints).
- All custom, runtime, user, or graph-driven ports, and which ID / namespace within the graph is served from each — these may dynamically change over time.
- All currently active worlds serving over iroh, plus all localhost apps, with a special view for MCP-capable ones, and the ability to list all available commands from all MCP-hosted locations. Native understanding of the dynamic nature of roc-controlled code is the ideal; covering the basic, fairly static use cases is the bar.
- An inspector for the MCP server exposed by ID: list all attached MCPs, noting for each — runtime or startup; started by flag, by an admin at runtime, or by the fleet boot; which iroh IDs have connected to each; and access to the logs of the commands that were run.
Access rule: all of this is accessible inside the graph to whoever holds the appropriate permission set for the server admin's local storage (or wherever they publish their data, if not the default).
Fleet's access path: shell commands or dynamic-library calls first ("let's just stick with using the shell for now"), remembering it must also work over REST, supported MCP calls, or from within the graph. Fleet can hit the REST endpoint; if it can't find it, it can call the ID binary directly, or ask the ID binary for its location / primary port.
8. Fleet's install flow into the graph
Fleet asks ID, in structured format, for all MCP capability endpoints exposed from the server as MCP protocol, filterable by tag — e.g. fleet, mcpx, fleet,mcpx, tag mcpx, address-in filters. It lists its own URL and port and the mcpx URL and port. It may also need to expose takeover-style endpoints for completeness, plus a way to access just the fleet MCP (e.g. a fleet-direct tag pointing at the alternate port).
Install rule: if all the standard alias names are available, the addresses aren't already published somehow, and no published MCPs internally carry any of the three tags, fleet calls the ID binary or posts to its REST endpoint to install all of them into the graph and system — via a generated file, a configured file path, or passed in directly.
Conflict policy is configurable:
- crash out and crash the fleet start;
- ignore / fill in only what's missing;
- stamp over with force, rewriting until everything looks as expected;
- suffix the alias (
_1,_2, …); - rename the old alias to
.archived.<date>without taking it down; - push everything and remove nothing.
Two entries pointing at the same namespace (same namespace + path URL) is a genuine problem: defer the decision to the server / server-admin config (drop the old one, block, etc.).
Beyond itself and mcpx, fleet can be configured with additional MCPs to add to ID worlds, to mcpx, or to its own standalone MCP — where, since a standalone MCP has no namespaces, they appear as alias.command or alias_command. Fleet can add its populated standalone MCP namespace into mcpx, and add alias.command versions of mcpx and fleet directly into the core ID MCP server, which automatically exposes them to that world's visitors and provides them externally.
9. World MCPs, standalone exposure, aggregates, and shadow worlds
- Worlds with the appropriate permissions can trigger the server to expose their world MCPs as standalone MCPs on dedicated (random) ports — the same way worlds can make websites or unique endpoints without needing paths — and can register them as server MCPs with tags marking their purpose.
- A world can set up
alias.commands/alias_commandon the server's own ID MCP, exposing that world's MCPs as a namespace externally through the core ID MCP, and within the ID graph's server MCP world. - Future: a special platform or roc app that joins many different worlds' MCPs together, possibly with shadow versions.
- Aggregates: build one MCP world from a set of safe read-only commands drawn from many worlds (Drew's example: 16 worlds exposing 1–5 MCPs each), and grant that aggregate to a larger group. Acknowledged risk: the code has to be right, or read-only users might be able to write.
- Shadow worlds — the trap, documented now: a shadow world points at the same MCP server with fewer tools visible. Filtering at the aggregate/view layer is visibility only: if half the mcpx tools are filtered out of the view, mcpx doesn't care — they still exist, and code mode (or
exec) can still call them. That is a privilege-escalation path if anyone treats a shadow as enforcement. Real filtering must happen in the MCP servers themselves (e.g. a separate URL that passes filter parameters into the server). Shadow worlds are a convenience view, never a security boundary, unless paired with server-side filtering.
10. Transitive capability purity — the union is the truth
Anything that exposes MCP commands extends capability scope transitively, and this must be computed and surfaced, not just documented:
- MCP exposure by itself doesn't make a world impure, but any external MCP absolutely does. All the MCPs discussed today are external MCPs.
- If a world relies on a series of worlds, external or otherwise permitted, it may be able to exercise those permissions. The transitive capabilities — the union of all possible capabilities reachable through the network of worlds — are the true capabilities, not the direct ones, and they need to be visible and exposed as such.
- If a world can access any other world (not just a specific list), it has unscoped capability: any capability, all capability. It is not pure in any way.
- Pinned-state caveat: probing logs or calling a URL is comparatively safe, but if a call stores data at a specific location, that location's ID becomes the replacement for future calls until the state is reset. That one call is the only impure part, but it is stale from that point forward unless refreshed — and under dynamic conditions the honest answer is that the whole thing is impure.
Acceptance
Each section names the surface it extends in passes 1–4; the pass owners pick up the relevant sections. The non-negotiables to carry into every later pass: (a) the middle-road basic fleet MCP exists as a designed option, not an afterthought; (b) shadow/filtered views are never documented as enforcement; (c) every MCP exposure design states its transitive capability union.
Activity
developing-today commentedon Nov 15, 2026
CODE-3762
dezren39 commentedon Nov 17, 2026
Agent note — triage (task 19257, lane any-c, 2026-11-17)
State: triaged — routed to the design mill under parent #10389; no lane follow-on.
Issue stays OPEN for the design mill.
dezren39 commentedon Nov 18, 2026
Agent note — triage re-verified (openchamber scheduled lane oc-code-03, queue task 20591, 2026-11-18)
state: triaged
route: documentation of intent, supplement to design mill #10389 and pass 4 (#10393). Not V1 and not build work. No worker packet from this lane; the mill takes it up later.
Fresh state 2026-11-18: #10405 OPEN, labels
kind/design,effort/l,priority/normal,status/triaged, no blocked-by dependencies. The 2026-11-17 verdict still holds.