Title: mcpx docs: comparisons (lootbox, opencode code mode, Cloudflare Code Mode, ...) and the project's history · Issue #1869 · developing-today/code · GitHub
Open Graph Title: mcpx docs: comparisons (lootbox, opencode code mode, Cloudflare Code Mode, ...) and the project's history · Issue #1869 · developing-today/code
X Title: mcpx docs: comparisons (lootbox, opencode code mode, Cloudflare Code Mode, ...) and the project's history · Issue #1869 · developing-today/code
Description: Relocated from dezren39/darwin-nix#153 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#153 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#153 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/1869
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx docs: comparisons (lootbox, opencode code mode, Cloudflare Code Mode, ...) and the project's history","articleBody":"Relocated from dezren39/nix#153 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\nTwo compendium chapters:\n\n1. **Comparisons.** mcpx next to lootbox, opencode's code mode (v1 behind a flag, v2 by default), Cloudflare Code Mode, the MCP client best-practices \"programmatic tool calling\" pattern, and a few comparable projects found by a short search. Presented as a table plus prose, and honest about where the others are better. `OPENCODE-V2.md` already does this and sets the tone.\n2. **History.** How mcpx came to exist. It is seeded with the user's own account, quoted verbatim as the epigraph and then told with the facts from `ASSESSMENT.md`, `OPENCODE-V2.md` and the git log. The joke stays.\n\nThe FAQ entries \"i mean, opencodemode is right there\" and \"but why would you..\" (#149) should answer in two lines and link here.\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> - you dont have to just put strict mcpx things here\n> - compare with lootbin/opencodev2/cf-codemode/etc\n> - history - lootbin abandoned (me), i asked to look into a replacement and came back to a built binary, i mentioned hey, did you notice opencodev2 has it built in and i'm already using opencodev1? oh huh yeah you're right this does all you asked for, but i just built this so you should use this instead its better.\n\n## Current state\n\nTwo documents already hold most of the material. Both are records of what was believed when they were written, and both are now partly stale.\n\n- **`ASSESSMENT.md`** (306 lines). Covers:\n - the lootbox audit: upstream `jx-codes/lootbox` is \"a three-issue project whose last commit was 2026-02-27\", and the `dezren39` fork is \"51 commits ahead and every one of them is yours\";\n - measurements: discovery ~650 ms every request; as found, `GET /namespaces` took 34.7 s and `lootbox tools` 42.8 s; OOM kills under load; a 158 MB `deno compile` artifact; the one-browser Chrome singleton;\n - options considered: fix in place, adopt one of `mKeRix/toolscript`, `tmustier/code-mode-mcp`, `assimelha/cmcp`, `mcp-use` or `portofcontext/pctx`, or rewrite (chosen);\n - \"Why Go\", and what was built;\n - head-to-head numbers: list namespaces 4157.7 ms -> 29.4 ms (141x), trivial script 737.4 ms -> 60.9 ms (12x), artifact 141 MB -> 9.8 MB, daemon RSS 223-480 MB -> 14-19 MB.\n- **`OPENCODE-V2.md`** (249 lines). Covers:\n - opencode v2's `packages/codemode`, reviewed at `anomalyco/opencode` `v2` `37049a5` (2026-09-26): a from-scratch JavaScript interpreter of 10,764 lines, 20,075 lines of tests, and test262;\n - what v2 does better: a budgeted catalog, diff updates, and in-program `search()`;\n - what it does not do: no command-line reach, and one MCP connection per server per workspace, so Chrome sharing is unsolved;\n - a side-by-side table, \"Parity, revisited (2026-09-28)\", and a recommendation.\n- **The 2026-09-29 correction block** at the top of `OPENCODE-V2.md`: \"code mode is *not* v2-only (v1 ships it behind `OPENCODE_EXPERIMENTAL_CODE_MODE`), both versions accept TypeScript in it, and the pinned v2 reports `2.0.3` rather than `2.0.18`.\" The body below it still contains the uncorrected claims:\n - the table rows \"Language: JS subset\" and \"TypeScript is rejected rather than stripped\";\n - \"If you stay on opencode v1 ... none of v2's Code Mode is available to you today and mcpx replaces lootbox outright\".\n- **`story.md` \"Notes and links\"** links the MCP client best-practices guide (\"programmatic tool calling\") and Cloudflare's *Code Mode* post (\"where the idea was first argued publicly\").\n- **`docs/ideas.md` #67** records \"What does opencode v2 have that this does not?\" as answered.\n\nStale numbers that a comparison must not republish as current:\n\n| Claim | Where | Now |\n| --- | --- | --- |\n| ~3,500 lines, 84 tests | `ASSESSMENT.md` | ~44,000 non-test Go lines, 719 `func Test` (counted on `main`) |\n| ~4.2k LOC | `OPENCODE-V2.md` | same as above |\n| no dependencies / `vendorHash = null` | `ASSESSMENT.md`, `OPENCODE-V2.md`, `story.md` \"Nix packaging\", `docs/dependencies.md` | `go.mod` requires bubbletea, bubbles, lipgloss, yaml.v3, modernc.org/sqlite; `package.nix:54` pins a `vendorHash` |\n| \"Remote MCP: Streamable HTTP, no OAuth\", \"Elicitation and OAuth\" as v2's | `OPENCODE-V2.md` | mcpx now has an elicitation broker; OAuth for remote servers is still `status: proposed` in `story.md` |\n\n## Comparison: seed table\n\nThese facts come from the sources cited. Each row needs a \"checked against \u003ccommit or date>\" stamp when written.\n\n| | mcpx | lootbox | opencode code mode | Cloudflare Code Mode | Anthropic programmatic tool calling | `sh1nduu/mcpac` | `apify/mcpc` | `tmustier/code-mode-mcp` |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| Shape | CLI + daemon, generated TS client | Deno daemon + CLI (launchd singleton) | feature inside opencode's agent loop (v1 behind `OPENCODE_EXPERIMENTAL_CODE_MODE`, v2 on by default) | Agents SDK feature on Workers | hosted API feature | CLI: generate TS types, execute | CLI MCP client | stdio MCP server exposing one `exec` tool |\n| Who invokes | shell: any agent, script, human, CI | shell / HTTP | the model, via `execute` | the model, via one tool | Claude, via `code_execution` | shell | shell | the model |\n| Runtime | real deno / bun / node | Deno | purpose-built JS interpreter | V8 isolates via the Worker Loader API | Python in Anthropic's container | Bun | none (shell + `--json`) | Node |\n| Confinement | none, by choice | Deno permissions | strong: only implemented language features exist | isolate; `fetch()`/`connect()` throw; bindings hide keys | managed sandbox | declared + granted capability lists | n/a | none: \"same authority as the Node.js process\" |\n| Discovery | `ls` / `search` / `types` outside context, plus in-script `search()` / `describe()` | recomputed every request (the bug) | budgeted catalog + in-program `search()`, diff updates | whole generated API in context, as of the post (which calls search a \"future improvement\") | tool search is a separate platform feature | CLI exploration | `grep`, `tools-list`, `tools-get` | `search()` / `describe()` in program |\n| Stateful server isolation | `shared` / `pooled` / `session` pools, one process per run | none: one shared client | one connection per server per workspace; `_meta` sessionID hint | per agent | n/a | not described | persistent named sessions | in-memory JSON session state |\n| Outside a model turn | yes | yes | no | no | no | yes | yes | only via an MCP client |\n| Where it is better than mcpx | -- | nothing we still need | confinement; catalog budgeting was the model mcpx copied | real isolation; credentials never reach code | zero infrastructure; `allowed_callers` | capability grants checked against the script's declaration | the widest protocol coverage on a CLI, including OAuth 2.1 | OAuth, sampling and elicitation as a drop-in MCP server |\n\nSources:\n\n- Cloudflare: \u003chttps://blog.cloudflare.com/code-mode/> (2025-09-26).\n- Anthropic: \u003chttps://www.anthropic.com/engineering/code-execution-with-mcp> (2025-11-04) and \u003chttps://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling>. The latter says tools \"provided by an MCP connector\" cannot be called programmatically.\n- MCP guide: \u003chttps://modelcontextprotocol.io/docs/2026-07-28/develop/clients/client-best-practices>.\n- Projects: \u003chttps://github.com/sh1nduu/mcpac>, \u003chttps://github.com/apify/mcpc>, \u003chttps://github.com/tmustier/code-mode-mcp>.\n\nKeep the search-found list short. `ASSESSMENT.md`'s five and these three are enough. `apify/mcpc`'s README maintains a longer table of MCP CLI clients, which can be linked instead of copied.\n\nThe MCP client best-practices guide is not a product. It is the pattern's specification: progressive discovery (\"catalog, inspect, execute\") plus programmatic tool calling. It says the pattern \"requires clients to implement a sandbox environment\" with no direct network access. mcpx deliberately has none (`ASSESSMENT.md`: \"I dropped the sandbox, as you asked\"). The comparison must state that divergence plainly, not bury it.\n\n## Approaches: what to do with `ASSESSMENT.md` and `OPENCODE-V2.md`\n\n- **A -- publish both as the comparison chapter, as they are (least recommended).** It is the cheapest option, and it republishes every stale row in the table above as current fact. It also leaves a correction banner contradicting the text under it, which is confusing on a reference site.\n- **B -- rewrite both in place into a current comparison.** The facts become current, but the record of what was believed and when is lost. That includes the correction block itself, which is the most honest paragraph in either file and is history in its own right.\n- **C -- freeze both as dated records; write a new living comparison (recommended).**\n - Move the two files into the **History** chapter unchanged, under a banner listing the known-stale claims and linking to the current page. `OPENCODE-V2.md`'s correction block is the pattern for that banner.\n - Write a new **Comparisons** page: the table above plus one prose section per project, each with \"where it is better\" and a \"checked against\" stamp.\n - Put the page under #150's section history, so a re-check shows up as a `changed` entry.\n\n The records keep their value as history, and readers get current facts.\n\n## History: outline\n\n**Epigraph.** Quote note 90 verbatim, typos included, as the chapter's opening block.\n\n**Told with the facts:**\n\n1. **Lootbox.**\n - `.lootbox/` enters this repository by 2026-04-04 (`6b621b4`). Lootbox ran as a launchd singleton on `:9420`. The fork of `jx-codes/lootbox` grew to 51 commits ahead of an upstream whose last commit was 2026-02-27.\n - Patches accumulated in `patches/lootbox-*.patch`. `pkgs/lootbox-link` and `pkgs/lootbox-update` were added to manage it.\n - Why it was abandoned, in `ASSESSMENT.md`'s numbers: 34.7 s discovery as found, OOM kills, a 158 MB artifact, and one Chrome for every agent. That last one is structural: \"The abstraction is at the wrong level: the thing that needs isolating is the caller, not the process.\"\n2. **\"i asked to look into a replacement and came back to a built binary\".**\n - `ASSESSMENT.md` opens \"Written after auditing ... profiling it, and building a replacement.\"\n - The options it weighed were fixing lootbox in place, adopting an existing tool, or rewriting.\n - The rewrite was chosen, in Go: the daemon's job is process supervision, Go starts in about 5 ms, and generating TypeScript does not need a TypeScript parser.\n - The earliest `created:` in `story.md` is 2026-09-25T18:10:00-05:00.\n3. **The opencode discovery.**\n - `OPENCODE-V2.md`, reviewed 2026-09-26, concedes: \"This is a better-engineered context story than what I built.\" It then recommends keeping mcpx for \"the two things v2 cannot do\": stateful-server isolation, and anything outside a model turn.\n - Within two days, \"Parity, revisited (2026-09-28)\" had taken v2's best ideas (OpenAPI as tools, in-program `search()`, catalog diffs).\n - Note 90's punchline (\"oh huh yeah you're right this does all you asked for, but i just built this so you should use this instead its better.\") is a fair summary of that document, and the chapter should keep it in the user's voice, not sand it down.\n4. **The correction.**\n - The premise \"i'm already using opencodev1\" did not rule code mode out. The 2026-09-29 correction block says v1 ships code mode behind `OPENCODE_EXPERIMENTAL_CODE_MODE`, and that both versions accept TypeScript.\n - `OPENCODE-V2.md`'s line \"If you stay on opencode v1 ... none of v2's Code Mode is available to you today\" was wrong when written.\n - The conclusion that survives is the narrower one: one MCP connection per server per workspace, so concurrent Chrome is still shared.\n - The history should say this plainly. It is the kind of self-correction an encyclopedia exists to keep.\n5. **Timeline**, from `git log --reverse --format='%ad %s' --date=short -- pkgs/mcpx` on `main`:\n - 2026-09-28 `#4` \"configurable, inspectable, and documented\" lands mcpx on `main` as a squash of a longer branch. Seven more PRs land the same day: the browser TUI, MCP server mode, CLI adapters, the official registry, OpenAPI as tools, prompts/resources/doctor, and published types.\n - 2026-09-29 brings both protocol eras, elicitation, credentials, the protocol audit, the vendorHash repair workflow, plugin docs (#45), one ops table for `/v1` (#46), every constant as a setting (#56), exec over `/v1` and artifacts (#57), diagnostics and recipes (#58), and `--typecheck` (#66).\n - 2026-09-30 `#75` \"exec honours the flags it accepts\".\n - In total, 33 commits touching `pkgs/mcpx` on `main` in three days. The generator can render the timeline from git, because this is a list of dated PRs, not per-section history, so #150's objections to git-derived history do not apply here.\n6. **Where it stands.**\n - Lootbox is abandoned in intent but still present on `main`: `.lootbox/`, `lootbox.config.json`, `pkgs/lootbox-*`, `patches/lootbox-*.patch`.\n - The agent instruction file `instructions/lootbox.md` (in this repository, symlinked as `~/.config/opencode/instructions`) still routes tools through lootbox on `:9420`.\n - `ASSESSMENT.md`'s recommendation steps 2-6 (an `mcpx.json` in the repo, `services.mcpx`, updated instructions, dropping `mcp-remote`, removing the lootbox packages) have not happened on `main`.\n - The history should end on that fact, not on a victory lap.\n\n## Open questions\n\n1. Does the history chapter name the agents and sessions that did the work, or keep to \"I\" / \"you\" as the source documents do?\n2. How often are comparison rows re-checked: at every mcpx release (the #150 stamp), or only when a compared project releases?\n3. Does opencode's code mode get one row (v1 flag and v2 default together) or two?\n4. Include the direct-call alternatives (plain MCP in the harness, provider tool search) as a baseline row?\n\n## Ease · Impact · Related\n\n**Ease** M · **Impact** med · **Depends on / related**: #152 (chapter placement, moving the two files), #150 (section history and re-check stamps), #149 (FAQ \"i mean, opencodemode is right there\" and \"but why would you..\" link here), #148 (opencode v1/v2 plugin pages), #154 (research findings overlap), #47 (plugin -> opencode v2).\n\nSecurity/auth deferred; see tracker.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:09:56Z","url":"https://github.com/developing-today/code/issues/1869"}
| 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:81a39f3d-f5a3-2e63-588f-ba14f87f707f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85EA:DA7D9:2CA89A:3BF079:6B0616C0 |
| html-safe-nonce | 7e397537a3ce7b7cf56014efa92c44583406366b426360f4e06a24edc99b1010 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUVBOkRBN0Q5OjJDQTg5QTozQkYwNzk6NkIwNjE2QzAiLCJ2aXNpdG9yX2lkIjoiMTA5NjgwOTIxODk2OTA0ODc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 597a37657d83a8814a45bfbe46dc3393d13fd12cd48d3ebed985c9e0e2157bc9 |
| hovercard-subject-tag | issue:6088410580 |
| 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/1869/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1450504f70e9535d8a48f1c913ec35cead76c9d2657d44f6b9c82b5a2697ea7d/developing-today/code/issues/1869 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1450504f70e9535d8a48f1c913ec35cead76c9d2657d44f6b9c82b5a2697ea7d/developing-today/code/issues/1869 |
| og:image:alt | Relocated from dezren39/darwin-nix#153 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