Repository navigation
Labels
Description
Parent: #518
Outcome
Close the native MCP OAuth initiative with one hermetic cross-boundary proof covering fresh local authorization, warm Buzz-style restart, refresh rotation, reconnect, and headless failure, and make the shipped/deferred boundary explicit in architecture and user documentation.
Design requirements
- Build one offline fixture combining a protected streaming-HTTP MCP server, OAuth metadata/authorization/token endpoints, browser/callback fake, credential backend,
app.Build, catalog assembly, and ACP transport recorder. - Exercise the real path:
internal/cliconfig→internal/app→internal/adapter/mcp→ official SDK → catalog/tool invocation. - Run restart phases over one local store: fresh auth, warm no-browser connect, forced expiry and rotated refresh persistence, another restart, MCP session drop, and existing reconnect.
- Add a clean-store headless phase asserting bounded login-required and zero browser/listener/ACP auth traffic.
- Seed secret canaries and scan diagnostics, errors, ACP updates, model-visible results, and serialized nonsecret projections for absence.
- Re-audit
docs/adr/0027-cloud-native.mdresource and rehydration inventories for store, handler, callback, auth coalescing, key source, and HTTP clients.
Acceptance criteria
- The fixture proves every Native OAuth for streaming-HTTP MCP servers #518 completion criterion offline and under race detection.
- ACP transcripts contain no elicitation/auth method and no OAuth artifact.
- Warm restart and reconnect invoke neither browser nor authorization endpoint; refresh invokes only token endpoint and persists the successor.
- Headless clean-store behavior is bounded and gives a safe pre-login/pre-provision remedy.
- Static bearer and unauthenticated MCP fixtures remain unchanged.
- New frozen ADR plus architecture, implementation notes, production readiness, usage, and public user docs accurately describe scope and local-backend limits.
task lint && task test,go run ./cmd/mecademo, docs generation/check, andtask site:buildpass.
Security constraints
Offline/loopback endpoints and synthetic secrets only. Redaction oracle covers diagnostics, errors, ACP, events/model output, and serialized metadata. No live gateway call in the normal suite.
Dependencies and sizing
Blocked by all other #518 subissues; implement last.
Size: M–L. Complexity: medium. Execution: single pass after all behavior lands.
Activity
JAORMX commentedon Aug 15, 2026
Implementation is complete on
test/issue-524-mcp-oauth-e2e, stacked through the full #518 implementation chain. The hermetic gate now drives the real operator resolver/profile loader, explicit loopback login, encrypted credential store, app.Build/global catalog/model tool invocation, deterministic expiry, refresh-token rotation, restart, consumption of the persisted rotated refresh token, another successor rotation, forced MCP-session reconnect, manager-before-source cleanup, headless/ACP no-auth-flow boundary, static/none regressions, and immediate per-scenario secret-canary scans. Review repair waves corrected key-file permissions, removed duplicate loader logic, stabilized expiry without sleeps, fixed ACP wording, and expanded raw/encoded key plus all token canaries. Acceptance race count=5, full lint/test, docs/site checks, and demo pass. Branch pushed; PR waits on stacked prerequisites for a clean diff.test(mcp): add OAuth lifecycle acceptance gate