GeezerVison is showing github.com — mcpx client: cannot reach a conformant 2026-07-28 server · Issue #1918 · developing-today/code
mcpx client: cannot reach a conformant 2026-07-28 server #1918Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)bugSomething isn't workingeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a human DescriptionRelocated from dezren39/darwin-nix#200 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).
Parent: #177
Summary
Every modern-only upstream fails. mcpx probes legacy first; a modern-only server answers initialize with -32022, which the client treats as fatal instead of trying server/discover. If discovery is reached, it reads protocolVersions where the schema has supportedVersions (tracked with the server half in the sibling issue). Past that: no Mcp-Method/Mcp-Name/Mcp-Param-* headers (a conformant HTTP server answers 400), a session id echoed to modern servers, legacy-shaped capabilities in _meta (roots.listChanged, no extensions, no url elicitation), the removed logging/setLevel sent after connect, "" treated as the end of a cursor, and no subscriptions/listen for list changes. ttlMs on upstream lists is ignored.
Found 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.
Register rows
| row |
difference |
mcpx @ 05c78b2 |
effort |
| LV-28 |
Which probe errors mean "modern server" |
✗ — only a -32022 substring counts |
S |
| LV-29 |
Modern-only server refusing initialize; mcpx client aborts |
✗ — client aborts on -32022; never tries discover |
S |
| TR-30 |
Client sends a session id to modern servers |
✗ — captured from any response, echoed always |
S |
| TR-39 |
Mirror x-mcp-header arguments into Mcp-Param-{Name} |
✗ — not implemented |
M |
| TOOL-09 |
x-mcp-header on inputSchema properties; HTTP clients drop invalid tools |
✗ — neither validated nor mirrored |
M |
| CAP-03 |
client roots.listChanged removed in 2026 |
✗ — listChanged:false sent to 2026 upstreams too |
S |
| CAP-09 |
client elicitation.url |
partial — host gate correct; never declared upstream |
M |
| CAP-11 |
client extensions map |
✗ — never declared, so no upstream extension is reachable |
S |
| LOG-02 |
Per-request _meta io.modelcontextprotocol/logLevel |
✗ — never sent upstream, never read from hosts |
S |
| LOG-07 |
mcpx client sends setLevel info to every logging upstream |
✗ — removed method sent to modern upstreams; level hard-coded |
S |
| PG-02 |
"" is a valid cursor and MUST NOT end the list |
✗ — client stops paging on "" |
S |
| PG-13 |
mcpx's upstream schema cache ignores ttlMs |
✗ — cached until list_changed or refresh, persisted to disk |
S |
| SUB-15 |
Client subscribes upstream for changes |
✗ — never listens, never subscribes upstream |
M |
Evidence
-32022 abort: internal/mcpclient/client.go:244-248; era detection by substring: internal/mcpclient/client.go:329-331.
- Client capabilities:
internal/mcpclient/modern.go:46-58 (roots: {listChanged:false}, bare elicitation: {}, no extensions).
setLevel to every upstream: internal/pool/pool.go:414-415, internal/daemon/hooks.go:29.
- Cursor:
internal/mcpclient/client.go:744.
What to do
- Treat
-32022 (and any recognised modern error) from initialize as a modern server and retry with server/discover; the probe order itself is being changed by the protocol work.
- Send
Mcp-Method on every POST, Mcp-Name for tools/call/resources/read/prompts/get, and mirror x-mcp-header arguments into Mcp-Param-*; drop tools whose x-mcp-header is invalid.
- Do not send a session id to a modern server. Build
_meta capabilities in the 2026 shape (roots: {}, elicitation: {form, url}, extensions when implemented).
- Per-request
logLevel instead of logging/setLevel for modern upstreams; decode nextCursor as a pointer; honour ttlMs in the schema cache; open subscriptions/listen for list changes.
Ease · Impact · Related
Ease M · Impact high · Related: #177, sibling issue for the server half (discover field names), #77
Acceptance criteria
- A modern-only upstream is reachable: an
initialize refusal (-32022) is treated as "try server/discover", not as fatal.
- Discovery reads the schema's
supportedVersions field (with the server half tracked in the sibling issue 🎨 Palette: Add missing ARIA labels to inputs and buttons #199), and modern requests carry the required Mcp-Method / Mcp-Name / Mcp-Param-* headers.
- No session id is echoed to modern servers;
_meta capabilities are modern-shaped (extensions, url elicitation; no legacy roots.listChanged shape); the removed logging/setLevel is not sent after connect.
- Cursor handling treats only a genuinely absent cursor as the end, and
subscriptions/listen is used for list changes; ttlMs on upstream lists is honoured.
- A conformance test against a modern-only fixture server passes in CI.
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 History carried over from dezren39/darwin-nix#200 (verbatim, oldest first):
@dezren39 · 2026-09-30T20:57:38Z
Headline fixed by #224 (discover shape) and #239 (client conformance: headers, resultType, listen, x-mcp-header). Remaining per the conformance matrix (#283): the client ignores ttlMs/cacheScope (9 caching rows) and answers requests a 2026-07-28 server must not send.
@dezren39 · 2026-10-28T05:41:26Z
Intake review — fleet monitor
Liveness: Verified still live at intake: the issue is open and no merged PR closes it. Evidence caveat (same as the rest of this register batch): the filer's evidence was verified against 05c78b2 (2026-09-30) — re-verify against current main before fixing; if a row has since been fixed, say so on the issue and narrow the scope instead of redoing it.
Related: Parent tracker named in the issue body; sibling register-batch issues in dezren39/nix (the #209–#220 batch was enriched in the previous monitor run). mcpx also lives in developing-today/code — check for a code-side twin before assuming a nix-only fix.
Notes / risks: Client half of the 2026-07-28 conformance pair; #199 is the server half and the tests pin the same wrong field name on both sides — fixing one side without the other re-breaks interop, so triage should link them explicitly.
Suggested approach: Re-verify the cited code paths on current main, land failing tests for the acceptance criteria first, then the smallest fix that satisfies them.
🤖 Agent note · state: filed
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor run 2026-10-28 00:20 CDT
- Found via: monitor reconciliation
- Task: Intake enrichment (§5 pass): acceptance criteria appended, labels normalized, this review posted.
- Expectation: effort/m as labelled; done = the acceptance criteria on the issue are met.
added bugSomething isn't working kind/bugSomething isn't working (prefixed form of the classic bug label) effort/mMedium: expected under 1 day of work meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo) on Oct 28, 2026dezren39 commented on Oct 30, 2026 dezren39 commented on Oct 30, 2026
Agent note — picked up (resume)
dezren39 commented on Oct 30, 2026
Agent note — done
- Queue task: 3198 (lane B shift, 2026-10-30) — COMPLETE. CAP-11, the remaining row of this issue, is landed.
- PR mcpx client: declare the 2026 extensions map upstream (#1918 CAP-11) #2583 MERGED (merge commit 67bfcf9): modern requests now declare an empty
extensions map in client capabilities; legacy initialize carries no extensions key; the capabilities register (CAP-11) is truthed up. New test TestExtensionsDeclaredOnModernOnly covers both eras.
- Verification: Codex review clean (no findings) at the original head. CI stayed queued in the fleet runner backlog, so current main was merged into the branch (7fb7daa) and the merged tree was verified on the laptop:
go test ./internal/mcpclient/ ./internal/defaults/ ./internal/settings/ ./internal/api/ -count=1 — ALL PASS. Merged on that evidence under the standing merge rule (queued CI = infra backlog, change itself verified).
- Closing this issue: CAP-11 was its last remaining row per triage task 2813.
MetadataMetadataapp/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)bugSomething isn't workingeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a human DevelopmentNo branches or pull requestsIssue actions
|