Title: mcpx docs: compendium structure, migrating the existing design docs, and a catalogue of MCP servers, resources, indexes and projects · Issue #1867 · developing-today/code · GitHub
Open Graph Title: mcpx docs: compendium structure, migrating the existing design docs, and a catalogue of MCP servers, resources, indexes and projects · Issue #1867 · developing-today/code
X Title: mcpx docs: compendium structure, migrating the existing design docs, and a catalogue of MCP servers, resources, indexes and projects · Issue #1867 · developing-today/code
Description: Relocated from dezren39/darwin-nix#152 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/ni...
Open Graph Description: Relocated from dezren39/darwin-nix#152 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 referenc...
X Description: Relocated from dezren39/darwin-nix#152 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 refe...
Opengraph URL: https://github.com/developing-today/code/issues/1867
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx docs: compendium structure, migrating the existing design docs, and a catalogue of MCP servers, resources, indexes and projects","articleBody":"Relocated from dezren39/nix#152 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).\n\nParent: #98\n\n## Summary\n\nDefine the compendium's structure. The compendium is level 3 of the book, the encyclopedia: \"basically everything that is built can be described here in as much detail as you want\". This issue covers:\n\n- mapping every existing mcpx design document to a chapter;\n- how those files become book pages without breaking the repository (in particular the `README.md` -> `docs/story.md` symlink);\n- whether planning documents are published;\n- a catalogue of things outside mcpx: MCP servers, resources, indexes and registries, URLs, and projects.\n\nComparisons and project history are #153. Research findings and the Nix section are #154. Release markers and section history are #150/#151.\n\n## Original notes\n\n> - documentation\n> - make a book using whatever is the most common and simple modern choice\n> - 3 main things, not book sections jsut like levels of detail-\n> - the compendium\n> - basically everything that is built can be described here in as much detail as you want. you don't need to hold back it's an encyclopedia\n> - you dont have to just put strict mcpx things here\n> - document mcp servers, resources, indexes, urls, projects\n\n## Current state\n\nNo book exists. There are 20 markdown files, about 9,170 lines, not counting the plugin's skills (18 and ~8,750 at d0b7e01; #171 and #182 each added one). The architect's inventory, re-checked at 05c78b2, with the compendium reading of each:\n\n| File | Lines | What it is | Proposed compendium chapter | Also used by |\n| --- | --- | --- | --- | --- |\n| `docs/story.md` below `\u003c!-- table-of-contents-marker -->` | ~2,300 | Feature list: 59 key-block entries, `## Proposed`, `# Summary`, `# Notes and links` | **Features** (one page per entry or per `area:` tag) and **Proposed** | L2 excerpts (#146-#148) |\n| `docs/story.md` above the marker | ~300 | the one-prompt walk | not compendium | L1 overview (#157) |\n| `docs/protocol.md` | 384 | every MCP revision, both directions, what is missing | **Protocol** | L2 MCP compatibility, reference matrix |\n| `docs/elicitation.md` | 685 | elicitation design (\"the record of why\", #24) | **Designs** | -- |\n| `docs/exec.md` | 353 | exec, ExecOptions, output shapes, artifacts | **Designs** (depth) | L2 script page |\n| `docs/consumer.md` | 236 | diagnostics, elicitation mcpx raises, recipes, `POST /v1/intent` | **Designs** | L2 |\n| `docs/opencode-plugin.md` | 451 | the plugin, opencode v1 vs v2, per-part reference | **Designs** (harness integration) | L2 plugin pages (#148) |\n| `docs/plugin-discovery.md` | 224 | finding the daemon without the binary, the ladder | **Designs** | L2 plugin config |\n| `docs/landing.md` | 185 | A PR *landing checklist* (items A-J), \"Guesses worth reviewing\", \"Not done, and why\". Not a landing page. | **Decision records** | -- |\n| `docs/proposals.md` | 1,395 | open designs | **Proposed** (if published) | -- |\n| `docs/ideas.md` | 338 | unvetted intake, numbered | **Proposed / intake** (if published) | -- |\n| `docs/dependencies.md` | 91 | Go libs, external programs, network, Nix packaging | **Build and packaging** | L2 binary/install |\n| `docs/container.md` (#182) | 170 | what `Containerfile` builds and deliberately does not; the runtime choice (bun); static-linking measurements (`CGO_ENABLED=0` works); where the 413 MB goes | **Build and packaging** | L2 install page, docker row (#157); #158 OCI channel |\n| `docs/declared-but-unread.md` (#171) | 245 | the settings audit: every declared setting nothing read, what was wired or deleted, and the guard tests that keep it that way | **Decision records** | #96 / #129 (guard tests) |\n| `docs/release-runbook.md` | 173 | how `story.md` stays true, key-block rules | **Maintaining these docs** | #150 input |\n| `ASSESSMENT.md` (root of `pkgs/mcpx`) | 306 | lootbox audit, why Go, what was built | **Comparisons and history** (#153) | -- |\n| `OPENCODE-V2.md` (root) | 249 | opencode v2 code mode vs mcpx, with a 2026-09-29 correction block | **Comparisons** (#153) | -- |\n| `docs/configuration.md`, `docs/parity.md` | 474, 130 | settings prose + table; parity matrix | not compendium: reference (#144) and L2 (#146); the compendium links to them | tests read `configuration.md` (`internal/settings/docs_test.go:20`, `:53`) |\n| `AGENTS.md` (root), `plugin/opencode/README.md` | 109, 355 | agent instruction file; plugin install | not compendium: L2 and the agent twin (#120) | -- |\n\n**Incoming, not on `main` yet** (in flight at 05c78b2; place them when they merge): `docs/compare/` (COMPARE, the living comparison #153 asks for) -> **Comparisons and history**; `docs/decisions/` (SURFACES, decision records for #181's hook-vocabulary, autonomy-dial and capability-boundary collisions) -> **Decision records**, which becomes a directory rather than one file; `docs/spec/` (PROTOCOL) -> **Protocol**. All three are directories, so Approach C's generated navigation should take a directory as a chapter source, not only files.\n\nProposed chapter order:\n\n1. Features\n2. Designs\n3. Decision records\n4. Protocol\n5. Build and packaging\n6. Proposed\n7. Catalogue (below)\n8. Comparisons and history (#153)\n9. Research and findings, including Nix (#154)\n10. Maintaining these docs\n11. Document history (#150)\n\nRule: each source file appears in the navigation exactly once. Other levels link to it or excerpt it; they do not copy it.\n\nConstraints found:\n\n- **`README.md` symlink.** It must stay a symlink to `docs/story.md` (runbook \"Checks\": `test -L README.md && readlink README.md`).\n- **Links that leave `docs/`.** `story.md`'s links are written relative to `docs/`: `../AGENTS.md`, `../ASSESSMENT.md`, `../OPENCODE-V2.md`, `./release-runbook.md`, `../scripts/stress.sh`. `OPENCODE-V2.md` links `./docs/opencode-plugin.md`. Any layout where the book's source root is not `pkgs/mcpx/docs` changes what those links resolve to.\n- **Hard-coded path.** Only one test pins a doc path: `internal/settings/docs_test.go` reads `../../docs/configuration.md`.\n- **Stale facts, copied or not.** `ASSESSMENT.md` and `OPENCODE-V2.md` say mcpx has no Go dependencies (\"dependency-free Go\", \"no dependencies\"). So do `story.md` \"Nix packaging\" (`vendorHash = null`, \"one third-party Go dependency\") and `docs/dependencies.md` (\"**One.**\"). `go.mod` now requires bubbletea, bubbles, lipgloss, yaml.v3 and modernc.org/sqlite, and `package.nix:54` pins a `vendorHash`. The historical documents (#153) should keep their text, clearly as history. The living ones need fixing, and whichever layout is chosen will publish the error unless that happens.\n- **Missing darwin module.** `ASSESSMENT.md`'s recommendation 3 points to `services.mcpx` from `nix/darwin-module.nix`. That file does not exist in `pkgs/mcpx` on `main`.\n\n## Approaches: how existing files become book pages\n\n### Approach A -- move the files under a book source directory (least recommended)\n\nFor example `pkgs/mcpx/book/src/...`, with `SUMMARY.md` or nav written by hand.\n\n- Every relative link in `story.md` and the other docs breaks, or has to be rewritten.\n- `internal/settings/docs_test.go` breaks.\n- The `README.md` symlink has to be repointed, and the runbook's check changed.\n- Contributors and agents who know `docs/` must learn a second location.\n- `git log` needs `--follow` to see past the move.\n\nAll of this is cost with no gain over C.\n\n### Approach B -- keep the files in place and include them from stub pages\n\nA book source directory holds one stub per page containing an include: mdBook `{{#include ../../docs/exec.md}}`, MkDocs `include-markdown` or `pymdownx.snippets`, Hugo `readFile` in a shortcode.\n\n- The repository layout, tests and the README symlink are untouched.\n- Links inside an included file resolve relative to the *stub*, not the original, so `../AGENTS.md` breaks in the book while working on GitHub. A link-rewriting step is needed anyway.\n- Every new doc needs a new stub, and stubs drift from docs, so a check is needed there too.\n- Anchors from a file included twice collide.\n- mdBook's `{{#include file:anchor}}` can pull *part* of a file. That is how the above-marker story could feed L1 and the feature list could feed the compendium from one file.\n\n### Approach C -- the repository docs are the book source; navigation is generated (recommended)\n\n- **Source root.** Point the generator's source root at `pkgs/mcpx/docs` (mdBook `src = \"docs\"`, MkDocs `docs_dir`, Hugo content mount), so files are rendered where they are.\n- **Navigation.** `SUMMARY.md` or nav is generated from a small manifest listing file -> chapter -> level. Front matter would also work, but it adds visible noise on GitHub.\n- **Root-level documents.** `ASSESSMENT.md` and `OPENCODE-V2.md` move into `docs/`. They are linked from `story.md:2593-2595` and `proposals.md:812`, and named in prose in `elicitation.md` and `opencode-plugin.md`, so this is a small link fix. Alternatively they stay put and come in via the one include each. `AGENTS.md` stays at the root, because it is the agent instruction file and `AGENTS.md` is the conventional name. The book includes it.\n- **`story.md`.** It stays one file, so the symlinked README is still the whole story on GitHub. The build-time preprocessor (#151's program, or a sibling) splits it at section IDs into per-entry compendium pages, and the above-marker walk becomes the L1 overview source (#157). The split pages are generated, not committed.\n- **Links.** Links are fixed *at source* so they work on both GitHub and the site. Where a link must leave the source root (to `scripts/stress.sh`, say), the preprocessor rewrites it to the GitHub blob URL.\n\nThis keeps one home for every document, needs no stubs, keeps the tests and the symlink, and lets the navigation follow the three levels instead of the directory layout. It does need #117's generator to allow a source root that also contains non-book files, and a manifest check. Docs checks run in CI; see the testing trackers under #91 (CI pipeline #95, integration/environments #97).\n\n## Planning documents: publish or not\n\n- **`docs/proposals.md` and `story.md`'s `## Proposed`.** Publish, under a clearly badged **Proposed** chapter (status `proposed` per the runbook). A reader deciding whether mcpx will do something next needs this.\n- **`docs/ideas.md`.** It describes itself as \"Unvetted ... Some of it is probably wrong\". It also anticipates becoming \"an index of links\" once issues exist, and they now do (#89 onwards). Options:\n - do not publish it;\n - publish it as raw intake, excluded from search and the agent twin;\n - convert it to an index of issues and publish that.\n\n Suggested: the index-of-issues version. See the open questions.\n- **`docs/landing.md`.** Publish as a decision record. Its \"Guesses worth reviewing\" and \"Not done, and why\" sections are exactly the \"why\" an encyclopedia keeps.\n\n## The catalogue: servers, resources, indexes, URLs, projects\n\nNote 87 says the compendium need not be strictly about mcpx. Note 88 names the catalogue.\n\n**MCP servers.**\n\n- The only server list tracked in `~/.config/nix` is `lootbox.config.json`. It has seven entries:\n - `codebase-memory` (`codebase-memory-mcp`);\n - `codedb` (`codedb mcp`, packaged in `pkgs/codedb`);\n - `fff-nix`, `fff-worktree` and `fff`: three `fff-mcp` processes, each indexing one root;\n - `chrome-devtools` (`chrome-devtools-mcp`, vendored in `.lootbox/flake.nix:43`);\n - `context7`, via `mcp-remote` to `https://mcp.context7.com/mcp`.\n- `systemPackages.nix:241-243` installs `codedb`, `codebase-memory-mcp` and `fff-mcp`.\n- No mcpx config is tracked. `ASSESSMENT.md`'s step 2 (`~/.config/nix/mcpx.json`) has not happened on `main`. The catalogue's first entries are these servers: what each is, why it is configured, its mode (`chrome-devtools` is the `session`-mode case), and quirks (context7 no longer needs the `mcp-remote` shim under mcpx, per `ASSESSMENT.md`).\n\n**Indexes and registries.**\n\n- The official MCP Registry, `registry.modelcontextprotocol.io`, is what `mcpx registry search|add` uses. `story.md` \"Finding servers that are not configured yet\" / \"Which registry\" gives the reasons: it is unauthenticated, returns real data, and publishes an OpenAPI specification that subregistries implement. `registry.url` points it anywhere.\n- HAPI is the recorded rejection: not open source, public API 404.\n- \"Indexes\" may also mean the code indexes the configured servers maintain (fff, codedb, codebase-memory). That is an open question.\n\n**Resources.** Either MCP *resources* (the protocol feature, `mcpx resources`), or reading material. Probably both: a generated list of the resources the configured servers expose, and a curated links chapter.\n\n**URLs.** A curated, dated list. Seeds from `story.md` \"Notes and links\":\n\n- the MCP spec;\n- the client best-practices guide (\"programmatic tool calling\");\n- Cloudflare's *Code Mode* post.\n\n**Projects.** The comparables (#153 owns the comparison; the catalogue lists them):\n\n- `jx-codes/lootbox`;\n- `mKeRix/toolscript`;\n- `tmustier/code-mode-mcp`;\n- `assimelha/cmcp`;\n- `mcp-use`;\n- `portofcontext/pctx`;\n- opencode code mode.\n\n### Generated or written?\n\n- **A -- hand-written entries only (least recommended).** Tool counts, descriptions and versions rot on the first server upgrade, and nothing notices.\n- **B -- generated from `mcpx registry search`.** `mcpx --json registry search` exists (`internal/cli/registry.go:42`), but mirroring a public registry adds nothing the registry does not already serve, dates the snapshot, and makes the build depend on the network.\n- **C -- curated entries, generated facts (recommended).** A hand-written list says *which* servers, projects and URLs are in the catalogue and *why*. The facts per server come from mcpx:\n - `mcpx --json ls` for tool counts;\n - `mcpx types \u003cns>` / `mcpx schema --format json-schema --ns \u003cns>` for the tool list;\n - `mcpx --json registry search \u003cname>` for publisher, version and remote/package.\n\n The facts are captured into a committed snapshot by a refresh script, not fetched at build time, because CI should not start seven MCP servers or call a registry to render docs. A drift check compares the snapshot with a fresh run when servers are available.\n\n## Open questions\n\n1. Split `story.md` into per-entry pages at build time, or render the feature list as one long page? The runbook's \"nobody reads past the part that answers their question\" works for one page with good anchors too.\n2. Move `ASSESSMENT.md` and `OPENCODE-V2.md` into `docs/`, or include them from the root?\n3. `ideas.md`: unpublished, raw, or an index of issues?\n4. Which \"resources\" and which \"indexes\" does note 88 mean (MCP concepts, reading material, code indexes)? The draft covers all of them.\n5. Catalogue scope: only the servers this machine uses, or also servers mcpx was tested against (the Swagger petstore in `OPENCODE-V2.md`, `io.github.microsoft/playwright-mcp` in `story.md`)?\n6. Do stale facts in living documents (`dependencies.md`, the `story.md` \"Nix packaging\" entry) get fixed before the compendium publishes them? That is probably a separate small fix, not part of this issue.\n\n## Ease · Impact · Related\n\n**Ease** L · **Impact** med · **Depends on / related**: #117 (generator source root, include/preprocessor support), #150 and #151 (section IDs used for splitting), #153 (comparisons and history chapters), #154 (research and Nix chapters), #157 (overview from the above-marker story), #146-#148 (L2 pages that excerpt these docs), #144 (reference owns `configuration.md` / `parity.md`), #120 (what the agent twin includes), #24 (elicitation design kept as record).\n\nSecurity/auth deferred; see tracker.\n\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:09:07Z","url":"https://github.com/developing-today/code/issues/1867"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:175984c9-b426-c9db-f17b-43f7f687716f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D46E:252852:30B0C5:3FC566:6B0616BF |
| html-safe-nonce | 490676d668017dd88716c5784f61af9581c21a7b92a929d9fa6a4b130db59079 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDZFOjI1Mjg1MjozMEIwQzU6M0ZDNTY2OjZCMDYxNkJGIiwidmlzaXRvcl9pZCI6IjkzODczMzMxMjcxMTk4ODkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e9d6586b8643ef4b474940359395434130cde417938eeba869ff2017a702c3f |
| hovercard-subject-tag | issue:6088398979 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1867/issue_layout |
| twitter:image | https://opengraph.githubassets.com/997caf55cb1670d52d67ccbdf5253574ad4c05c189a6b67ae909582f3a5af3a0/developing-today/code/issues/1867 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/997caf55cb1670d52d67ccbdf5253574ad4c05c189a6b67ae909582f3a5af3a0/developing-today/code/issues/1867 |
| og:image:alt | Relocated from dezren39/darwin-nix#152 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 referenc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width