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/featureNew feature or capability request
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Oct 29, 2026
  5. 119 remaining items

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triaged)

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  8. removed their assignment
    on Nov 20, 2026
  9. 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.

  10. added a commit that references this issue on Nov 23, 2026
  11. 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.
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/lLarge: multi-day or open-ended; expect staged check-insepic/mcpx-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:in-reviewtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions