Skip to content

feat(mcp): add durable OAuth controller - #559

Merged
JAORMX merged 2 commits into
mainfrom
feat/issue-521-mcp-oauth-controller
Aug 15, 2026
Merged

JAORMX merged 2 commits into
mainfrom
feat/issue-521-mcp-oauth-controller

Conversation

@JAORMX

@JAORMX JAORMX commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a durable MCP OAuth controller around the official SDK handler
  • persist versioned OAuth credential envelopes through the host-internal CAS store
  • retain authorization state across reconnect, serialize concurrent authorization, and handle refresh rotation/invalid_grant safely
  • enforce exact issuer and credential-bearing egress policy with DNS pinning, no proxy, redirect bounds, and static/OAuth exclusion
  • add comprehensive persistence, concurrency, reconnect, cancellation, SSRF, redaction, and lifecycle tests
  • record the constrained controller design in ADR 0110

Verification

  • go test -race ./internal/adapter/mcp -run 'OAuth|ConnectCancellation' -count=1
  • task lint
  • task test
  • task generate && task docs:check
  • go run ./cmd/mecademo
  • independent security/spec/architecture/QA review and repair waves; final security recheck clean

Closes #521
Part of #518

JAORMX added 2 commits August 15, 2026 14:36
Closes #521

Co-Authored-By: Juan Antonio Osorio <[email protected]>
Refs #521

Co-Authored-By: Juan Antonio Osorio <[email protected]>
@JAORMX
JAORMX merged commit 99cb04f into main Aug 15, 2026
15 checks passed
@JAORMX
JAORMX deleted the feat/issue-521-mcp-oauth-controller branch August 15, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP OAuth controller: durable refresh and reconnect reuse

1 participant