Title: mcpx: input_required for a stateless 2026 host — a busy loop, a session binding 2026 removed, and flattened results · Issue #1920 · developing-today/code · GitHub
Open Graph Title: mcpx: input_required for a stateless 2026 host — a busy loop, a session binding 2026 removed, and flattened results · Issue #1920 · developing-today/code
X Title: mcpx: input_required for a stateless 2026 host — a busy loop, a session binding 2026 removed, and flattened results · Issue #1920 · developing-today/code
Description: Relocated from dezren39/darwin-nix#201 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#201 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#201 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/1920
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: input_required for a stateless 2026 host — a busy loop, a session binding 2026 removed, and flattened results","articleBody":"Relocated from dezren39/nix#201 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: #177\n\n## Summary\n\nA conformant 2026-07-28 client has no `Mcp-Session-Id`, so mcpx cannot bind a `requestState` to it. `docs/protocol.md` §3.3 says such a question then stays with the broker. What happens instead: the ask loop `continue`s without waiting, counts a round per iteration, and after `proto.askRounds` (8) abandons the upstream call and answers `-32603 \"tools/call was still asking for input after 8 rounds\"`, in about 40 ms. With a session (taken from `server/discover`) it works, but the token binds call, session and expiry rather than the principal and the method/argument digest the specification recommends, and a state presented on a different call was not rejected. The final result of any call that asked is flattened to one text block, `elicitationId` leaks to 2026 hosts, and the \"(via mcpx)\" originator prefix is applied only on the legacy path.\n\nFound while writing the comparison register (`pkgs/mcpx/docs/compare/`) and checked against the code at `05c78b2`. Each row below links its register entry, which carries the value, effort, risk, the specification text and every source.\n\n## Register rows\n\n| row | difference | mcpx @ 05c78b2 | effort |\n| --- | --- | --- | --- |\n| [ELI-17](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/elicitation.md#eli-17-stateless-2026-host-plus-eliciting-upstream) | Stateless 2026 host plus eliciting upstream | ✗ — `-32603` after 8 busy rounds (wire M1) | M |\n| [MRTR-08](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/mrtr.md#mrtr-08-requeststate-should-bind-the-authenticated-principal) | `requestState` SHOULD bind the authenticated principal | ✗ — bound to `Mcp-Session-Id`, which 2026 removed | M |\n| [MRTR-10](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/mrtr.md#mrtr-10-requeststate-should-identify-method-and-parameters-digest) | `requestState` SHOULD identify method and parameters digest | ✗ — call id only; retry params ignored | S |\n| [MRTR-19](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/mrtr.md#mrtr-19-results-returned-through-mrtr-keep-their-full-shape) | Results returned through MRTR keep their full shape | ✗ — flattened to one text block | M |\n| [ELI-10](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/elicitation.md#eli-10-elicitationid-added-then-removed) | `elicitationId` added, then removed | partial — stripped for old hosts, leaked to 2026 hosts | S |\n| [ELI-18](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/elicitation.md#eli-18-naming-the-originating-server-in-a-relayed-question) | Naming the originating server in a relayed question | partial — legacy prefixed \"(via mcpx)\"; 2026 path raw | S |\n\n## Evidence\n\n- Loop: `internal/mcpserver/ask.go:195-209` (`continue` at `:207` skips the wait at `:181-187`); `canAsk` is true for any modern peer regardless of binding (`internal/mcpserver/ask.go:75`).\n- Binding: `internal/mcpserver/state.go:47-51` (`{c, b, e}`), `internal/mcpserver/ask.go:300-306`.\n- Flattening: `internal/mcpserver/ask.go:268-296`.\n- Wire: M1 (no session → `-32603`), M2–M3 (with session → works), M4 (retry without the header → \"belongs to another session\").\n- Spec: `2026-07-28/basic/patterns/mrtr.mdx:232-243` (principal, TTL, method + params digest).\n\n## What to do\n\n- Bind `requestState` to the request: method, a digest of the arguments, the principal when there is one, and the expiry. Keep the HMAC. Stop depending on `Mcp-Session-Id` for modern peers.\n- When no state can be minted, return the question to the broker and wait, as the comment says, instead of spinning; do not count a round that asked nothing.\n- Render the final result in the method's full shape (content blocks, `structuredContent`, `isError`), not text.\n- Strip 2025-11-25-only fields (`elicitationId`) for 2026 hosts and apply the originator prefix on both paths.\n- A test that drives a sessionless 2026 client through an eliciting upstream and fails on today's behaviour.\n\n## Ease · Impact · Related\n\n**Ease** M · **Impact** high · **Related**: #177, #77 (inline answers from scripts), sibling issue for 2026 serving; `docs/compare/input-required.md`\n\n## Acceptance criteria\n\n- [ ] A stateless 2026 host driving an eliciting upstream no longer busy-loops: the ask loop waits for the broker-held question (per `docs/protocol.md` §3.3) instead of burning `proto.askRounds` in ~40 ms and answering `-32603`.\n- [ ] The request-state token binds the principal and the method/argument digest the specification recommends, and state presented on a different call is rejected.\n- [ ] A call that asked returns its real final result (not one flattened text block), `elicitationId` does not leak to 2026 hosts, and the \"(via mcpx)\" originator prefix is consistent across legacy and modern paths.\n- [ ] Tests cover the stateless-host elicitation path end-to-end; tests pass in CI.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:30:58Z","url":"https://github.com/developing-today/code/issues/1920"}
| 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:13b57475-84ff-e2cb-dfa0-0120c6800562 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF58:1619FB:6CE2AE:9173E2:6B062CF1 |
| html-safe-nonce | ec41356288bd1a696bf42aaf568ad3a7421a4d8f5ca45900d3e3fc02d5d54e46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjU4OjE2MTlGQjo2Q0UyQUU6OTE3M0UyOjZCMDYyQ0YxIiwidmlzaXRvcl9pZCI6IjIxMzExMjg0NjU4NzIwMDYzODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ef7577fadd56fdd3e0f0100c990db173924fc2de5fb4042b33c2335735a8b800 |
| hovercard-subject-tag | issue:6088699988 |
| 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/1920/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ddb58d08d4edb0d07fe5a0b5410b26e35f3a915ed24c95d5dd9608d0ee3ea2fb/developing-today/code/issues/1920 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ddb58d08d4edb0d07fe5a0b5410b26e35f3a915ed24c95d5dd9608d0ee3ea2fb/developing-today/code/issues/1920 |
| og:image:alt | Relocated from dezren39/darwin-nix#201 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 | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| 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 | 494ea0bb1e0feef734a83e2628697647755e8864 |
| 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