Skip to content

[MCP] OAuth 2.1 para conectores de Claude.ai - #140

Merged
foxkdev merged 2 commits into
developmentfrom
feature/132-mcp-oauth
Nov 30, 2026
Merged

foxkdev merged 2 commits into
developmentfrom
feature/132-mcp-oauth

Conversation

@foxkdev

@foxkdev foxkdev commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Closes #132

GitOps como Authorization Server OAuth 2.1 para el MCP (ADR 0006):

  • /.well-known/oauth-authorization-server, /oauth/register (DCR, clientes públicos, 20/h por IP), /oauth/authorize (consentimiento), /oauth/token (authorization_code + PKCE S256, refresh_token con rotación), /oauth/revoke.
  • Cada conexión es una clave personal audience: 'mcp' con oauthClientId (access 1 h, refresh 30 días deslizante): reutiliza permisos, bloqueo de vault, rate limit y auditoría. Revocable desde /profile, no regenerable.
  • Las claves MCP manuales siguen igual (conviven).
  • GET /api/whoami para que gitops-mcp valide el token.
  • Activación con MCP_OAUTH_RESOURCES (vacía = endpoints 404).

🤖 Generated with Claude Code

foxkdev and others added 2 commits November 30, 2026 21:02
GitOps actúa como Authorization Server (metadata RFC 8414, registro
dinámico, Authorization Code + PKCE S256, refresh con rotación, revoke).
Cada conexión es una clave personal audience mcp con oauthClientId,
revocable desde /profile. Añade GET /api/whoami y el ADR 0006.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@foxkdev
foxkdev merged commit 5571c32 into development Nov 30, 2026
4 checks passed
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.

1 participant