Skip to content

MCP 2026-07-28 (dual-era), registry catalogue, phones — 8.5.0 - #20

Merged
foursecondfivefour merged 1 commit into
mainfrom
arena/36a4d756-nerveforge
Dec 2, 2026
Merged

foursecondfivefour merged 1 commit into
mainfrom
arena/36a4d756-nerveforge

Conversation

@foursecondfivefour

Copy link
Copy Markdown
Owner

What this does

Protocol: 2026-07-28, without dropping the servers that still speak 2025-06-18.

  • Client.open() probes with server/discover. A modern result settles the session; a -32022 naming versions is retried with one of them; 404/-32601 and a bare 400 fall back to initialize. The era then governs the rest of the session: _meta only in the modern one, Mcp-Session-Id only in the legacy one, ping replaced by tools/list where ping no longer exists.
  • Server side answers both: server/discover with supportedVersions, capabilities, instructions, ttlMs, resultType; initialize still returns 2025-06-18.
  • handle_http() returns the statuses the revision makes meaningful: 400 + -32022, 404 + -32601 for modern clients, 400 HeaderMismatch, 202 for notifications.
  • nerveforge --serve --http host:port: stateless Streamable HTTP listener with a Host check and 405 on GET.

Registry: fetched, not compiled in. toolkit/catalog.py turns registry entries into presets and treats the document as untrusted input — known runtimes only, package names only, HTTPS or loopback only, one-line bounded text, env names without values. Blocked entries are shown with the reason rather than hidden. GET /api/mcp/catalogue, POST /api/mcp/catalogue/add (re-reads the registry; never trusts a body), panel search on the MCP screen, and the agent prompt.

Presets and phones. deepwiki, serena-mcp, github-mcp, adb-mcp, ios-mcp added (18 total). ida-pro-mcp stays pinned to mrexodia's build, with the reason in the note. A preset can be a pip package that the bridge installs and runs from its own interpreter. adb and fastboot are separate tool ids; installer.install() runs pip for tools that are Python packages.

Checks

  • unittest discover → 1769 tests, OK (skipped=1)
  • ruff check src/ tests/ scripts/ → clean
  • check_docs.py → 19 pairs; bump_version.py --check and gen_api_doc.py --check → clean
  • Live listener probe: discover 200, unknown method 404 + -32601, bad version 400 + -32022, GET 405, wrong Host 403

Not in this PR

The remaining directions are staged, not done: skill sources ranked by GitHub stars (compared and chosen automatically), and the panel-side updater for skills. Those follow in their own PRs so each one is reviewable.

The protocol half: the bridge now speaks 2026-07-28 (no handshake, no
sessions, version and identity in every request's `_meta`) without dropping
2025-06-18. `Client.open()` probes with `server/discover` and reads the
answer's shape — a modern result, a -32022 naming the versions the server
does support, a 404 saying the endpoint only knows the handshake, or a bare
400 — then settles on an era that the rest of the session honours. The
server side answers both, and `handle_http()` returns the status codes the
revision makes meaningful. `--serve --http host:port` is the self-serve
listener, stateless, with a Host check.

The catalogue half: `toolkit/catalog.py` reads the public MCP registry and
turns each entry into a preset, treating the document as untrusted — only
known runtimes, only package names, only HTTPS or loopback, text flattened,
env values dropped. `GET /api/mcp/catalogue` and `POST /api/mcp/catalogue/add`
expose it, the panel searches from the MCP screen, and the agent prompt says
to look there before writing an ad-hoc client.

Presets: deepwiki, serena-mcp, github-mcp, adb-mcp and ios-mcp added (18
total); ida-pro-mcp stays pinned to mrexodia's build on purpose. A preset can
now be a pip package, which the bridge installs and starts with its own
interpreter. adb and fastboot are separate tool ids, and installer.install()
runs pip for tools that are Python packages.

Version 8.5.0.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@foursecondfivefour
foursecondfivefour force-pushed the arena/36a4d756-nerveforge branch from bb4a3a1 to b0e0c6b Compare December 2, 2026 13:58
@foursecondfivefour
foursecondfivefour merged commit a0eda0a into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant