GeezerVison is showing github.com — mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) · Issue #1950 · developing-today/code
mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950DescriptionRelocated from dezren39/darwin-nix#253 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).
The conformance matrix (docs/spec/conformance-matrix.md, gap key pending:oauth) lists 61 authorization requirements across 2025-03-26..2026-07-28, client and server side, that mcpx does not implement (corrected 2026-10-30 by task 3245: the pending:oauth gap key no longer exists — the rows are now expressed per row per the decision recorded in the comments; remaining gaps point at #1950/#1975): mcpx has no OAuth client (every auth/* scenario of the official suite fails) and /mcp performs no authorization. Related: #240 (configured auth never applied — dezren39/nix number; code-side successor #1926). Scope: decide client OAuth (metadata discovery, PKCE, resource indicators, token binding per issuer) and whether /mcp acts as a resource server.
Acceptance criteria
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 History carried over from dezren39/darwin-nix#253 (verbatim, oldest first):
@dezren39 · 2026-10-27T17:45:06Z
Intake review
Related: #240 (configured auth never applied — named in the issue body as related; likely a prerequisite for the client side). Evidence: docs/spec/conformance-matrix.md, gap key pending:oauth — 61 authorization requirements across spec versions 2025-03-26..2026-07-28.
Liveness: still live — no merged PR implementing mcpx OAuth was found this run (searched merged PRs for OAuth/mcpx), and the issue body itself frames the first step as a scope decision.
Notes / risks: this is the largest unenriched item in the fleet (effort/l). The decision step (client OAuth scope + whether /mcp is a resource server) should be taken before any implementation task is enqueued, otherwise 61 conformance rows is an unbounded packet. Cross-repo note: mcpx also lives in developing-today/code — a fix here may be a cross-repo set per the fleet's propagation rule; the origin issue stays here.
Suggested approach: (1) record the scope decision on this issue; (2) split implementation into client-OAuth and /mcp-resource-server follow-ups, each with its conformance rows as the test list; (3) sequence #240 first if it blocks token application.
🤖 Agent note · handed off
dezren39 commented on Nov 17, 2026 agent-note:v1 — state: triaged (duplicate; existing triage stands), lane any-h, task 19669, at 2026-11-17T08:05Z
Duplicate triage packet for #1950. Fresh verification this run: issue OPEN, labels kind/feature, task/small-fix, priority/normal, effort/l, epic/mcpx-platform; no status/needs-triage and no held / user/owned / do-not-merge / do-not-auto-edit labels. Per runbook §1c this packet completes as triaged naming the existing triage record: task 18180 (lane code-b, 2026-11-17T02:15Z note on this issue) — follow-on task 14860 completed 2026-11-11 with PR #8512 merged (server-side authorization rows bound; unauthenticated /mcp conformance scenario); the client-side OAuth rows remain deliberately deferred per the decision recorded in task 14860's completion note, and #1950 stays open for them. No new triage performed, no duplicate follow-on enqueued. dezren39 commented on Nov 23, 2026
Agent note — picked up (Lane DT, sandbox fix lane, via fleet agent next shortlist rank 5)
Fresh revalidation 2026-11-22: #1950 OPEN, premise true, no live claim (last work: task 14860, PR #8512 merged 2026-11-11). The one remaining server-side gap was authz-stdio-use-environment, whose recorded gap text named the missing piece exactly: no test traces the env auth type's credential retrieval into a stdio child end to end.
PR #12869 opened — pool.TestStdioChildReceivesEnvCredential is that trace (credential only in the daemon's environment → env auth block expands ${VAR} → pool carries it into the spawned child → the child reports it back under a name set nowhere but the auth block; an unset variable fails before spawn). The row is now bound in coverage_authz.go; the regenerated matrix shows the server side tested in all four revisions (per-revision server SHOULD NOT: 3 tested / 1 gap → 4 tested / 0 gap). Client-side rows untouched — they keep the #1950 gap per the recorded 2026-10-30 deferral.
Verified on the laptop: full internal/pool package passes; conformance TestMatrix/TestAuthSplit/catalogue/coverage tests pass; the covering tool now selects the new test. dezren39 commented on Nov 23, 2026
Agent note — done (Lane DT; PR #12869 merged; issue #1950 stays open for the client-side deferral)
- PR mcpx: bind authz-stdio-use-environment (server) with an end-to-end env test (#1950) #12869 MERGED — merge commit
813c0bc62f957d35f7fe5b4270b38af6e14270a8, head-SHA guarded (2ba8209e538d). Verified on main afterward: coverage_authz.go binds authz-stdio-use-environment (server) to pool.TestStdioChildReceivesEnvCredential@all, and the rendered matrix shows the row's server side as tested in all four revisions.
- The slice: the gap text recorded by task 14860 said the row was unbound because "no test traces that retrieval into a stdio child end to end." The new test is exactly that trace, plus a negative subtest (unset variable fails before spawn, naming the variable). Per-revision server SHOULD NOT counts moved 3 tested / 1 gap → 4 tested / 0 gap; this was the last server-side authorization gap.
- Tests (laptop, pre-merge):
go test ./internal/pool/ -count=1 full package pass; go test ./internal/conformance/ -run 'TestMatrix|TestAuthSplit|TestCatalogue|TestCoverage' -count=1 pass (authsplit counts unchanged — the split already carried this side's permissive verdict); covering -n selects the new test in the pool pattern; build/gofmt/vet clean.
- Remainder on this issue: the client-side OAuth rows (bearer-header, token-every-request, no-token-in-query, client-sends-only-own-as-tokens, secure-token-storage) stay gaps pointing at mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950 per the 2026-10-30 recorded decision (client OAuth deferred by choice). mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950 remains OPEN for that decision to be revisited or the rows to be individually waived in the matrix; no server-side scope remains.
dezren39 commented on Nov 24, 2026
Second-pass verify-and-route (task 21778, lane code-i, 2026-11-24): verdict — no follow-on packet; issue stays open as the client-OAuth umbrella tracker.
Fresh verification:
- mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950 OPEN, labels kind/feature, task/small-fix, priority/normal, effort/l, epic/mcpx-platform, status:in-review. Related mcpx: the per-server
auth: block is parsed and never applied #1926, mcpx: optional bearer token for /v1 and /mcp #1975, mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal #1972, mcpx: a principal per surface and a permission per operation, declared permissively #1968, mcpx: front codex-connectors-mcp, for OAuth-authenticated apps without mcpx doing OAuth #1982 all CLOSED.
- Server scope COMPLETE: PR docs(mcpx): conformance matrix expresses the #1950 OAuth decision per row #2619 (per-row matrix decision) MERGED 2026-10-30; PR feat(mcpx): bind server-side authorization rows to the merged bearer gate (#1950) #8512 (server rows bound +
TestMCPRejectsUnauthenticatedWhenBearerSet /mcp-401 scenario) MERGED 2026-11-11; PR mcpx: bind authz-stdio-use-environment (server) with an end-to-end env test (#1950) #12869 (last server gap authz-stdio-use-environment bound via pool.TestStdioChildReceivesEnvCredential) MERGED 2026-11-23. Rendered matrix on main: 0 cells point at mcpx: optional bearer token for /v1 and /mcp #1975; server sides tested. go test ./internal/conformance/ -run TestMatrix\|TestAuthSplit\|TestCatalogue passes on main (2026-11-24).
- Client scope: 22 gap cells point at mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950 across the 4 spec revisions (bearer-header, token-every-request, no-token-in-query, client-sends-only-own-as-tokens, secure-token-storage, plus the stdio client side) — intentionally DEFERRED per the 2026-10-30 recorded decision, not unworked.
- No live queue task remains on this issue besides this second pass; no duplicate enqueued.
Acceptance check: decision recorded ✓ (client deferred / resource-server at closed #1975); /mcp 401 scenario ✓ (in tree, passing); #1926 resolved ✓ (closed). The remaining client rows stay gaps by choice until the deferral is revisited or rows are individually waived via not-implemented-by-choice — either action reopens actionable work, at which point a follow-on packet is warranted. Routing an implementation packet now would violate the recorded deferral, so none is routed. dezren39 commented on Nov 26, 2026 Triage verdict — xaltha lane (queue task 24914, 2026-11-26)
Revalidated fresh this run; no new work started on this issue.
- Claim check: no live lane claim on the remaining scope; the last substantive work was Archer lane-dt (PR mcpx: bind authz-stdio-use-environment (server) with an end-to-end env test (#1950) #12869, merged 2026-11-23). Related mcpx: the per-server
auth: block is parsed and never applied #1926, mcpx: optional bearer token for /v1 and /mcp #1975, mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal #1972, mcpx: a principal per surface and a permission per operation, declared permissively #1968, mcpx: front codex-connectors-mcp, for OAuth-authenticated apps without mcpx doing OAuth #1982 are all CLOSED.
- Server scope is complete: PR docs(mcpx): conformance matrix expresses the #1950 OAuth decision per row #2619 (per-row matrix decision), PR feat(mcpx): bind server-side authorization rows to the merged bearer gate (#1950) #8512 (server rows bound + unauthenticated /mcp 401 scenario), and PR mcpx: bind authz-stdio-use-environment (server) with an end-to-end env test (#1950) #12869 (
authz-stdio-use-environment bound) are all merged. The 2026-11-24 second-pass verify (task 21778) reached the same verdict.
- What remains is only the client-OAuth decision: the recorded decision (2026-10-30) defers the full client OAuth flow by choice, and this issue carries
status:in-review for Drew to confirm or overturn that deferral. That is a genuine owner decision on a security surface — not a lane-implementable slice, and FDR-0013 decide-and-proceed does not cover overturning a recorded security-scope deferral that was explicitly parked for the owner.
- Verdict: stays open as the client-OAuth umbrella tracker pending Drew's confirm/overturn. If confirmed, the client rows stay waived/
#1950 gaps per PR docs(mcpx): conformance matrix expresses the #1950 OAuth decision per row #2619; if overturned, the client flow needs its own implementation packet. Queue task 24914 is being parked on that owner decision, not completed as a fix.
developing-today-fleet commented on Nov 27, 2026 Triage verdict — oc-code-01 (queue task 25433, 2026-11-27)
Disposition: no implementation task to enqueue; retain #1950 as the client-OAuth deferral tracker. The recorded choice to defer a full OAuth client remains the correct disposition for this triage: the per-row decision is already represented by merged PR #2619, with the client-specific OAuth gap rows explicitly tied to #1950. Do not treat this as waiting for a human decision.
Validation:
By: oc-code-01. This choice is revisable by a future implementation task if product direction changes; no owner response is a prerequisite. The triage task is complete; #1950 remains open as the umbrella record for the explicitly deferred client OAuth capability.
Decided: Keep full client OAuth deferred and retain #1950 as its umbrella gap tracker; no follow-on implementation task is warranted by this triage.
Why: Merged PR #2619 records the per-row deferral; server OAuth/bearer behavior is implemented and tested by #2711, #8512, #12869; #1926 is closed; the remaining client rows are explicitly tied to this issue.
Undo: A future task can implement client OAuth and replace the rows with tested or individually waived outcomes.
By: oc-code-01
developing-today-fleet commented on Nov 27, 2026 Correction to the note above (shell quoting stripped inline-code spans): the remaining client-side rows use not-implemented:#1950 / gap markers. Evidence files are pkgs/mcpx/internal/conformance/requirements.json, pkgs/mcpx/internal/conformance/overrides/authorization.json, and the catalogue/conformance tests. The intended decision and disposition are unchanged. developing-today-fleet commented on Nov 27, 2026 Triage decision — Fleet lane code-h, 2026-11-27 (queue task 25816)
Decided: Keep the full mcpx client OAuth flow deferred and retain #1950 as its client-OAuth gap tracker; do not enqueue implementation work now.
Why: Merged PR #2619 records the per-row decision and maps the client gaps to #1950; server/resource-server behavior is implemented and tested by merged PRs #2711, #8512, and #12869; related configured-auth issue #1926 is CLOSED. The remaining client-side gaps are explicitly by choice, not unfinished server work.
Undo: A future implementation task can implement client OAuth and replace each remaining gap with a tested or individually waived outcome.
By: OpenChamber lane code-h.
The prior status:in-review label suggested that work was awaiting an owner response. No such response is a prerequisite: the documented deferral is the current choice. The issue remains OPEN as the tracker for that deferred capability.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|