GeezerVison is showing github.com — mcpx docs: level-2 page map, and the configuration, modes and transport pages · Issue #1848 · developing-today/code
mcpx docs: level-2 page map, and the configuration, modes and transport pages #1848Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)documentationImprovements or additions to documentationkind/docsDocumentation improvement or addition DescriptionRelocated from dezren39/darwin-nix#146 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: #94
Summary
Level 2 is the layer a person reads right after installing mcpx. The notes set its bar: "basically a more normal set of docs", and "new person might assume this is all there is and wont be upset". So level 2 has to be complete by itself. Every page answers its question in full. A link to the compendium can offer history or a deeper "why", but never the rest of the answer.
This issue does two things:
- The page map. It maps all 30 items the notes list to a page and an anchor, and records for each one the repo material to draw on, the issue that writes it (🎨 Palette: Add aria-labels to search and goto-line inputs #146 to ⚡ Bolt: Optimize msgpackr structuredClone #149), and which parts come from the generated reference (🎨 Palette: Improve accessibility of editor search panel #144).
- Content for the first seven items: common config, server config, client config, env vars, client modes, transport options and server modes.
While reading the code for this, I found three places where current docs or behaviour contradict each other. The pages must not copy them (see "Findings" below).
Original notes
Source-notes lines 1, 2, 7 and 49-82. Lines 49-59 are this issue's content, and lines 53-82 as a whole are the page map. The lines in between are quoted in sibling issues.
- documentation
- make a book using whatever is the most common and simple modern choice
- 3 main things, not book sections jsut like levels of detail-
- the 'ok i just installed this thing what even is it' layer
- basically a more normal set of docs
- new person might assume this is all there is and wont be upset
- a page or section in a page for
- common config
- server config
- client config
- env vars
- client modes
- transport options
- server modes
- abstract interfaces
- client interfaces
- cli
- cli arguments
- cli commands
- mcp
- mcp sdk
- mcp compatibility
- binary
- script
- /v1
- /v1 sdk
- plugins
- plugin compatibility
- plugin interface & config
- opencode v1 plugin
- opencode v2 plugin
- vibeMcp
- "so why'd you get rid of all the mcp and then make one, do you like mcp or not"
- "i mean, opencodemode is right there"
- "is it safe?", no.
- "but why would you.."
- "but can i get some examples?"
Current state (what mcpx does today, with file refs)
Paths are relative to pkgs/mcpx/ on main (d0b7e01); re-checked at 05c78b2 in the 2026-09-30 issues pass, and drifted line numbers re-cited.
| topic |
where it is documented today |
shape |
| sources, precedence, scope, hot, reaching settings |
docs/configuration.md "Where a value can come from", "Scope: who reads it", "Hot", "Reaching them" |
prose, good; reusable nearly as-is |
| every setting |
docs/configuration.md "Every setting" |
hand-regenerated table; internal/settings/docs_test.go fails on a missing path or MCPX_* name |
| the server block |
internal/config/config.go:24-157; story.md "Sharing and scope", "Profiles and aliases", "Remote servers without a shim"; docs/configuration.md "Servers" |
no single page describes the whole shape |
| config file search |
internal/config/config.go:528-590 |
only in code. The man page FILES section (internal/cli/manual.go, ManPage) lists 2 of the 9 locations |
| client ladder |
story.md "Running without a daemon", "One daemon, many clients"; docs/exec.md "Where a script runs" |
prose |
| transports |
docs/protocol.md §5; story.md "What each transport costs", "Server-sent events, not WebSockets"; docs/dependencies.md "Network" |
spread over four files |
| mcpx as MCP server |
story.md "mcpx speaks MCP"; docs/protocol.md §2, §5 |
prose |
Commands used below that are in Commands() (internal/cli/manual.go): config, settings, servers, init, ls, status, daemon, daemons, stop, exec, run, tui, explore. Two commands this issue has to mention are dispatched (cmd/mcpx/main.go:119-161) but missing from Commands(): serve and registry. #147 covers that gap.
Findings the pages must not copy
-
The file key is mcpServers, not servers. Config.MCPServers is json:"mcpServers" (config.go:161). The package comment explains the choice: it is "the same mcpServers object that Claude Desktop, Claude Code, Codex and most other MCP hosts already use", and mcpx's own options go under a per-server "mcpx" key that other hosts ignore (config.go:3-6). "servers" is the name of the CLI command and the /v1 resource (mcpx servers, /v1/servers). The page has to show both names and say which one goes where.
-
mcpx init writes a starter config that does not do what its comments say. starterConfig (internal/cli/commands.go:1379-1407) sets "mode": "shared" and "mode": "session" (:1390, :1400; still true at 05c78b2). mode was split into sharing and scope (story.md "Sharing and scope": "A single mode setting used to answer both questions at once ... They are now separate"). Extras has no mode field (config.go:90-128), and the loader's json.Unmarshal (config.go:695) drops unknown fields. So the chrome-devtools entry, which the comment describes as "One browser per script run, up to 4 at once", actually gets the defaults shared/global: one browser shared by everyone. That is the exact failure mcpx exists to prevent. This is a bug outside docs, filed as Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 2. It has to be fixed before the quick start (Consider moving opencode and openchamber forks to developing-today-forks organization #157) tells anyone to run mcpx init. The top-level mcpx help text teaches the same dead key in its CONCURRENCY block (internal/cli/root.go:597-604, with a pooled value that does not exist). The pages must teach sharing/scope and copy neither.
-
The config search path is wider than anything documented. SearchPathFrom (config.go:542-579) works like this:
- If
MCPX_CONFIG is set, that one file is used and nothing else is read.
- Otherwise, at each directory from the working directory up to
/, it checks .config/mcpx/config.json, .mcpx.json, .mcpx/config.json and .mcp.json.
- Then it checks
$XDG_CONFIG_HOME/mcpx/config.json, ~/.config/mcpx/config.json, ~/.mcpx.json and /etc/mcpx/config.json.
- Files are merged per server name and the nearest one wins.
"disabled": true drops a server inherited from a farther file. An explicit --config is used alone (config.go:581-590).
.mcp.json is Claude Code's project file, which means mcpx picks up a project's Claude Code servers. That is useful, and nothing says so today. paths.config is declared in the registry but nothing reads it (Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 370cd4d #5).
Two smaller points the pages have to get right:
-
Environment variables outside the registry. Many MCPX_* names appear in non-test code (internal, cmd, plugin) and not in docs/configuration.md. This issue counted roughly 49. Phase 2: membership, delegation, groups, and server config #172 counts 44 undeclared of 64 referenced, at 8001f23, and owns the count and the allowlist (Phase 3: sync, blob gate, and relays #181 collision 17), so the page uses Phase 2: membership, delegation, groups, and server config #172's list. Some are registry aliases (MCPX_LOG_LEVEL and MCPX_STATE_DIR both appear in internal/settings/registry.go). The rest fall into five groups:
- config selection:
MCPX_CONFIG, config.go:549
- caller identity:
MCPX_SESSION_ID and MCPX_PARENT_SESSION_ID, set by the plugin at plugin/opencode/mcpx-session.ts:670,713
- names the generated client reads:
MCPX_ENDPOINT, MCPX_SESSION, MCPX_SOCKET (internal/codegen/emit.go:252-268), MCPX_CONFIG_PATH (:411), MCPX_RUNTIME (:883) and others. mcpx sets these for the scripts it runs. MCPX_SESSION is the run's session key: --session, else the harness's MCPX_SESSION_ID, else a fresh key (internal/cli/commands.go:537-545). It is derived from MCPX_SESSION_ID, not a misspelling of it (Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 13, struck).
- plugin-only options:
MCPX_PLUGIN_DAEMON_TOOLS, _HEADLESS and MCPX_SOCKET, in plugin/opencode/README.md "Configuration". These are allowlisted with reasons in pluginEnvAllowed (internal/settings/consumed_test.go:188-200). MCPX_PLUGIN_REMEMBER and _ANNOTATE were in this group until Phase 2: delegated Manage cannot add members #171 made them the settings plugin.remember and plugin.annotate.
- harness context the plugin injects:
MCPX_HARNESS*, MCPX_SESSION_* and MCPX_OPENCODE_*
An env-var page generated only from the registry would leave all of these out.
-
Upstream "sse" is not the legacy SSE transport. POST /v1/servers accepts transport: stdio|http|sse (internal/api/ops_settings.go:100). But the pool builds only two things: a stdio transport, or mcpclient.NewHTTP (internal/pool/pool.go:368-380). NewHTTP is Streamable HTTP whose replies may arrive as an SSE stream (internal/mcpclient/http.go:18-23, :144). I found no client for the deprecated 2024-11-05 HTTP+SSE transport, the one with a separate GET stream and an endpoint event. So in mcpx, "SSE" upstream means the SSE framing inside Streamable HTTP. The transport page must say this, not imply support for SSE-only servers (open question 5).
Part 1: the page map
Approaches: page granularity
Approach A (least recommended): one page per item, 30 pages. Each item gets a URL of its own for free. But at least a third of the items are one or two paragraphs: "mcp sdk", "/v1 sdk", "binary", "client config", "vibeMcp", and each FAQ question. The result is a 30-entry sidebar, the same context repeated at the top of every thin page, and a cross-link every time two items touch (client modes vs transport options vs server modes are one topic seen from three sides). The agent twin (#120) inherits 30 tiny .md files that an agent has to fetch one by one. It also cuts against lines 50-51: a reader who lands on "client modes" alone gets a fragment, not "a more normal set of docs".
Approach B (middle): everything in one long manual page with 30 sections. In its favour: Ctrl-F finds everything, the agent twin is a single file, and there is nothing to navigate. Against it: config alone is several screens, and the page mixes three audiences (script writers, MCP-host integrators, harness-plugin authors). Every regeneration of an embedded generated table churns one huge file, and a new person facing one enormous page reads it as "this is a lot" rather than "this is all there is". Most generators produce a single-page print view from a multi-page book for free (mdBook's print.html, for example; #117 picks the generator). So B's benefits are best taken as a byproduct of C rather than as the structure.
Approach C (recommended): about ten grouped pages, each item with a fixed anchor. Every item keeps a URL of its own (page#anchor). Related items share a page so that each page is complete by itself. The print view gives B's benefits for free. Anchors are set explicitly rather than derived from headings, because headings like "plugin interface & config" and "/v1" slug badly and differently in each generator, and a renamed heading must not break links. Recommended because it is the only option that satisfies lines 50-51 (complete, unintimidating) and still gives the user's list one addressable place per item.
The map (Approach C)
The navigation order follows the notes. Open question 3 asks whether task order would be better.
| # |
Item (verbatim) |
Page #anchor |
Source material in the repo |
Written by |
Generated part (#144) |
| 53 |
common config |
configuration#common-config |
docs/configuration.md "Where a value can come from", "Scope", "Hot", "Reaching them"; config.go:528-590; manual.go entries config, settings, init |
#146 |
link to the settings table; no copy |
| 54 |
server config |
configuration#server-config |
config.go:24-157; story.md "Sharing and scope", "Profiles and aliases", "Remote servers without a shim"; docs/configuration.md "Servers"; manual.go servers |
#146 |
open: a JSON Schema for the file (pool.* rows are generated) |
| 55 |
client config |
configuration#client-config |
docs/configuration.md "Scope: who reads it"; registry rows with scope client and call |
#146 |
the client- and call-scoped settings, filtered from the registry |
| 56 |
env vars |
configuration#env-vars |
docs/configuration.md "variable" column; the names listed in Findings above |
#146 |
registry names generated; the others hand-written until declared |
| 57 |
client modes |
modes#client-modes |
story.md "Running without a daemon", "One daemon, many clients"; docs/exec.md "Where a script runs"; AGENTS.md "Profiles" |
#146 |
- |
| 58 |
transport options |
modes#transport-options |
docs/protocol.md §5; story.md "What each transport costs", "Server-sent events, not WebSockets", "Lossless reconnection", "Remote servers without a shim"; docs/dependencies.md "Network" |
#146 |
- |
| 59 |
server modes |
modes#server-modes |
story.md "mcpx speaks MCP", "Sharing and scope"; docs/protocol.md §5 |
#146 |
- |
| 60 |
abstract interfaces |
interfaces#abstract-interfaces |
internal/api/ops*.go; docs/parity.md |
#147 |
the parity table |
| 61 |
client interfaces |
interfaces#client-interfaces |
mcpx client; internal/codegen; plugin/opencode/mcpx/daemon.ts DaemonClient |
#147 |
- |
| 62 |
cli |
cli#cli |
AGENTS.md "The loop"; cmd/mcpx/main.go |
#147 |
- |
| 63 |
cli arguments |
cli#cli-arguments |
cmd/mcpx/main.go:61-104; internal/settings/bind.go |
#147 |
per-command registry flags |
| 64 |
cli commands |
cli#cli-commands |
internal/cli/manual.go Commands() |
#147 |
yes: the whole command table |
| 65 |
mcp |
mcp#mcp |
story.md "mcpx speaks MCP"; docs/protocol.md §2-§4 |
#147 |
- |
| 66 |
mcp sdk |
mcp#mcp-sdk |
docs/dependencies.md; go.mod |
#147 |
- |
| 67 |
mcp compatibility |
mcp#mcp-compatibility |
docs/protocol.md §1, §6; internal/mcpserver/revisions.go; GET /v1/protocol |
#147 |
the revision matrix |
| 68 |
binary |
binary#binary |
docs/dependencies.md; package.nix |
#147 |
- |
| 69 |
script |
scripts#script |
AGENTS.md "Scripts", "Script contract"; story.md "The script contract", "Named scripts"; docs/exec.md |
#147 |
- |
| 70 |
/v1 |
http-api#v1 |
GET /v1/openapi.json (internal/api/openapi.go); docs/parity.md |
#147 |
yes: rendered from the OpenAPI document |
| 71 |
/v1 sdk |
http-api#v1-sdk |
DaemonClient; /v1/openapi.json |
#147 |
- |
| 72 |
plugins |
plugins#plugins |
plugin/opencode/README.md; #80 |
#148 |
- |
| 73 |
plugin compatibility |
plugins#plugin-compatibility |
docs/opencode-plugin.md §1, §5; #48 |
#148 |
- |
| 74 |
plugin interface & config |
plugins#plugin-interface-and-config |
plugin/opencode/README.md "Configuration"; docs/plugin-discovery.md; plugin.* registry rows |
#148 |
plugin.* rows |
| 75 |
opencode v1 plugin |
plugins#opencode-v1-plugin |
plugin/opencode/README.md; docs/opencode-plugin.md §2, §3, §6 |
#148 |
- |
| 76 |
opencode v2 plugin |
plugins#opencode-v2-plugin |
docs/opencode-plugin.md §4; #47 |
#148 |
- |
| 77 |
vibeMcp |
plugins#vibemcp (provisional; moves once its meaning is known) |
nothing in the repo |
#148 |
- |
| 78 |
"so why'd you get rid of all the mcp and then make one, do you like mcp or not" |
faq#do-you-like-mcp |
story.md "# Summary", "mcpx speaks MCP" |
#149 |
- |
| 79 |
"i mean, opencodemode is right there" |
faq#opencode-code-mode |
OPENCODE-V2.md (with its 2026-09-29 corrections); docs/opencode-plugin.md §1 |
#149 |
- |
| 80 |
"is it safe?", no. |
faq#is-it-safe |
AGENTS.md "Scripts"; internal/runner/runner.go:41-66 |
#149 |
- |
| 81 |
"but why would you.." |
faq#why |
ASSESSMENT.md; story.md opening walk |
#149 |
- |
| 82 |
"but can i get some examples?" |
faq#examples |
story.md walk; mcpx recipes; .mcpx/scripts/; Examples fields in manual.go |
#149 |
per-command examples |
Totals: 10 pages and 30 anchors. configuration 4, modes 3, interfaces 2, cli 3, mcp 3, binary 1, scripts 1, http-api 2, plugins 6, faq 5. #148 may split plugins into an index plus an opencode page. The anchors stay the same either way.
Rule for generated content at level 2. When a page needs reference data, such as the client-scoped settings on configuration#client-config, it embeds the relevant slice generated from the same source instead of just linking to the full reference. Linking would break "this is all there is". Embedding means #144 has to support filtered embeds (for example "settings where scope = client"), not only whole pages.
Part 2: content for the seven pages
configuration#common-config
- Where config lives. List the search path from Finding 3 exactly, in order, including
.mcp.json and MCPX_CONFIG. Show mcpx config --path (the nearest file), --sources (every file that contributed and which server each defined), --defaults (the built-in layer from internal/defaults/defaults.json) and --schema [--plumbing] (every setting with its flag and variable).
- Format. JSONC, with comments allowed (
config.StripJSONC). The top level holds mcpServers, the pool defaults block, and any registry setting at its dotted path. Open question 4 covers the top-level runtime/permissions keys.
- Precedence. default < file (nearest wins) < env < flag < runtime (
docs/configuration.md "Where a value can come from"). mcpx settings get <path> shows the winning value and what it displaced, which answers "why is this not what my config says".
- Scope and hot. One paragraph each, reused from
docs/configuration.md. Use the example that motivated scopes: a flag given to a command, for something the already-running daemon reads, used to be silently ignored.
- Changing settings.
mcpx settings list|get|set|unset [--persist runtime|project|user], mcpx settings list --daemon, and the matching /v1/settings and mcpx_settings_* rows (the "Reaching them" table).
- Starting.
mcpx init [--global] writes .mcpx.json or ~/.config/mcpx/config.json, but only once Finding 2 is fixed. Until then, the page shows a hand-written starter.
paths.config. Until Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 370cd4d #5 lands, the page states that the search path is fixed and that MCPX_CONFIG and --config are the only overrides. It must not advertise paths.config, --paths-config or MCPX_PATHS_CONFIG. docs/configuration.md:336 lists them, and the settings guard's allowlist claims MCPX_PATHS_CONFIG is read, but nothing reads it (Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 19).
configuration#server-config
- Shape of one entry, from
config.go:91-157:
- Stdio servers:
command, args, env, cwd.
- Remote servers:
url, transport, headers.
- Any server:
auth, protocol (legacy | modern | force-legacy | force-modern), aliasOf.
- The
mcpx block: sharing, scope, max, min, idleTimeout, callTimeout, startTimeout, namespace, disabled, logging, prelude, profiles, default, description, tools, excludeTools.
- Each entry needs one of
command, url or aliasOf (config.go:703-705). A url with no transport means http (:706-708).
- The top-level
pool block sets defaults for every server's mcpx block. It uses the same names as the pool.* settings (config.go:163-167).
- Sharing × scope. Two independent axes. Include the story.md table:
shared/exclusive, and global/repo/worktree/cwd/session/parent-session/pid/call. Include the degrade rule: session without an id falls back to per-call isolation and logs once. Give a stateful and a stateless worked example; the chrome-devtools one from story.md is right, the one from mcpx init is not.
- Profiles and aliases, including how the profile selection also limits the generated client.
- Adding servers live.
mcpx servers add|remove|list, and mcpx registry add (dispatched but not in Commands(); see ⚡ Bolt: Optimize hash calculation for cursor colors #147). The same operations exist as /v1/servers and mcpx_servers_*. daemon.watchConfig reloads after hand edits within daemon.reapInterval. Servers whose definition did not change keep their process.
- Compatibility. An existing
mcpServers object pastes in unchanged, and other hosts ignore the mcpx key. The page also says that .mcp.json is picked up.
- Naming. The namespace is the server name with non-identifier characters replaced (
fancy-name becomes fancy_name, per AGENTS.md), unless mcpx.namespace overrides it.
- Not servers (yet).
paths.adapters and paths.apis produce MCP tools, not namespaces (Bump build/buck/preludes/buck2-prelude from d956689 to f12c8d1 #102, chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83). The page links them but does not present them as a kind of server.
configuration#client-config
This interprets "client config" as the settings read by the process you run: the CLI and the scripts it launches (scope client), plus the per-request call scope. The page covers:
daemon.endpoint, daemon.autostart, daemon.inline, autostart.*, output.*, logging.format, script.*, paths.*, http.requestTimeout, registry.*, doctor.timeout, events.reconnect. This list is a generated embed.
- How call-scoped settings travel with each request in
X-Mcpx-Settings, and why only call-scoped ones are honoured from that header.
- Why
mcpx settings list (which is what the client resolves) and mcpx settings list --daemon can legitimately differ.
A second reading, "how to configure an MCP client (a host) to use mcpx", belongs in modes#server-modes, with a one-line pointer from here (open question 2).
configuration#env-vars
Approaches.
- A (least): a hand-written list. It drifts. The 44 unlisted names Phase 2: membership, delegation, groups, and server config #172 found show that it already has.
- B (middle): generate the registry part, hand-write the rest. Complete today, but nothing stops a new unlisted name tomorrow.
- C (recommended): declare every externally meaningful non-setting variable once (identity, script-facing, plugin-only, harness context), next to the registry, with a test that fails on any
MCPX_[A-Z_]+ literal in non-test code that is neither a setting nor declared. The whole page is then generated. This follows the pattern docs/configuration.md already describes for the plugin ("a test pins them"; since Phase 2: delegated Manage cannot add members #171 that is TestThePluginReadsNoUndeclaredSetting plus pluginEnvAllowed). Phase 2: membership, delegation, groups, and server config #172 owns the declaration and its test (Phase 3: sync, blob gate, and relays #181 collision 17), and 🎨 Palette: Improve accessibility of editor search panel #144/⚡ Bolt: Optimize cursor color generation and position grouping #145 generate the page from it. This issue only needs the page to be complete.
The page groups variables by who sets them: you (settings), the host or harness (identity and context), and mcpx for your script (endpoint, runtime). It publishes derived names as they are, for example MCPX_DAEMON_LEASE_T_T_L (docs/configuration.md:216), unless #144 adds explicit names.
modes#client-modes
This is an interpretation, flagged as such (open question 1). "Client mode" is read as how a command reaches the servers. That is a ladder, which story.md "Running without a daemon" states:
| rung |
how |
set by |
notes |
| 1. socket |
an existing local daemon |
default |
0.17 ms per request with keep-alive |
| 2. url |
a named daemon elsewhere |
daemon.endpoint = http://host:port or unix:///path |
stops the ladder: no autostart, no local fallback ("would silently answer from the wrong machine") |
| 3. spawn |
start a daemon, then use it |
daemon.autostart (default true); idles out after autostart.idleExit (4h) |
about 23 ms, once |
| 4. inline |
servers inside this process |
daemon.inline (default false) |
nothing is kept warm; a browser dies with the command. Include the lifetime table from story.md |
Settings that apply across every rung:
- Where a script runs:
exec.where = auto|local|remote, also --local/--remote (docs/exec.md "Where a script runs"). --local against a remote daemon is refused.
- Which servers are visible:
--profile, --skip-default, --all-profiles.
- Output shape:
--json, and exec.output = text|structured|stream.
- Interactive vs scripted:
mcpx tui, mcpx explore, and bare mcpx, which opens the TUI when there is a terminal and prints help otherwise (cmd/mcpx/main.go:107-116).
Supervision: mcpx daemon [--detached] runs the daemon in the foreground. Installing it as a service is status: proposed in story.md "Service installation", and the page must say so.
modes#transport-options
One table for each direction, because "transport" means different things on the two sides of mcpx.
Upstream (mcpx talking to MCP servers):
| transport |
config |
notes |
| stdio |
command |
the default |
| Streamable HTTP |
url (+ transport: http) |
reply bodies may be SSE streams; Mcp-Session-Id is tracked and released with DELETE (story.md "Remote servers without a shim") |
| legacy HTTP+SSE |
none |
not implemented (Findings); open question 5 |
| protocol era |
protocol |
docs/protocol.md §1 |
| OAuth |
none |
not performed (docs/protocol.md §6) |
Downstream (clients talking to mcpx):
| transport |
who uses it |
where |
cost / notes |
| unix socket |
CLI, plugin |
state directory, mode 0600 |
0.17 ms keep-alive |
| TCP loopback |
generated script clients (fetch over a unix socket is not portable across the three runtimes) |
127.0.0.1, ephemeral port, or daemon.port |
0.65 ms keep-alive |
| TCP beyond loopback |
remote clients via daemon.endpoint |
daemon.address + daemon.port |
the API is unauthenticated and a warning is printed once |
HTTP /v1/* |
everything |
every listener above |
#147 |
MCP Streamable HTTP /mcp |
MCP hosts |
every listener above; proto.mcpPath, proto.serveMCP |
no extra listener, by design (docs/protocol.md §5 "Why not an extra listener") |
| MCP stdio |
hosts that spawn their servers |
mcpx serve --transport stdio (not in Commands(); #147) |
--transport http was removed and fails naming /mcp instead (internal/cli/serve.go:360-376) |
SSE GET /v1/events |
plugin, TUI, scripts, curl |
every listener |
Last-Event-ID / ?since=N; gap events; SSE rather than WebSockets |
MCP subscriptions/listen |
MCP clients |
/mcp |
only the four notification kinds the spec defines |
Include the spawn-versus-socket numbers and one sentence of why (story.md "What each transport costs"). State plainly that there is no tailnet-specific feature: remote access is daemon.address + daemon.port on the daemon and daemon.endpoint on clients.
modes#server-modes
"Server" has three meanings in mcpx. Each subsection opens by saying which one it means.
-
mcpx as an MCP server. There are two ways in:
- The daemon's
/mcp: Streamable HTTP, shares the daemon's pooled servers and lifetime, and is disabled with proto.serveMCP=false.
mcpx serve --transport stdio: a thin shim for hosts that can only spawn a process.
Cover what the host sees: a deliberately small tool surface with mcpx_exec as the tool that matters (story.md "mcpx speaks MCP"), plus one generated mcpx_<operation> tool per /v1 operation (docs/parity.md). Include a copy-paste mcpServers snippet for putting mcpx into another host. That snippet is the second reading of "client config".
-
Modes of an upstream server. Sharing and scope, min/max, and the idle timeout. How to read them: the SHARING and SCOPE columns in mcpx ls, and the KEY column in mcpx status.
-
Modes of the daemon process. Autostarted and detached, foreground (mcpx daemon), inline, and the idle exits (autostart.idleExit, daemon.idleExit). Also mcpx daemons and mcpx stop [--all], plus a pointer to fix(deps): update rust crate leptos_router to v0.8.17 #78 for state and cache behaviour.
Open questions
- "client modes" and "server modes". Is the ladder / three-meanings reading above what was meant? Other possible readings: the plugin's
backend = auto|v1|cli (that is 🎨 Palette: Improve accessibility of search panel #148's), or human vs agent vs CI usage.
- "client config". Does it mean mcpx's client-scoped settings (drafted above), or configuring an MCP host to use mcpx (drafted under server modes)? Both are covered. Which one owns the anchor?
- Navigation order. The notes' order puts configuration first. Someone who has just installed mcpx arguably needs
scripts and cli first. Keep the notes' order, or use task order?
- Top-level
runtime and permissions. Config also has top-level runtime and permissions keys (config.go:181-184), and docs/dependencies.md teaches "the runtime config key". The registry names are script.runtime and script.permissions, with flag aliases --runtime and --permissions (registry.go:175-189). Which spelling do the docs teach, and are the top-level keys legacy?
- Legacy SSE servers. Does
transport: "sse" work against an HTTP+SSE-only (2024-11-05) server? If not, should the enum reject it, or should mcpx implement the legacy transport? The page states whichever is true.
- The starter config (Finding 2). Fixed where, and by whom? The quick start depends on it.
- Filtered embeds. Can 🎨 Palette: Improve accessibility of editor search panel #144 provide filtered generated embeds (settings by scope, by prefix)? The "level 2 is complete" rule depends on it.
Docs checks run in CI; see the testing trackers under #91 (CI pipeline #95, integration/environments #97).
Ease · Impact · Related
Ease M (page map S; seven page drafts M) · Impact high: this is the backbone of level 2, and three of the pages correct things current docs get wrong · Depends on / related: #94, #5, #78, #83, #102, #88, #147, #148, #149, #144, #117, #120, #157, #152, #159 (Findings 2 and the env-var and paths.config points are filed there), #172 (owns the MCPX_* allowlist the env-var page is generated from)
Security/auth deferred; see tracker. Activitydezren39 commented on Oct 28, 2026 History carried over from dezren39/darwin-nix#146 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:20:26Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T11:56:49Z
Issues pass (2026-09-30, at 05c78b2). I re-checked this against the current docs/configuration.md and the settings registry after #171, and edited the body in place. The page map, the approaches and the page drafts are unchanged.
- Env vars: the "roughly 49" count now defers to Phase 2: membership, delegation, groups, and server config #172, which counts 44 undeclared of 64 and owns the allowlist (Phase 3: sync, blob gate, and relays #181 collision 17). The env-var Approach C now names Phase 2: membership, delegation, groups, and server config #172 as the owner of the declaration and its test, with 🎨 Palette: Improve accessibility of editor search panel #144/⚡ Bolt: Optimize cursor color generation and position grouping #145 generating the page from it (it used to say 🎨 Palette: Improve accessibility of editor search panel #144).
- The plugin-only group changed in Phase 2: delegated Manage cannot add members #171.
MCPX_PLUGIN_REMEMBER and _ANNOTATE are now the settings plugin.remember and plugin.annotate. _DAEMON_TOOLS, _HEADLESS and MCPX_SOCKET are allowlisted with reasons (consumed_test.go:188-200).
- The generated-client group now lists
MCPX_SESSION (emit.go:253) and MCPX_SOCKET, and explains that MCPX_SESSION is derived from --session / MCPX_SESSION_ID (commands.go:537-545). It is a separate variable, not a misspelling. This matches Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 13, which was struck.
- Finding 2 (
mcpx init writes mode) is still true at 05c78b2 and filed as Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 2. Its line numbers are re-cited. The mcpx help CONCURRENCY block teaches the same dead key, and a pooled value that does not exist.
paths.config: the page must also not advertise --paths-config / MCPX_PATHS_CONFIG. configuration.md:336 lists them and the settings guard's allowlist claims the variable is read, but nothing reads it (Root flake check fails on nixosConfigurations due to missing clan-core.clanModules #159 item 19, Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 370cd4d #5).
- Re-cited
mcpx-session.ts:670,713 and serve.go:360-376. Checked and unchanged: the config search path (config.go:542-579), Extras, the sse finding (pool.go:368-380), and every setting the drafts name (daemon.*, autostart.idleExit 4h, exec.where, proto.serveMCP, ...). None was deleted by Phase 2: delegated Manage cannot add members #171.
developing-today commented on Oct 28, 2026 dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 🤖 Agent note · done
Dedupe (explicit): the level-2 tracker is #1898 (parent, not a duplicate). Siblings cover disjoint items: #1851 interface pages, #1855 plugin pages, #1859 FAQ, #1878 overview/quick-start, #1843 generated-reference pages (which several items draw from). No existing code issue covers the page map itself or #1848's first-seven content items (common config, server config, client config, env vars, client modes, transport options, server modes) — so nothing is closed as duplicate and scope is not shrunk.
Scope confirmed at current main (82b019a0): the source material the issue cites exists as flat docs in pkgs/mcpx/docs — configuration.md, protocol.md, exec.md, story.md among 82 doc paths — but no level-2 page map or level-2 pages exist yet.
Routing: enqueued task 3058 for part 1 only — the page map (all 30 items → page + anchor + verified source material + writing issue + generated-reference parts, with #1848's three Findings contradictions flagged, not copied). Part 2 (content for the first seven items) remains on this issue as the next slice; #1848 stays open, labels reset to queue/queued.
dezren39 commented on Oct 29, 2026
🤖 Agent note · both review findings fixed on the level-2 page map; parked on CI re-run and the merge-queue freeze (#2403)
-
Agent: queue worker repo-worker-code, OpenChamber scheduled lane. Task 3058 (resume of the parked task).
-
PR docs(mcpx): level-2 page map — all 30 items mapped (#1848 part 1) #2433 — queue/3058-1848-page-map, head cceaa674. One file (pkgs/mcpx/docs/level-2-page-map.md), docs only. CI restarted on the new head (not waited on, 5-minute rule).
-
What this shift fixed (the two Codex P2s that were still open, both correct):
- The map denied an existing client. It said there is no client for the deprecated 2024-11-05 HTTP+SSE transport;
internal/mcpclient/sse.go carries LegacySSETransport (NewLegacySSE). The transport page now documents that fallback and says which paths reach it, while keeping the real distinction: transport: sse in POST /v1/servers does not mean an SSE-only server.
- The env-vars row told the writer to hand-write names that are already declared.
settings.ScriptEnv() (internal/settings/scriptenv.go) declares the script environment — MCPX_SESSION … MCPX_RUNTIME, including the caller identity the plugin sets and the names the generated client reads — and docs/environment.md is generated from it under a two-way test (scriptenv_test.go). Row 56 and its bullet now link the generated page and leave only the genuine remainder hand-written: config selection (MCPX_CONFIG) and harness context.
-
Blocked from merging by ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (repo-wide merge-queue freeze; enumeration and the reversible fix are on that issue). Parked 30 min. Resume: confirm CI and Codex re-review green on cceaa674, re-enqueue docs(mcpx): level-2 page map — all 30 items mapped (#1848 part 1) #2433, merge, then comment here linking the merged map and the part-2 remainder.
-
Links: PR docs(mcpx): level-2 page map — all 30 items mapped (#1848 part 1) #2433 · mcpx docs: level-2 page map, and the configuration, modes and transport pages #1848 · ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 · task 3058
dezren39 commented on Oct 29, 2026
🤖 Agent note · parked (Lane C shift)
- Task: 3058 (mcpx level-2 page map, first slice of mcpx docs: level-2 page map, and the configuration, modes and transport pages #1848). PR docs(mcpx): level-2 page map — all 30 items mapped (#1848 part 1) #2433 OPEN, head cceaa67, diff is the single docs file
pkgs/mcpx/docs/level-2-page-map.md.
- Codex gate fixed this shift: both P2 findings (legacy HTTP+SSE fallback; ScriptEnv-generated env rows) had fix commits + thread replies at 22:19Z but the review threads were never marked resolved, so Codex still reported unresolved findings. Both threads are now resolved; no Codex finding remains undispositioned.
- CI:
basic: test failed once (1 test in internal/mcpclient, 3521 passed) — impossible for a docs-only diff to cause; failed-job rerun of run 40965003262 started 23:1xZ and was still IN_PROGRESS at park time (flake vs pre-existing failure to be settled by the rerun result).
- Gate: main still 5a34fa7; ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 merge-queue freeze also blocks merging regardless.
- Action: parked 1h. Resume: read the rerun result (if green, PR is merge-ready; if red again on the same mcpclient test, file/attach a pre-existing-failure note), then re-enqueue when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 fix lands; mcpx docs: level-2 page map, and the configuration, modes and transport pages #1848 stays open naming part 2 as remainder.
dezren39 commented on Oct 30, 2026 🤖 Agent note · picked up → parked
dezren39 commented on Oct 30, 2026
Lane A (queue task 3058): verified fresh — PR #2433 MERGED 2026-10-30T01:07:37Z (merge commit 7d7851d) once blocker #2403 cleared. Task 3058 completing as already_done; stale queue/status/work labels removed.
⚠️ Discrepancy flagged: PR #2433's body states "#1848 stays open: its part 2 (content for the first seven items) is the remainder", but this issue is currently CLOSED (2026-10-30T01:16:24Z, in the same minute-batch as #179's legitimate close). No comment records a decision to close it. Left closed by this shift — reopening needs a fleet/Drew decision — but part 2 appears untracked elsewhere if the close was accidental.
🤖 Agent note · picked up → done (already_done)
MetadataMetadataapp/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)documentationImprovements or additions to documentationkind/docsDocumentation improvement or addition DevelopmentNo branches or pull requestsIssue actions
|