Agregar servidor MCP para Gitea API
Some checks failed
build-and-deploy / build (push) Failing after 13s
build-and-deploy / deploy (push) Has been skipped

- Implementadas 5 herramientas optimizadas: repos, commits, issues, secrets, variables
- Descripciones compactas y claras para minimizar tokens
- Integración con Gitea API usando token de autenticación
- Enrutado en gitea.nucleoriofrio.com/mcp/* via Traefik
- Sin autenticación Authentik (acceso directo)
- Dockerfile y package.json configurados
- Workflow actualizado para build y deploy automático
- Variables de entorno agregadas al .env.example
This commit is contained in:
2025-10-14 00:16:33 -06:00
parent 0dc18d2154
commit 0f88dd4a91
9 changed files with 2132 additions and 0 deletions

View File

@@ -80,6 +80,37 @@ services:
- "traefik.http.middlewares.${APP_NAME}-mcp-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.${APP_NAME}-mcp.middlewares=${APP_NAME}-mcp-stripprefix,${APP_NAME}-mcp-headers"
mcp-gitea:
image: ${REG}/${REPO_OWNER}/mcp-gitea-server:latest
container_name: ${APP_NAME}-mcp-gitea
restart: unless-stopped
environment:
- PORT=3000
- GITEA_URL=${GITEA_URL}
- GITEA_TOKEN=${GITEA_TOKEN}
networks:
- principal
- traefik-network
labels:
# Traefik labels - Exposición sin autenticación
- "traefik.enable=true"
- "traefik.docker.network=traefik-network"
# Service
- "traefik.http.services.${APP_NAME}-mcp-gitea.loadbalancer.server.port=3000"
# Router sin autenticación para /mcp en gitea.nucleoriofrio.com
- "traefik.http.routers.${APP_NAME}-mcp-gitea.rule=Host(`${GITEA_DOMAIN}`) && PathPrefix(`/mcp`)"
- "traefik.http.routers.${APP_NAME}-mcp-gitea.entrypoints=websecure"
- "traefik.http.routers.${APP_NAME}-mcp-gitea.tls.certresolver=letsencrypt"
- "traefik.http.routers.${APP_NAME}-mcp-gitea.priority=200"
- "traefik.http.routers.${APP_NAME}-mcp-gitea.service=${APP_NAME}-mcp-gitea"
# Middlewares para MCP Gitea
- "traefik.http.middlewares.${APP_NAME}-mcp-gitea-stripprefix.stripprefix.prefixes=/mcp"
- "traefik.http.middlewares.${APP_NAME}-mcp-gitea-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.${APP_NAME}-mcp-gitea.middlewares=${APP_NAME}-mcp-gitea-stripprefix,${APP_NAME}-mcp-gitea-headers"
networks:
principal:
external: true