Skip to content

mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950

Open

Description

@dezren39

Relocated 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

Activity

  1. developing-today commented on Oct 28, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    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

  3. added
    kind/feature
    status/needs-triage
    source/human
    priority/normal
    effort/l
    meta/enriched
    queue/queued
    on Oct 28, 2026
  4. added
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/needs-triage
    queue/queued
    on Oct 29, 2026
  5. 129 remaining items

  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  8. added a commit that references this issue on Nov 23, 2026
  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    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:

    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.

  11. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage verdict — xaltha lane (queue task 24914, 2026-11-26)

    Revalidated fresh this run; no new work started on this issue.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    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

  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    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.

  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    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.

  15. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census 2026-11-29 (lane CEN-C02) — rechecked firsthand.

    State: OPEN as the client-OAuth deferral tracker — the acceptance's decision criterion is ANSWERED and recorded (decision:v1, 2026-11-27, twice concurred): keep the full mcpx client OAuth flow deferred; retain #1950 as its umbrella gap tracker. The per-row decision is in merged PR #2619; remaining client-side rows carry not-implemented:#1950 gap markers in pkgs/mcpx/internal/conformance/requirements.json and overrides/authorization.json.

    The server side is DELIVERED, not pending: #1975 and #1926 are CLOSED; PRs #2711, #8512, #12869 merged (the last closed the final stdio environment-auth gap); the four-revision matrix's server side is tested. So nothing here waits on an owner response — the deferral is the current choice, revisable by a future implementation task if product direction changes (the undo path is recorded in the decision note). Triage draws should stand down on this note. Labels/priority: kind/feature + priority/normal confirmed correct by this census.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass.

    STRENGTHS: precise state record — the server side landed via PRs #2711/#8512/#12869; the client OAuth half is deferred by a recorded 2026-11-27 decision; #1926 is closed.
    PRIORITY VALIDATION: priority/normal verified present (added by today's prioritization sweep) and CORRECT under the label doctrine — ordinary sound feature work, the default band. Exactly one band.
    FIXES I APPLIED: none needed.
    REMAINS: the deferred client OAuth half, on its recorded schedule; no Drewry decision needed.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via fleet gh immediately before editing.

    Strengths: detailed body (1794 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/normal) — verified against live labels; kind label present (kind/feature).

    Gaps found: none material.

    Actions taken this pass: none — verified complete, no changes.

    Priority: priority/normal — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lepic/mcpx-platformkind/featuremeta/enrichedpriority/normalsource/humantask/small-fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions