Skip to content

[MCP] Servicio base gitops-mcp: Streamable HTTP, auth passthrough y cliente de la API - #1

Merged
foxkdev merged 8 commits into
developmentfrom
feature/128-base
Nov 30, 2026
Merged

foxkdev merged 8 commits into
developmentfrom
feature/128-base

Conversation

@foxkdev

@foxkdev foxkdev commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Closes getgitops/gitops#128 · Parte de getgitops/gitops#122

  • Streamable HTTP sin estado en POST /mcp (SDK 1.32): un server y un transport por petición. GET/DELETE dan 405. También GET /healthz.
  • Sin Bearer: 401 con WWW-Authenticate. El token se reenvía tal cual a la API y nunca se guarda ni se loguea; un test captura los logs y lo comprueba.
  • GitOpsApiClient tipado: timeout y reintentos solo en GET. Los POST llevan siempre Content-Type: application/json por el guard CSRF de GitOps. Errores 401/403/404/429/400 traducidos para el agente.
  • Resolución por slug (org/proyecto, org/proyecto/servicio) o por id.
  • Tool de ejemplo list_projects. Las de Code Report, CVEs y Monitoring llegan en #129 y #130.
  • API falsa en memoria para los tests, Dockerfile, CI (lint, typecheck, test), README y CLAUDE.md.

Pendiente: docker build no está probado en local (el daemon no estaba arrancado). Lo validará el build de Railway en #131.

🤖 Generated with Claude Code

foxkdev and others added 6 commits November 30, 2026 15:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t_projects tool (#128)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[MCP] Tools de Monitoring: estado y alta de monitores
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