From 76276eb8a44cf4003d56e46248c628f8595ae52d Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 09:36:29 -0600 Subject: [PATCH] =?UTF-8?q?docs(mcpx):=20coverage=20audit=20=E2=80=94=20cl?= =?UTF-8?q?ose=20the=20book's=20gaps=20against=20the=20binary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First mechanical coverage audit of the mcpx book (tracking: #1888): the binary's dumped surface (75 commands, 241 settings, 94 /v1 paths) set against the book's text, dimension by dimension, in the new coverage chapter. - SUMMARY: the placed chapters that never rendered are listed now (the testing set, the public Go client chapter, decision record 0007), plus three new chapters (coverage, deploying, glossary), each with its compendium manifest entry. - cli.md: group tables completed (cache, stdio-proxy, plugin, hook, want); a verb-set table for the command families; `mcpx help agents` documented. - remote.md: the tsnet transport gets its section (identity transport, TS_AUTHKEY, tsnet:// endpoints). - public-client.md: the full pkg/client API (14 symbols) with an example from the package's own tests. - http-api.md: the twelve /v1/tools/{tool} instances named. - 19 build warnings fixed: bare placeholder tokens in prose were being eaten as HTML tags; one fixed at its source (the script.devshell Short string in the settings registry; the generated configuration table regenerated). - story.md: two stray H1s demoted; the programme-prompt link made absolute. release-runbook.md: dead tty.md link unlinked. - Three personal references replaced with neutral role terms (plugins.md, remote.md, compare/register/code-mode.md); the three in decision record 0005 are dated history and stand. Gates: .#mcpx-docs builds with only the search-index size notice; TestCommittedRegionsAreCurrent, TestTheDocumentationListsEverySetting, TestEveryDocumentHasAChapter and TestEveryDispatchedCommandIsDeclared all pass. --- pkgs/mcpx/docs/SUMMARY.md | 9 + pkgs/mcpx/docs/cli.md | 36 ++- pkgs/mcpx/docs/compare/matrix-mcpx.md | 2 +- pkgs/mcpx/docs/compare/register/auth.md | 4 +- pkgs/mcpx/docs/compare/register/code-mode.md | 4 +- .../mcpx/docs/compare/register/plugin-apis.md | 8 +- pkgs/mcpx/docs/compendium.manifest.json | 21 ++ pkgs/mcpx/docs/configuration.md | 2 +- pkgs/mcpx/docs/coverage.md | 213 ++++++++++++++++++ pkgs/mcpx/docs/deploying.md | 95 ++++++++ pkgs/mcpx/docs/glossary.md | 126 +++++++++++ pkgs/mcpx/docs/http-api.md | 14 +- pkgs/mcpx/docs/plugins.md | 6 +- pkgs/mcpx/docs/protocol.md | 2 +- pkgs/mcpx/docs/public-client.md | 48 ++++ pkgs/mcpx/docs/release-runbook.md | 2 +- pkgs/mcpx/docs/remote.md | 29 ++- pkgs/mcpx/docs/spec/conformance-matrix.md | 10 +- pkgs/mcpx/docs/spec/requirements.md | 2 +- pkgs/mcpx/docs/spec/revision-conflicts.md | 4 +- pkgs/mcpx/docs/story.md | 6 +- pkgs/mcpx/internal/settings/registry.go | 2 +- 22 files changed, 613 insertions(+), 32 deletions(-) create mode 100644 pkgs/mcpx/docs/coverage.md create mode 100644 pkgs/mcpx/docs/deploying.md create mode 100644 pkgs/mcpx/docs/glossary.md diff --git a/pkgs/mcpx/docs/SUMMARY.md b/pkgs/mcpx/docs/SUMMARY.md index 733eb76f34..b99cdb6b44 100644 --- a/pkgs/mcpx/docs/SUMMARY.md +++ b/pkgs/mcpx/docs/SUMMARY.md @@ -12,14 +12,17 @@ - [Modes](modes.md) - [mcpx as a consumer](consumer.md) - [Running mcpx in a container](container.md) +- [Coverage: the book against the binary](coverage.md) - [Declared but never read](declared-but-unread.md) - [Dependencies](dependencies.md) +- [Deploying this book](deploying.md) - [Elicitation: a design](elicitation.md) - [The script environment](environment.md) - [Examples](examples.md) - [exec and artifacts](exec.md) - [FAQ](faq.md) - [Finding the repository without git](git-discovery.md) +- [Glossary](glossary.md) - [The home-page example: copy it or run it in the page](home-example.md) - [The /v1 HTTP API](http-api.md) - [Ideas](ideas.md) @@ -38,6 +41,7 @@ - [Plugins](plugins.md) - [Proposals](proposals.md) - [Protocol: every revision, both directions](protocol.md) +- [Public Go client for /v1 (`pkg/client`)](public-client.md) - [Quick start](quick-start.md) - [Release runbook](release-runbook.md) - [Reaching a daemon on another machine](remote.md) @@ -49,6 +53,10 @@ - [mcpx](story.md) - [mcpx Development Strategies & Lessons Learned](work-strategies.md) - [Audit](<>) +- [Testing mcpx](testing.md) + - [mcpx test inventory (deliverable 1 of #1960)](testing/inventory.md) + - [mcpx fuzz and seed policy (#1960)](testing/fuzz-and-seed-policy.md) + - [mcpx feature↔integration-test inventory (for #1978)](testing/feature-inventory.md) - [Audit: features (end to end)](audit/features.md) - [Audit: the MCP specification (area `spec`)](audit/spec.md) - [Audit: mcpx's own surface](audit/surface.md) @@ -96,6 +104,7 @@ - [0004 — Scope-resolved roots: spawn cwd, `${mcpx.root}` substitution, initialize workspace](decisions/0004-scope-resolved-roots.md) - [0005 — Release pipeline, version single-sourcing, and the module path](decisions/0005-release-pipeline.md) - [0006 — TTLs renew by touch-on-read, bounded by a maxAge ceiling](decisions/0006-ttl-touch-on-read.md) + - [0007 — Elicitation state binds no user identity (refuse-identity)](decisions/0007-elicitation-identity.md) - [The home-page example component](home-example/README.md) - [docs/spec](spec/README.md) - [What the specification asks of a client](spec/client-obligations.md) diff --git a/pkgs/mcpx/docs/cli.md b/pkgs/mcpx/docs/cli.md index 1416e762bb..ef1208ec4f 100644 --- a/pkgs/mcpx/docs/cli.md +++ b/pkgs/mcpx/docs/cli.md @@ -91,6 +91,11 @@ mcpx completion bash # also: zsh, fish The Nix package installs both for you: the man page to `share/man/man1/mcpx.1`, and completions for all three shells. +One more surface from the same declarations: `mcpx help agents` +prints the agent documentation (`AGENTS.md`) embedded in the +binary, so the instructions an agent reads are the ones the +binary it is driving was built with. + ## CLI arguments @@ -188,11 +193,36 @@ grouping `mcpx help` presents, and what each group is for: | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **running** | doing the work: `run`, `exec`, `scripts`, `skills`, `recipes`, `prompt`, `proxy`, `embeddings`, `feedback` | | **discovery** | finding out what exists before paying for its schemas: `ls`, `catalog`, `types`, `search`, `call`, `batch`, `client`, `schema`, `prompts`, `resources`, `openapi` | -| **daemon** | the daemon's own lifecycle: `status`, `daemons`, `refresh`, `reload`, `upgrade`, `restart`, `stop`, `supervise`, `daemon`, `serve` | -| **configuration** | shaping mcpx itself: `config`, `settings`, `servers`, `secrets`, `init`, `registry`, `api`, `adapter`, plus `help`, `man` and `completion` | -| **inspection** | looking at what happened: `diagnose`, `elicit`, `doctor`, `tui`, `explore`, `dashboard`, `interactions`, `log`, `stats` | +| **daemon** | the daemon's own lifecycle: `status`, `daemons`, `refresh`, `reload`, `upgrade`, `restart`, `stop`, `supervise`, `daemon`, `serve`, `cache`, `stdio-proxy` | +| **configuration** | shaping mcpx itself: `config`, `settings`, `servers`, `secrets`, `init`, `registry`, `api`, `adapter`, `plugin`, plus `help`, `man` and `completion` | +| **inspection** | looking at what happened: `diagnose`, `elicit`, `doctor`, `tui`, `explore`, `dashboard`, `interactions`, `log`, `stats`, `hook`, `want` | | **operations** | one generated command per `/v1` operation (for example `mcpx artifact list`) — these exist the moment an operation is declared, with flags from its parameters | For any one command, `mcpx help ` is the reference: it is printed from the same declaration the table is generated from, so the two cannot disagree. + +### The verb sets + +Several commands are families: one name, a verb as the first +argument. The generated table lists each family once; the verbs +are declared with it and printed by `mcpx help `. + +| command | verbs | what the family does | +| ---------- | -------------------------------------------------- | -------------------- | +| `adapter` | `list`, `check`, `call`, `tools`, `serve`, `import`, `add`, `remove` | command-line programs declared as MCP tools: show them, check the programs are installed, call one tool, print the tool definitions an MCP host would see, serve one as a namespace, generate a declaration (`import` — from shell completions, a man page or `--help`, in that order), or write and remove declarations through the daemon | +| `api` | `list`, `tools`, `call`, `add`, `remove` | HTTP services described by an OpenAPI document (`--spec`), as tools — the same shapes as `adapter`, over a document instead of a program | +| `servers` | `list`, `show`, `add`, `remove` | the configured MCP servers, changed live without restarting anything | +| `registry` | `search`, `show`, `add` | find a server in a public registry, inspect what would be added, add it | +| `secrets` | `list`, `set`, `unset`, `requests`, `request`, `decline` | the in-memory secret store: what is held, what servers have asked for, and answering or declining a request. In memory only — nothing here is written to disk | +| `settings` | `list`, `get`, `set`, `unset` | read and change any setting, from anywhere — see [Configuration](./configuration.md) | +| `skills` | `list`, `install` | the agent skills embedded in the binary, managed by `mcpx skills`: list them, or install them into an agent's configuration (`--agent `, `--to `) | +| `cache` | `prune`, `remove` (a bare `mcpx cache` lists) | the shared cache: list its entries, prune them by policy, or remove one entry by kind and key | +| `plugin` | `list` | the plugins discovered under `paths.plugins`, each one an MCP server | +| `stats` | `calls`, `servers`, `errors`, `sessions`, `volume`, `slowest` | one aggregation of the log per mode word: counts, per-server totals, errors, sessions, bytes, and the slowest individual calls | + +The daemon-operations group is the same idea, generated: one +command per `/v1` operation (`artifact`, `ask`, `task`, +`session`, and the rest), each with the operation's own verbs — +`mcpx help ` prints them, and [parity.md](./parity.md) +maps every one to its route. diff --git a/pkgs/mcpx/docs/compare/matrix-mcpx.md b/pkgs/mcpx/docs/compare/matrix-mcpx.md index ba7b26a893..758b0aae88 100644 --- a/pkgs/mcpx/docs/compare/matrix-mcpx.md +++ b/pkgs/mcpx/docs/compare/matrix-mcpx.md @@ -19,7 +19,7 @@ code cited in it and editing its cells, then change the commit above. each upstream negotiated. It does not report whether mcpx implements a feature correctly, and nothing generates that side yet. -Columns. **srv→**: a host of that revision connected to mcpx. +Columns. **srv→<rev>**: a host of that revision connected to mcpx. **cli→legacy**: mcpx connected to an upstream speaking 2025-03-26 to 2025-11-25 (mcpx offers 2025-11-25). **cli→modern**: mcpx connected to a 2026-07-28 upstream. The register column links the area file holding the diff --git a/pkgs/mcpx/docs/compare/register/auth.md b/pkgs/mcpx/docs/compare/register/auth.md index 5e09408211..d9c3b47079 100644 --- a/pkgs/mcpx/docs/compare/register/auth.md +++ b/pkgs/mcpx/docs/compare/register/auth.md @@ -100,7 +100,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m drops the clause because sessions are gone. mcpx's `auth` type `query` exists to put a static credential in the URL (`Resolved.Query`); that is legitimate for API keys but would violate the query-string MUST if it ever carried an OAuth access token. -- **Sources.** `2025-03-26/basic/authorization.mdx:270` "Authorization: Bearer "; `2025-03-26/basic/authorization.mdx:276` "2. Access tokens **MUST NOT** be included in the URI query string"; `2026-07-28/basic/authorization/index.mdx:262` "1. MCP client **MUST** use the Authorization request header field defined in"; `internal/pool/pool.go:379` "Headers: p.cfg.Headers," +- **Sources.** `2025-03-26/basic/authorization.mdx:270` "Authorization: Bearer <access-token>"; `2025-03-26/basic/authorization.mdx:276` "2. Access tokens **MUST NOT** be included in the URI query string"; `2026-07-28/basic/authorization/index.mdx:262` "1. MCP client **MUST** use the Authorization request header field defined in"; `internal/pool/pool.go:379` "Headers: p.cfg.Headers," ## AUTH-04 PKCE required; refuse AS without `code_challenge_methods_supported` @@ -397,7 +397,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m - **Effort.** M for a bearer token; L for a full OAuth resource server (AUTH-06). - **Risk.** High: remote code execution for anything that reaches the port. - **Detail.** If mcpx adds a 401 to `/mcp`, opencode v1 will read it as "needs OAuth": it moves the server to - `needs_auth` and toasts "Run: opencode mcp auth ", partly by matching "OAuth"/"registration"/"client_id" in error + `needs_auth` and toasts "Run: opencode mcp auth <name>", partly by matching "OAuth"/"registration"/"client_id" in error text. Users would need `oauth: false` and a static header in opencode's config. - **Sources.** `2024-11-05/basic/transports.mdx:57` "3. Servers **SHOULD** implement proper authentication for all connections"; `2026-07-28/basic/transports/streamable-http.mdx:65` "Servers **SHOULD** implement proper authentication"; `internal/cli/root.go:202` "the API is unauthenticated"; `v1:packages/opencode/src/mcp/index.ts:317` diff --git a/pkgs/mcpx/docs/compare/register/code-mode.md b/pkgs/mcpx/docs/compare/register/code-mode.md index b2e34a110c..9676d587da 100644 --- a/pkgs/mcpx/docs/compare/register/code-mode.md +++ b/pkgs/mcpx/docs/compare/register/code-mode.md @@ -266,7 +266,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m register's AUTH-25 and AUTH-24. - **Sources.** `.lootbox/src/lib/constants.ts:78` `export const DEFAULT_PERMISSION_FLAGS: readonly string[] = ["--allow-net"];`; `.lootbox/src/lib/get_config.ts:485`; `internal/runner/runner.go:47` "The default is wide open."; - `ASSESSMENT.md:73` "deno run --allow-all --reload=http://localhost:PORT/client.ts --no-check=remote " + `ASSESSMENT.md:73` "deno run --allow-all --reload=http://localhost:PORT/client.ts --no-check=remote <tmpfile>" ## CODE-09 Cloudflare blocks or proxies all outbound network @@ -560,7 +560,7 @@ input.entry.tool.timeout` (`v1:packages/opencode/src/tool/code-mode.ts:154-158`) for writes, which also need a permission. - **Sources.** `.lootbox/src/lib/lootbox-cli/exec.ts:40` `ws.send(JSON.stringify({ script, id }));`; `.lootbox/src/lib/execute_llm_script.ts:20`; `nix:configuration.nix:742` `WorkingDirectory = -"/Users/drewry.pope/.config/nix";` +"/Users//.config/nix";` ## CODE-22 Caller chooses local or remote execution diff --git a/pkgs/mcpx/docs/compare/register/plugin-apis.md b/pkgs/mcpx/docs/compare/register/plugin-apis.md index 2c4850f661..c491f9ff08 100644 --- a/pkgs/mcpx/docs/compare/register/plugin-apis.md +++ b/pkgs/mcpx/docs/compare/register/plugin-apis.md @@ -94,7 +94,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m or setup function." - **Detail.** v2 validates with Effect Schema `Struct({id: String, effect|setup: function})`; `id` is mandatory and duplicate ids fail (`v2:packages/core/src/plugin/supervisor.ts:108`). -- **Sources.** `v1:packages/plugin/src/index.ts:74` "export type Plugin = (input: PluginInput, options?: PluginOptions) => Promise"; `v2:packages/core/src/plugin/module.ts:60`; `v2:packages/core/src/plugin/module.ts:111`; `v2:packages/plugin/src/promise/plugin.ts:58`; `v2:packages/plugin/src/promise/plugin.ts:60` +- **Sources.** `v1:packages/plugin/src/index.ts:74` "export type Plugin = (input: PluginInput, options?: PluginOptions) => Promise<Hooks>"; `v2:packages/core/src/plugin/module.ts:60`; `v2:packages/core/src/plugin/module.ts:111`; `v2:packages/plugin/src/promise/plugin.ts:58`; `v2:packages/plugin/src/promise/plugin.ts:60` ## PLG-03 v1 legacy loader calls every export of a plugin file @@ -176,7 +176,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m - **Effort.** S. - **Risk.** Low: module-level state (mcpx's `sessions` cache, the chosen daemon) resets on every v2 reload. - **Detail.** v2's Bun source loader scans imports with `Bun.Transpiler` to decide what to watch. -- **Sources.** `v1:packages/plugin/src/index.ts:223` "dispose?: () => Promise"; `v2:packages/plugin/src/promise/plugin.ts:60`; `v2:packages/core/src/plugin/module.ts:22`; `v2:packages/plugin/src/source.bun.ts:27` +- **Sources.** `v1:packages/plugin/src/index.ts:223` "dispose?: () => Promise<void>"; `v2:packages/plugin/src/promise/plugin.ts:60`; `v2:packages/core/src/plugin/module.ts:22`; `v2:packages/plugin/src/source.bun.ts:27` ## PLG-09 Plugin instance per directory vs per Location @@ -296,7 +296,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m - **Detail.** v1 request preparation re-joins extra system entries into one message when a plugin pushes more than one (`v1:packages/opencode/src/session/llm/request.ts:74`). The v2 analogue is `session.hook("context")`, whose `system` is `Array` (`{type: "text", text}`): the shape mcpx pushes, on a different key (PLG-17). -- **Sources.** `v1:packages/plugin/src/index.ts:291`; `v1:packages/opencode/src/session/llm/request.ts:69`; `v1:packages/opencode/src/agent/agent.ts:381`; `plugin/opencode/mcpx-session.ts:745` "const parts = (output as any)?.parts"; `v2:packages/plugin/src/promise/session.ts:28` "system: Array" +- **Sources.** `v1:packages/plugin/src/index.ts:291`; `v1:packages/opencode/src/session/llm/request.ts:69`; `v1:packages/opencode/src/agent/agent.ts:381`; `plugin/opencode/mcpx-session.ts:745` "const parts = (output as any)?.parts"; `v2:packages/plugin/src/promise/session.ts:28` "system: Array<SystemPart>" ## PLG-17 v2 `session.hook("context")` edits system, messages, tools @@ -463,7 +463,7 @@ options: {namespace, codemode, permission, pinned}, description, input, output, - **Detail.** `docs/opencode-plugin.md:272` lists "a tool with a permission prompt (server plugin, v1 and v2)"; v2's tool context has no `ask`. v2 plugin tools are gated only by wholly-disabling permission rules on `options.permission ?? name`. -- **Sources.** `v1:packages/plugin/src/tool.ts:19` "ask(input: AskInput): Promise"; `v1:packages/opencode/src/tool/registry.ts:150`; `v2:packages/schema/src/tool.ts:14`; `v2:packages/core/src/tool.ts:225`; `docs/opencode-plugin.md:272` +- **Sources.** `v1:packages/plugin/src/tool.ts:19` "ask(input: AskInput): Promise<void>"; `v1:packages/opencode/src/tool/registry.ts:150`; `v2:packages/schema/src/tool.ts:14`; `v2:packages/core/src/tool.ts:225`; `docs/opencode-plugin.md:272` ## PLG-29 Toast from a server plugin diff --git a/pkgs/mcpx/docs/compendium.manifest.json b/pkgs/mcpx/docs/compendium.manifest.json index 2cb89ace07..fc540d8b5f 100644 --- a/pkgs/mcpx/docs/compendium.manifest.json +++ b/pkgs/mcpx/docs/compendium.manifest.json @@ -1081,6 +1081,27 @@ "role": "not-compendium", "lines": 197, "note": "the docs site home page (id: mcpx-home): level-1 site content (#1878), rendered by the generator chosen in #1939 \u2014 not a compendium (level-3) chapter" + }, + { + "path": "docs/coverage.md", + "chapter": "maintaining-these-docs", + "role": "chapter-source", + "lines": 213, + "note": "the mechanical coverage proof: the binary's dumped surface set against the book, dimension by dimension (bookwright coverage run, 2026-11-23)" + }, + { + "path": "docs/deploying.md", + "chapter": "maintaining-these-docs", + "role": "chapter-source", + "lines": 95, + "note": "how this book is deployed: the repository's single Pages site, the four books it carries, and the build gates (bookwright coverage run, 2026-11-23)" + }, + { + "path": "docs/glossary.md", + "chapter": "maintaining-these-docs", + "role": "chapter-source", + "lines": 126, + "note": "the book's vocabulary in one place: reader reference apparatus, kept with the docs-maintenance chapter (bookwright coverage run, 2026-11-23)" } ] } diff --git a/pkgs/mcpx/docs/configuration.md b/pkgs/mcpx/docs/configuration.md index be2e627ae5..ed448a36d7 100644 --- a/pkgs/mcpx/docs/configuration.md +++ b/pkgs/mcpx/docs/configuration.md @@ -1058,7 +1058,7 @@ skipped launcher phases). | `script.checkOnError` | enum | `fail` | client | no | `--script-check-on-error` | `MCPX_SCRIPT_CHECK_ON_ERROR` | what to do when script checking finds an error | | `script.checkOnUnsupported` | enum | `warn` | client | no | `--script-check-on-unsupported` | `MCPX_SCRIPT_CHECK_ON_UNSUPPORTED` | what to do when the selected runtime cannot check the script | | `script.cwd` | enum | `caller` | client | no | `--script-cwd` | `MCPX_SCRIPT_CWD` | where a script runs: caller, script, config or workdir | -| `script.devshell` | string | `host` | client | no | `--script-devshell` | `MCPX_SCRIPT_DEVSHELL` | environment the script runs inside: host, or flake: for a Nix flake devshell | +| `script.devshell` | string | `host` | client | no | `--script-devshell` | `MCPX_SCRIPT_DEVSHELL` | environment the script runs inside: host, or `flake:` for a Nix flake devshell | | `script.env` | list | *(empty)* | client | no | `--script-env`, `--env` | `MCPX_SCRIPT_ENV` | KEY=VALUE pairs added to the script's environment | | `script.imports` | enum | `report` | client | no | `--script-imports` | `MCPX_SCRIPT_IMPORTS` | resolve the script's import graph before running it | | `script.importsCrossProject` | enum | `isolate` | client | no | `--script-imports-cross-project` | `MCPX_SCRIPT_IMPORTS_CROSS_PROJECT` | how to handle a file edge into another project's manifest | diff --git a/pkgs/mcpx/docs/coverage.md b/pkgs/mcpx/docs/coverage.md new file mode 100644 index 0000000000..3c4b71fad3 --- /dev/null +++ b/pkgs/mcpx/docs/coverage.md @@ -0,0 +1,213 @@ +# Coverage: the book against the binary + +This chapter is the book's mechanical coverage proof: the whole +surface of mcpx, dumped from the binary itself, set against the +whole text of the book, with every difference named. It was +first run on 2026-11-23 against the binary built from commit +`0d29cdad5cf`, and the gaps it found were closed in the same +change that added this chapter. The method is the point: anyone +can re-run it, and the gates listed at the end hold most of it +true between runs. + +## Method + +The surface was dumped from the subject, never from memory or +from older docs: + +- `mcpx --help` and the `--help` of every command, recursively; +- `mcpx config --schema --plumbing` — the full settings + registry, public and internal, with types, defaults, flag + names and environment names; +- `mcpx openapi` — the /v1 document the binary prints with no + daemon running (94 paths, 109 operations); +- `go doc` for the public library package, and the source tree + for the settings registry, the internal packages and the + design records. + +Each dimension below is a set difference between that dump and +the book's text, computed mechanically. Literal matching has +known false-positive classes — list-form tables that name a +command once and its verbs in the next cell, a route the book +documents as a template, a usage line whose bracket holds a +flag rather than a verb — and every audit failure was +hand-classified before it was called a gap. The classifications +are stated with the numbers. + +## Commands and verbs + +The binary declares **75 top-level commands** in six groups +(running code, finding tools, the daemon, configuration, +inspection, daemon operations). All 75 are in the generated +command table in [Parity](./parity.md), and the equality of +the declaration list with the binary's dispatch table is a +test: `TestEveryDispatchedCommandIsDeclared`. The prose group +tables in [The CLI](./cli.md) now also name all 75 — the audit +found five missing there (`cache` and `stdio-proxy` from the +daemon group, `plugin` from configuration, `hook` and `want` +from inspection) and they are added. + +**64 verb forms** sit under those commands (`adapter add`, +`settings set`, `task cancel`, …). Every family's verbs are +now described in prose in [The CLI](./cli.md)'s verb-set +table. The literal audit matches 54 of 64 two-word forms in +the text; of the ten it cannot see, six are in that table in +split-cell form (the command in one cell, its verbs in the +next), two are `stats` modes named in the story chapter's +inventory, and two are extraction artifacts — a flag in a +usage line, and the generic `mcpx help ` topic form. + +Three commands had no prose anywhere before this run: +`skills` (now in the verb-set table and the running group), +`supervise` and `upgrade` (parity rows and group-table +entries, with the mechanism in the [Glossary](./glossary.md) +under *supervise* and *takeover*). + +## Flags + +The help dump carries **332 distinct `--flags`**. 215 of them +are setting flags — every setting's flag spelling is in the +book through its setting's row in +[Configuration](./configuration.md), with none missing. The +other 117 are command-local. 75 of those appear in the book's +prose; the remaining **42 are documented only in the generated +surfaces** — `mcpx help `, the man page and the shell +completions, all printed from the same declarations in +`internal/cli/manual.go`, so they cannot drift from the +binary. They are named here so the set is exact rather than +approximate: + +`--args`, `--argument`, `--arguments`, `--base-url`, +`--changed`, `--context`, `--deprecated`, `--dir`, `--dump`, +`--exclude`, `--execution-score`, `--feedback`, `--install`, +`--kind`, `--kinds`, `--max-score`, `--min-score`, +`--namespace`, `--notes`, `--overwrite`, `--parallel`, +`--ref`, `--replace`, `--retrieval-score`, `--safe-prefix`, +`--score`, `--scores`, `--semantic`, `--sharing`, `--socket`, +`--sort-by`, `--stop-on-error`, `--takeover`, `--target`, +`--tools`, `--trace`, `--ttl`, `--until`, `--uri`, +`--validate`, `--wait-ms`, `--yes`. + +This is the book's one deliberate non-duplication: per-command +flags live in the generated reference, and this chapter is +where the book says so, with the list. + +## Settings and environment + +The registry declares **241 settings**: 193 public and 48 +internal (the plumbing half, listed by +`mcpx config --schema --plumbing`). All 241 appear in +[Configuration](./configuration.md)'s generated inventory +with type, default, scope, whether they take effect hot, flag +name and environment name — held byte-equal with the registry +by `TestTheDocumentationListsEverySetting` and the shared +golden test below. The book states no other count; an earlier +programme census said 252, which counted `Path:` literals +across the whole settings tree, test files included, rather +than the registry the binary itself prints. + +Every setting carries an effect probe or a written exemption. +The exemption count is pinned at **5** (`EffectExemptionPin`) +and can only shrink: `daemon.inlineStartPoll`, +`daemon.tsnet.hostname`, `daemon.tsnetUpTimeout`, +`http.streamBufferInit`, `embeddings.wasmPath` — each named, +with its reason, in the registry and in the configuration +chapter's table. + +The schema names **246 `MCPX_*` environment variables** (some +settings carry an alias); all 246 are in the book through the +same inventory rows. One environment variable is deliberately +*not* a setting: `TS_AUTHKEY`, the Tailscale auth key for the +tsnet transport, kept out of the settings system so it can +never land in a config file or a settings dump. It is +documented with the transport, in [Reaching a daemon on +another machine](./remote.md). + +## The /v1 API + +The printed OpenAPI document has **94 paths and 109 +operations**. 82 paths appear literally in the book (in +[The /v1 HTTP API](./http-api.md) and the parity table). The +other 12 are the instances of the one templated family the +API chapter names, `POST /v1/tools/{tool}` — one path per +tool mcpx itself serves — and the chapter now enumerates the +instances. The daemon's own served document additionally +carries one path per tool in the *live* catalogue, generated +per request; those exist by construction, not by enumeration, +and the API chapter says so. + +## The library surface + +`pkg/client` exports **14 symbols**; all 14 are now documented +in [Public Go client for /v1 (`pkg/client`)](./public-client.md), +with the call shapes and error types, and an example from the +package's own tests. Nothing else in the repository calls the +package yet — the chapter says that too. + +Of the **62 internal packages**, 59 are named somewhere in +the book. The three that are not — `homeutil`, +`pluginsession`, `statsorder` — are internal helpers with no +public surface; they are recorded here rather than padded +into chapters. + +## Design records and the book's own inventory + +mcpx keeps its design records in the book tree, not in the +repository-root `doc/` archive. The inventory: 7 decision +records (`decisions/0001`–`0007`) under their index, 13 spec +chapters, 12 comparison chapters and 23 register entries, 3 +audit chapters, the catalogue, and the testing set. Every +markdown file under `pkgs/mcpx` has a compendium manifest +entry with a chapter or a stated reason — a test +(`TestEveryDocumentHasAChapter`) walks the tree and fails on +an unplaced file. + +Every file under `docs/` is in `SUMMARY.md` except the eight +`changes/` fragments, which are docs-history metadata — +consumed by the build's preprocessor, not chapters. Before +this run, six placed chapters were missing from the summary +and so never rendered: the testing set (4 files), the public +client chapter, and decision record 0007. All are listed now. + +Every summary title equals its chapter's sole `# ` heading +(the one exception is `index.md`, the styled home page, whose +title is its HTML `

` by design), and every relative link +in the book resolves: links that escape `docs/` are rewritten +to repository URLs by the build, and the two genuinely dead +links the audit found — a release-runbook link to a +`tty.md` that does not exist, and a story-chapter link that +only resolved by URL normalisation — are fixed. + +## The build + +The book builds as `.#mcpx-docs` with the docs-twins gate +inside it. Before this run the build carried 19 warnings — +bare `` tokens in prose being read as HTML tags +and silently vanishing from the rendered pages — across ten +files; all 19 are escaped now, one of them at its source (the +`script.devshell` description in the settings registry, whose +generated table row carried the token). One warning remains +by nature: the search index is large (12.8 MB), because +the book is about 405,000 words. It is named here so it reads +as a known quantity, not a defect. + +## The gates that hold this + +- `TestCommittedRegionsAreCurrent` (`internal/refdoc`) — the + generated regions of `configuration.md`, `parity.md` and + `protocol.md` are byte-equal with the declarations they are + generated from. Regenerate with the same test's `-update`. +- `TestTheDocumentationListsEverySetting` and + `TestEveryDocumentHasAChapter` (`internal/settings`) — the + settings inventory and the manifest placement, above. +- `TestEveryDispatchedCommandIsDeclared` (`internal/cli`) — + declaration and dispatch, both directions. +- The effect-coverage check (`internal/settings`) — every + setting probed or exempt, the pin only shrinking. +- `create-missing = false` and the docs-twins gate, inside + the `.#mcpx-docs` build itself. + +The rule that follows, and the one this book shares with the +fleet, Atlas and ID books: a change to a command, a flag, a +setting, a transport or a route updates its chapter in the +same change. A follow-up promise is how the gaps this chapter +closed got there. diff --git a/pkgs/mcpx/docs/deploying.md b/pkgs/mcpx/docs/deploying.md new file mode 100644 index 0000000000..7c40043640 --- /dev/null +++ b/pkgs/mcpx/docs/deploying.md @@ -0,0 +1,95 @@ +# Deploying this book + +This book is the root of the repository's single GitHub Pages +site, and it shares that site with three sibling books. This +chapter is how the deploy works, so a change to any of the four +books can be landed without wiping the other three. + +## One repository, one site + +GitHub Pages gives a repository exactly one site, and a +deployment replaces the whole of it. Four books live in this +repository — this one, the fleet book (`pkgs/fleet/book`), the +Atlas book (`pkgs/atlas-search/book`) and the ID book +(`pkgs/id/book`) — so they deploy together, in one workflow, or +not at all: a deploy that published only one book would delete +the other three from the site. + +The workflow is `.github/workflows/mcpx-docs.yml`. It has three +jobs: + +1. **build** — `nix build .#mcpx-docs`, on every push to main + and every manual dispatch. Nothing deploys from this job; + it is the same build the deploy job repeats with the + deploy `siteUrl`. +2. **deploy** — main only. Builds all four books and stages them + into one site tree, then uploads a single Pages artifact. +3. **publish** — a separate job that runs `deploy-pages` against + the uploaded artifact. It is separate on purpose (#10956): + when publish ran in the same job, it could fetch the artifact + metadata before the upload had propagated and fail with + "Found 0 artifact(s)". Deploys are serialised and never + cancelled by a later one (#1941) — two deploys must never + interleave. + +## Where each book sits + +Each book is built with its own `siteUrl`, because mdBook bakes +the base path into its generated pages (with the wrong one, the +404 page points its assets at the domain root and breaks): + +| book | sources | siteUrl | served at | +| ----- | ------------------------ | ------------- | ------------------------------------------ | +| mcpx | `pkgs/mcpx/docs` | `/code/` | `https://developing-today.github.io/code/` | +| fleet | `pkgs/fleet/book` | `/code/fleet/` | `…/code/fleet/` | +| Atlas | `pkgs/atlas-search/book` | `/code/atlas/` | `…/code/atlas/` | +| ID | `pkgs/id/book` | `/code/id/` | `…/code/id/` | + +The mcpx book sits at the root because it was there first — it +is the site's original book (#1939, #1941), and the others +joined under subpaths as they were written. The staging step +copies the mcpx build into the site root, then adds `fleet/`, +`atlas/` and `id/` beside it; the copied tree comes out of the +Nix store read-only, so the staging step makes the root +writable before adding the subdirectories (#13225). + +Each sibling book also has a build-only workflow of its own +(`fleet-docs.yml`, `atlas-docs.yml`, `id-docs.yml`) that builds +it on every push to main. Those workflows never deploy — deploying +is this workflow's job alone, precisely so no second deploy can +replace the shared site with a partial one. + +## What the mcpx build itself does + +`.#mcpx-docs` (`pkgs/mcpx/docs.nix`) renders these sources with +mdBook, with two gates inside the build: + +- the **docs-history** preprocessor renders release metadata + and history disclosures into the pages; +- **docs-twins** then emits the agent surface — a `.html.md` + twin for every page, plus `llms.txt` and `llms-full.txt` — + and the build *fails* if any page lacks a current twin + (#1947). The deploy job asserts the twins are present in the + staged site as well. + +`book.toml` sets `create-missing = false`: every chapter in +`SUMMARY.md` must exist on disk, and a summary entry without a +file fails the build instead of publishing a stub. + +## After a book change lands + +The deploy runs on the push to main. Verify it the way the +failure mode demands — not just the book you changed: + +1. The workflow's publish job is green. +2. Fetch the root and every subpath live — `/`, `/fleet/`, + `/atlas/`, `/id/` — and confirm each serves its book. The + failure this guards against is a deploy that succeeds by + wiping a sibling. + +## The custom domain + +The site is the `github.io` address above. A custom subdomain +for the mcpx docs is a recorded, pending decision (#1943) — +applying the CNAME is the user's call, and until it is made +this chapter describes the site as it is. diff --git a/pkgs/mcpx/docs/glossary.md b/pkgs/mcpx/docs/glossary.md new file mode 100644 index 0000000000..0a16a81a6a --- /dev/null +++ b/pkgs/mcpx/docs/glossary.md @@ -0,0 +1,126 @@ +# Glossary + +The words this book uses in exactly one sense. Where a word is +defined by a chapter, the entry points at it. + +**adapter** — a command-line program declared as an MCP tool: +mcpx runs it as a namespace, from a declaration file named by +`paths.adapters`. See [The CLI](./cli.md) and +[Configuration](./configuration.md). + +**agent twin** — the `.html.md` markdown copy of a rendered +page, emitted into the site by docs-twins so agents read the +book as text. See [Deploying this book](./deploying.md). + +**API server** — an HTTP service described by an OpenAPI +document and exposed as tools, declared through `mcpx api`. +The counterpart of an adapter, over a document instead of a +program. + +**artifact** — a file a script produced, kept by the daemon +under the `artifacts.*` settings and reachable through +`mcpx artifact`. See [exec and artifacts](./exec.md). + +**catalogue** — the daemon's list of every tool on every +configured server; `mcpx catalog` prints it inside a token +budget. + +**ceiling** — the most a caller may do: an autonomy level, a +write policy, a rate. Ceilings are set by the daemon's side, +never raised by a caller's request. + +**compendium** — this book's level 3: everything that is +built, described in as much detail as wanted, with every +document placed by the manifest in `compendium.manifest.json`. +See [The compendium: structure and mapping](./compendium.md). + +**daemon** — the long-lived mcpx process that owns every MCP +server process on the machine. Clients (the CLI, plugins, +other programs) talk to it over the `/v1` API; they never +spawn servers themselves. + +**effect probe** — a named end-to-end test proving that a +setting changes behaviour. Every setting has one, or a +written exemption. See [Configuration](./configuration.md). + +**elicitation** — a server asking the user a question in the +middle of a call. mcpx brokers the question; `mcpx elicit` +answers it, and a call that stopped to ask exits 75 +(`EX_TEMPFAIL`) rather than failing. See +[Elicitation: a design](./elicitation.md). + +**era** — one revision of the MCP protocol, as a set of +expectations a peer may hold. mcpx speaks every era in both +directions. See [Protocol: every revision, both +directions](./protocol.md). + +**exemption** — a setting with no effect probe, carrying a +written reason instead. The count is pinned +(`EffectExemptionPin`) and can only shrink, and only in the +change that adds the replacing probe. + +**inline start** — when no daemon is running, the CLI starts +one itself and polls for readiness (the poll interval is +`daemon.inlineStartPoll`) instead of failing. + +**namespace** — the name a server's tools are grouped under: +`mcpx types ` loads its signatures, and a script +calls `.(…)`. + +**operation** — one entry in the daemon's `/v1` operation +table (`internal/api.Ops`): a method, a path, and where each +parameter travels. The CLI commands, the MCP tools, the +OpenAPI document and the Go client are all derived from this +one table. See [Parity](./parity.md). + +**parity** — the property that the four derived surfaces +agree, because they are generated from the same declarations; +also the chapter that prints the generated mapping. + +**plumbing settings** — the internal half of the settings +registry: declared and enforced like any other setting, but +listed only when asked (`mcpx config --schema --plumbing`). +Mostly bounds and intervals a harness cannot vary. + +**pool** — the daemon's set of live server instances. A +server's `scope` decides which process a call gets (one per +repo, worktree, session, …) and its `sharing` whether callers +share it or queue. + +**preset / profile** — a named bundle of configuration: a +*profile* selects which servers are active; a *preset* is a +named settings bundle. `--profile` is a global flag; presets +live in the `presets` settings. + +**recipe** — a saved script that declares its own holes: +`mcpx prompt` produces one from a request in words, and +`mcpx recipes` runs them. See [Scripts](./scripts.md). + +**registry** — two senses, kept apart by context: the +*settings registry* (every setting declared once, in +`internal/settings`) and a *public registry* of MCP servers +that `mcpx registry` searches. + +**scope** — who reads a setting (daemon, client, one call, +the plugin), or what decides which server process a call +gets. The word is used for both; the chapter says which. + +**script** — TypeScript (or JavaScript) run by `mcpx exec` / +`mcpx run` on a real runtime — deno, else bun, else node — +with the generated client and every namespace preloaded. + +**supervise / supervisor** — `mcpx supervise` runs one stdio +server child under a supervisor that owns the child's pipes +for its whole life, so a daemon upgrade need not orphan it. +The takeover handoff is the older mechanism it replaces. + +**takeover** — the upgrade handoff: `mcpx upgrade` starts the +new binary as the old daemon's child and passes it the stdio +children's pipes over a unix socket. Streamable HTTP sessions +survive it; SSE sessions are closed and re-initialised. + +**transport** — how a client reaches the daemon — a unix +socket, ssh, or a `tsnet://` tailnet identity — or how the +daemon reaches a server: stdio for a spawned process, +Streamable HTTP for a URL. See [Modes](./modes.md) and +[Reaching a daemon on another machine](./remote.md). diff --git a/pkgs/mcpx/docs/http-api.md b/pkgs/mcpx/docs/http-api.md index 348351349b..dfa3fd2f2d 100644 --- a/pkgs/mcpx/docs/http-api.md +++ b/pkgs/mcpx/docs/http-api.md @@ -30,7 +30,19 @@ the binary, it can be produced with **no daemon running**: a superset of the other. Every path they share is identical, byte for byte, and `mcpx openapi` adds the MCP endpoint, a REST path per mcpx tool (`POST /v1/tools/{tool}` is itself an operation in -the table) and the settings index. The daemon's document instead +the table) and the settings index. + + +In the printed document those per-tool paths are concrete — one +`POST` path per tool mcpx itself serves: `/v1/tools/mcpx_exec`, +`/v1/tools/mcpx_search`, `/v1/tools/mcpx_types`, +`/v1/tools/mcpx_catalog`, `/v1/tools/mcpx_call`, +`/v1/tools/mcpx_batch`, `/v1/tools/mcpx_namespaces`, +`/v1/tools/mcpx_registry`, `/v1/tools/mcpx_status`, +`/v1/tools/mcpx_stats`, `/v1/tools/mcpx_log`, and the batch form +`/v1/tools/batch_call`. [parity.md](./parity.md) carries the +living table behind the names; the list above is the set the +binary prints today. The daemon's document instead adds one concrete path per tool in the **live catalogue** (`POST /v1/call//`, with that tool's input schema, generated per request by `handleOpenAPI` in diff --git a/pkgs/mcpx/docs/plugins.md b/pkgs/mcpx/docs/plugins.md index 26f1016cd5..10abd04b36 100644 --- a/pkgs/mcpx/docs/plugins.md +++ b/pkgs/mcpx/docs/plugins.md @@ -335,6 +335,6 @@ the v1 loader. ## vibeMcp -Placeholder: what "vibeMcp" means is an open question for Drew (open -question 1 on #1855) — this anchor holds the name, and no meaning is -guessed here until he answers. +Placeholder: what "vibeMcp" means is an open question for the user +(open question 1 on #1855) — this anchor holds the name, and no +meaning is guessed here until the user answers. diff --git a/pkgs/mcpx/docs/protocol.md b/pkgs/mcpx/docs/protocol.md index a1cf4698ce..c17af0876e 100644 --- a/pkgs/mcpx/docs/protocol.md +++ b/pkgs/mcpx/docs/protocol.md @@ -807,7 +807,7 @@ era has. that subscribe before they know (the official suite's `server-resources-subscribe` and `-unsubscribe` among them). The reason is not lost: the daemon publishes a `server.log` event at level `warning` - ("no updates will be delivered for : "), visible on + ("no updates will be delivered for <uri>: <reason>"), visible on `/v1/events`. Honesty stays where the protocol has a mechanism for it, the listen acknowledgement. Only agreed URIs' updates are ever sent on a stream. - **Absolute-path URIs.** A listing drops a leading `/` when it namespaces diff --git a/pkgs/mcpx/docs/public-client.md b/pkgs/mcpx/docs/public-client.md index ded7cb8000..533e33c184 100644 --- a/pkgs/mcpx/docs/public-client.md +++ b/pkgs/mcpx/docs/public-client.md @@ -7,6 +7,54 @@ parameter placement come from the table, never from hand-written per-operation code — so the client cannot drift from the daemon the way a hand-maintained client would. +## The API + +One client, two call shapes, and the table itself for callers who +need to know what exists before calling: + +| symbol | what it is | +| ------ | ---------- | +| `New(baseURL string, opts ...Option) *Client` | build a client for the daemon at `baseURL`; operation paths from the table are appended to it | +| `(*Client).Call(ctx, name string, args map[string]any, out any) error` | perform the named operation; when `out` is non-nil, decode the JSON answer into it. Arguments are keyed by the operation's declared parameter names | +| `(*Client).CallRaw(ctx, name string, args map[string]any) ([]byte, error)` | perform the named operation and return the raw answer body; a non-2xx answer is an `*HTTPError` | +| `Invoke[T any](ctx, c *Client, name string, args map[string]any) (T, error)` | `Call` with the answer as a return value, for callers that prefer generics over an out parameter | +| `Operations() []api.Op` | the daemon's /v1 operation table: every operation `Call` can reach, with its declared parameters | +| `Operation(name string) (api.Op, bool)` | look one operation up by its table name (for example `task_get`); the second result is false for a name the table does not declare | +| `Option` | configures a `Client`; `WithHTTPClient(hc *http.Client)` replaces the HTTP client (a unix-socket dialler, a test round-tripper, TLS), and `WithToken(token string)` sets the bearer token sent on every request, matching the daemon's `Authorization` handling | +| `ErrUnknownOperation` | returned (wrapped) when `Call` names an operation the table does not declare | +| `*ArgError` | an argument problem, naming the operation (`Op`) and the parameter (`Param`) at fault — a missing required argument, or one the operation does not declare | +| `*HTTPError` | a non-2xx answer, carrying the response `Status` and the daemon's error `Code` | + +## An example + +The shape of real use, from the package's own tests +(`pkg/client/client_test.go`), which drive it against a test +daemon: + +```go +c := client.New(srv.URL, client.WithToken("test-token")) + +var task struct { + Status string `json:"status"` +} +if err := c.Call(ctx, "task_get", map[string]any{"id": "t 1/2"}, &task); err != nil { + // *client.ArgError names a bad argument, *client.HTTPError a + // refused call, and an error wrapping client.ErrUnknownOperation + // means the name is not in the table at all. + return err +} +``` + +## Who calls it + +Nothing in this repository does — yet. The CLI, the daemon and the +plugin each reach the operation table in-process; `pkg/client` is +the rung of #1877 that exists for callers outside the module: +embedders who want the daemon's API as a library surface instead +of a subprocess. That is also why the derivation rule matters more +than any one signature: an outside caller pinned to the table +inherits new operations as the daemon declares them. + ## Stability promise The package is **pre-1.0: public but unstable**. Within the pre-1.0 diff --git a/pkgs/mcpx/docs/release-runbook.md b/pkgs/mcpx/docs/release-runbook.md index 6cb450b55b..aaf2a327db 100644 --- a/pkgs/mcpx/docs/release-runbook.md +++ b/pkgs/mcpx/docs/release-runbook.md @@ -61,7 +61,7 @@ core. New wants go under `## Proposed`. Within a release, append in merge order. A small addition can be a heading and two links: ```markdown -### [feat(a11y): support for Teletypewriter](../docs/tty.md) #123 +### feat(a11y): support for Teletypewriter #123 2026-10-02T11:30:00-05:00 ``` diff --git a/pkgs/mcpx/docs/remote.md b/pkgs/mcpx/docs/remote.md index ce43146dfe..6e911fb868 100644 --- a/pkgs/mcpx/docs/remote.md +++ b/pkgs/mcpx/docs/remote.md @@ -32,7 +32,7 @@ Details worth knowing: - `?sock=/run/user/1000/mcpx/daemon.sock` picks a specific remote daemon, for a host running more than one. - `user@` and `:port` work as in any ssh target: - `ssh://drew@buildbox:2222`. + `ssh://user@buildbox:2222`. - `BatchMode=yes` is set, so ssh never stops to ask for a password or a passphrase: an HTTP request has no terminal to answer on. Load the key in your agent, or use a key with no passphrase. @@ -118,6 +118,33 @@ The short version: That runs `mcpx serve` on the remote host, so the daemon there is the one answering — again with no port and no credential beyond ssh. + +## 5. `tsnet://` — a daemon with a tailnet identity + +A daemon can join a tailnet as a node in its own right (#1967): +it embeds a Tailscale node in the daemon process (tsnet), so it +is reachable by its MagicDNS name from any other node on the +tailnet — from another network, with no port forwarded and no +public address. mcpx stays a pure-Go, `CGO_ENABLED=0` binary; +the node is a library compiled in, not a sidecar to install. + +- The daemon's tailnet name is the `daemon.tsnet.hostname` + setting. Its node keys live in a state directory on the + daemon's machine, so the name survives restarts. +- The Tailscale auth key comes from the `TS_AUTHKEY` + environment variable — never from a setting, on purpose: a + credential that cannot be written into a config file cannot + leak into a settings dump or a log either. +- The listener serves on port 80, and a client names the + daemon as a `tsnet://` endpoint (`tsnet://`). The + client builds its own tsnet dialer, so reaching the daemon + needs no system Tailscale install on the client side. +- Startup waits for the node to authenticate and reach + Running, bounded by the `daemon.tsnetUpTimeout` setting: a + daemon whose key has expired or been revoked fails its + startup honestly instead of reporting success while its + identity route never joins the tailnet. + ## What a remote endpoint is not - It is not a second authentication layer. **The daemon API is diff --git a/pkgs/mcpx/docs/spec/conformance-matrix.md b/pkgs/mcpx/docs/spec/conformance-matrix.md index 9ae44aab94..4be4c4ad83 100644 --- a/pkgs/mcpx/docs/spec/conformance-matrix.md +++ b/pkgs/mcpx/docs/spec/conformance-matrix.md @@ -301,7 +301,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | [sampling-human-in-loop-can-deny](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2024-11-05/sampling/sampling-human-in-loop-can-deny` | | [sampling-app-review-ui](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: a person can review a pending sampling request in the CLI -- mcpx elicit list/show renders the requesting server, system prompt and messages verbatim with a CreateMessageResult answer skeleton (#1837) -- but mcpx has no app UI and sampling questions still route to the agent audience by default | | [sampling-app-view-edit-prompts](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: prompts are viewable verbatim via mcpx elicit show (#1837) and a person can override a request by answering with their own completion or declining it, but the prompt itself is not editable in place | -| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | +| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result <id> (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | | [sampling-client-declare-capability-at-initialize](https://modelcontextprotocol.io/specification/2025-11-25/client/sampling#capabilities) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2024-11-05/sampling/sampling-client-declare-capability-at-initialize` | | [sampling-client-may-sample-fewer-tokens](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | | [sampling-client-may-ignore-model-preferences](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | @@ -650,7 +650,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | [sampling-human-in-loop-can-deny](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-03-26/sampling/sampling-human-in-loop-can-deny` | | [sampling-app-review-ui](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: a person can review a pending sampling request in the CLI -- mcpx elicit list/show renders the requesting server, system prompt and messages verbatim with a CreateMessageResult answer skeleton (#1837) -- but mcpx has no app UI and sampling questions still route to the agent audience by default | | [sampling-app-view-edit-prompts](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: prompts are viewable verbatim via mcpx elicit show (#1837) and a person can override a request by answering with their own completion or declining it, but the prompt itself is not editable in place | -| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | +| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result <id> (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | | [sampling-client-declare-capability-at-initialize](https://modelcontextprotocol.io/specification/2025-11-25/client/sampling#capabilities) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-03-26/sampling/sampling-client-declare-capability-at-initialize` | | [sampling-client-may-sample-fewer-tokens](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | | [sampling-client-may-ignore-model-preferences](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | @@ -1071,7 +1071,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | [sampling-human-in-loop-can-deny](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-06-18/sampling/sampling-human-in-loop-can-deny` | | [sampling-app-review-ui](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: a person can review a pending sampling request in the CLI -- mcpx elicit list/show renders the requesting server, system prompt and messages verbatim with a CreateMessageResult answer skeleton (#1837) -- but mcpx has no app UI and sampling questions still route to the agent audience by default | | [sampling-app-view-edit-prompts](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: prompts are viewable verbatim via mcpx elicit show (#1837) and a person can override a request by answering with their own completion or declining it, but the prompt itself is not editable in place | -| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | +| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result <id> (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | | [sampling-client-declare-capability-at-initialize](https://modelcontextprotocol.io/specification/2025-11-25/client/sampling#capabilities) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-06-18/sampling/sampling-client-declare-capability-at-initialize` | | [sampling-client-may-sample-fewer-tokens](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | | [sampling-client-may-ignore-model-preferences](https://modelcontextprotocol.io/specification/2026-07-28/schema#createmessagerequestparams) | MAY | client | n/a: addresses the other side | n/a: mcpx runs no model; it relays the request unchanged to whatever answers it (the pass-through tests), which is where model choice and generation happen | @@ -1593,7 +1593,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | [sampling-human-in-loop-can-deny](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-11-25/sampling/sampling-human-in-loop-can-deny` | | [sampling-app-review-ui](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: a person can review a pending sampling request in the CLI -- mcpx elicit list/show renders the requesting server, system prompt and messages verbatim with a CreateMessageResult answer skeleton (#1837) -- but mcpx has no app UI and sampling questions still route to the agent audience by default | | [sampling-app-view-edit-prompts](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: prompts are viewable verbatim via mcpx elicit show (#1837) and a person can override a request by answering with their own completion or declining it, but the prompt itself is not editable in place | -| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | +| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result <id> (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | | [sampling-client-declare-capability-at-initialize](https://modelcontextprotocol.io/specification/2025-11-25/client/sampling#capabilities) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-11-25/sampling/sampling-client-declare-capability-at-initialize` | | [sampling-client-declare-tools-capability](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#tools-in-sampling) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2025-11-25/sampling/sampling-client-declare-tools-capability` | | [sampling-server-no-tools-without-capability](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#tools-in-sampling) | MUST NOT | server | tested: `conformance.TestClientFeaturesServer/2025-11-25/sampling/sampling-server-no-tools-without-capability` | n/a: addresses the other side | @@ -2318,7 +2318,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | [sampling-human-in-loop-can-deny](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2026-07-28/sampling/sampling-human-in-loop-can-deny` | | [sampling-app-review-ui](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: a person can review a pending sampling request in the CLI -- mcpx elicit list/show renders the requesting server, system prompt and messages verbatim with a CreateMessageResult answer skeleton (#1837) -- but mcpx has no app UI and sampling questions still route to the agent audience by default | | [sampling-app-view-edit-prompts](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: prompts are viewable verbatim via mcpx elicit show (#1837) and a person can override a request by answering with their own completion or declining it, but the prompt itself is not editable in place | -| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | +| [sampling-app-review-responses](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#user-interaction-model) | SHOULD | client | n/a: addresses the other side | **gap** #256: partial: answered results are recorded on the broker row and visible via mcpx elicit result <id> (#1837), but there is no pre-delivery staging hold -- a result relays when it is answered (a staging state is an open question on #1834) | | [sampling-client-declare-capability-per-request-meta](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#capabilities) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2026-07-28/sampling/sampling-client-declare-capability-per-request-meta` | | [sampling-client-declare-tools-capability](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#tools-in-sampling) | MUST | client | n/a: addresses the other side | tested: `conformance.TestClientFeaturesClient/2026-07-28/sampling/sampling-client-declare-tools-capability` | | [sampling-server-no-tools-without-capability](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling#tools-in-sampling) | MUST NOT | server | tested: `conformance.TestClientFeaturesServer/2026-07-28/sampling/sampling-server-no-tools-without-capability` | n/a: addresses the other side | diff --git a/pkgs/mcpx/docs/spec/requirements.md b/pkgs/mcpx/docs/spec/requirements.md index 409343b46d..c1c9810ac6 100644 --- a/pkgs/mcpx/docs/spec/requirements.md +++ b/pkgs/mcpx/docs/spec/requirements.md @@ -758,7 +758,7 @@ Most 2025-11-25 growth is the tasks page (57 rows) and the elicitation rewrite; | elicitation-server-no-sensitive-info | 2025-06-18 | server | MUST NOT | elicitation | "Servers **MUST NOT** use elicitation to request sensitive information." | https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation#user-interaction-model | yes — mcpx cannot vet upstream content; forwards form questions as-is | n/a (peer's duty) | narrowed to form mode in 2025-11-25 | | elicitation-server-no-sensitive-info-in-form-mode | 2025-11-25 – 2026-07-28 | server | MUST NOT | elicitation | "Servers **MUST NOT** use form mode elicitation to request sensitive information such as passwords, API keys, access tokens, or payment credentials" (restated: "Servers **MUST NOT** request sensitive information (passwords, API keys, etc.) via form mode") | https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation#user-interaction-model | yes — pass-through of upstream's form; mcpx's own questions must comply | n/a | | | elicitation-server-sensitive-via-url-mode | 2025-11-25 – 2026-07-28 | server | MUST | elicitation | "Servers **MUST** use URL mode for interactions involving such sensitive information" | https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation#user-interaction-model | yes — mcpx raises no url-mode question of its own (`docs/protocol.md` §6) | n/a | new in 2025-11-25 | -| elicitation-app-show-requesting-server | 2025-06-18 | client | SHOULD | elicitation | "Applications **SHOULD**: - Provide UI that makes it clear which server is requesting information" (also "Clients **SHOULD** provide clear indication of which server is requesting information") | https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation#security-considerations | yes — message rewritten " (via mcpx) asks:" so the downstream can meet it | yes — broker records `Server` | promoted to MUST in 2025-11-25 | +| elicitation-app-show-requesting-server | 2025-06-18 | client | SHOULD | elicitation | "Applications **SHOULD**: - Provide UI that makes it clear which server is requesting information" (also "Clients **SHOULD** provide clear indication of which server is requesting information") | https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation#security-considerations | yes — message rewritten "<server> (via mcpx) asks:" so the downstream can meet it | yes — broker records `Server` | promoted to MUST in 2025-11-25 | | elicitation-client-show-requesting-server | 2025-11-25 – 2026-07-28 | client | MUST | elicitation | "Clients **MUST** provide clear indication of which server is requesting information" (and "MCP clients **MUST**: - Provide UI that makes it clear which server is requesting information") | https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation#security-considerations | yes — rewrite above; without it the downstream would only see "mcpx" | yes — delegated | was SHOULD | | elicitation-app-review-modify-responses | 2025-06-18 | client | SHOULD | elicitation | "Allow users to review and modify their responses before sending" | https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation#user-interaction-model | n/a | yes — delegated | promoted | | elicitation-client-form-review-modify-responses | 2025-11-25 – 2026-07-28 | client | MUST | elicitation | "For form mode, allow users to review and modify their responses before sending" | https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation#user-interaction-model | n/a | yes — delegated; broker `auto`-policy answers bypass review (see Implied) | was SHOULD | diff --git a/pkgs/mcpx/docs/spec/revision-conflicts.md b/pkgs/mcpx/docs/spec/revision-conflicts.md index c9336f7bf9..d3255bdeaf 100644 --- a/pkgs/mcpx/docs/spec/revision-conflicts.md +++ b/pkgs/mcpx/docs/spec/revision-conflicts.md @@ -595,13 +595,13 @@ C21. **Header name casing drift.** 2025-03-26..2025-06-18 `Mcp-Session-Id`; 2025 10. **Client UI obligations promoted SHOULD → MUST** in 2025-11-25: which-server indication, review/modify (form), -- **Disposition:** Peer-settled — verified 2026-11-11 (#1974 sweep, section E): which-server indication is done by the relay itself: `shapeQuestion` (internal/mcpserver/conn.go) prefixes the message with the originator (" (via mcpx) asks: …") when the upstream is not already named, so the surface cannot present an anonymous question. Decline/cancel are distinct end-to-end: an unanswered-because-nobody-was-asked question returns `action: "cancel"`, never "decline" (internal/mcpclient/modern.go `answer`), and a person's decline travels as their own ElicitResult action. Review/modify is the broker surface's shape: schema defaults are pre-populated (`applyDefaults`) and the answerer sets or omits each field before the answer is validated (`checkElicitationAnswer`) and sent. +- **Disposition:** Peer-settled — verified 2026-11-11 (#1974 sweep, section E): which-server indication is done by the relay itself: `shapeQuestion` (internal/mcpserver/conn.go) prefixes the message with the originator ("<server> (via mcpx) asks: …") when the upstream is not already named, so the surface cannot present an anonymous question. Decline/cancel are distinct end-to-end: an unanswered-because-nobody-was-asked question returns `action: "cancel"`, never "decline" (internal/mcpclient/modern.go `answer`), and a person's decline travels as their own ElicitResult action. Review/modify is the broker surface's shape: schema defaults are pre-populated (`applyDefaults`) and the answerer sets or omits each field before the answer is validated (`checkElicitationAnswer`) and sent. decline/cancel options. 2025-06-18 "Applications **SHOULD**: ..." vs 2025-11-25 "MCP clients **MUST**: ..." (https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation#user-interaction-model). 11. **Elicitation request shape.** 2025-06-18 `params: {message, requestedSchema}` — no `mode`, no `default`, enum is -- **Disposition:** Peer-settled — verified 2026-11-11 (#1974 sweep, section E): yes, in `shapeQuestion` (internal/mcpserver/conn.go). Before 2025-11-25: `mode` and `elicitationId` are deleted and the requested schema's enums are downgraded (`downgradeEnumSchemaForOldHost`); a url-mode question never reaches such a peer at all (`Question.Sendable` refuses it, so it stays with the broker). 2026-07-28: `elicitationId` is deleted. 2025-11-25 url mode: `elicitationId` is REQUIRED, and when the upstream omitted one mcpx mints it from the question's own id ("mcpx-") rather than relay a request the client's schema rejects. +- **Disposition:** Peer-settled — verified 2026-11-11 (#1974 sweep, section E): yes, in `shapeQuestion` (internal/mcpserver/conn.go). Before 2025-11-25: `mode` and `elicitationId` are deleted and the requested schema's enums are downgraded (`downgradeEnumSchemaForOldHost`); a url-mode question never reaches such a peer at all (`Question.Sendable` refuses it, so it stays with the broker). 2026-07-28: `elicitationId` is deleted. 2025-11-25 url mode: `elicitationId` is REQUIRED, and when the upstream omitted one mcpx mints it from the question's own id ("mcpx-<id>") rather than relay a request the client's schema rejects. `{enum, enumNames}`. 2025-11-25 adds `mode`, url mode, `elicitationId`, defaults, `oneOf`/array enums, `LegacyTitledEnumSchema`. 2026-07-28 removes `elicitationId`. Sending `mode`/`elicitationId` to a 2025-06-18 peer is sending fields its schema lacks; sending url mode to it is sending a request it cannot represent. diff --git a/pkgs/mcpx/docs/story.md b/pkgs/mcpx/docs/story.md index a593fea9c6..850a7f3de1 100644 --- a/pkgs/mcpx/docs/story.md +++ b/pkgs/mcpx/docs/story.md @@ -3086,7 +3086,7 @@ of the code.* --- -# Summary +## Summary mcpx puts every MCP server behind one command so their schemas stay out of the model's context until something asks for them, and leases a separate server @@ -3097,7 +3097,7 @@ The walk above is the whole interface: `ls` to see what exists, `search` to find a tool, `types` to load one namespace, `run` to do the work. Everything else in this document is detail underneath those four verbs. -# Notes and links +## Notes and links - [`AGENTS.md`](../AGENTS.md) — the instruction file abridged above. This is the text to inject into an agent's session; it is deliberately short, and @@ -3128,7 +3128,7 @@ else in this document is detail underneath those four verbs. documents this pattern as "programmatic tool calling". - [Cloudflare, *Code Mode*](https://blog.cloudflare.com/code-mode/) — where the idea was first argued publicly. -- [The mcpx programme prompt](../../../doc/2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt/2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt.md) — +- [The mcpx programme prompt](https://github.com/developing-today/code/blob/main/doc/2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt/2026-11-23T12-40-29Z_design_mcpx_program_investigation_prompt.md) — the full-investigation prompt for the mcpx programme (tracking issue #13264): design completion and build-out for the gateway, its config system, and its fleet, Atlas and ID integration surface. diff --git a/pkgs/mcpx/internal/settings/registry.go b/pkgs/mcpx/internal/settings/registry.go index cfdb6dfbdd..1f829ae64e 100644 --- a/pkgs/mcpx/internal/settings/registry.go +++ b/pkgs/mcpx/internal/settings/registry.go @@ -459,7 +459,7 @@ func scriptSettings() []Setting { Path: "script.devshell", Commands: runCommands, Kind: KindString, Default: "host", Scope: ScopeClient, Name: "Script environment", - Short: "environment the script runs inside: host, or flake: for a Nix flake devshell", + Short: "environment the script runs inside: host, or `flake:` for a Nix flake devshell", Long: "\"host\" runs the script with the caller's environment, as before. " + "\"flake:\" runs it inside the named flake's devshell via " + "nix develop -c, so the runtime and tools come from the flake. " +