Files
komodo-mcp-custom/docker-compose.yml
Ben bf80ae577e
All checks were successful
Build and Push Komodo MCP Docker Image / build (push) Successful in 14s
feat: add /health endpoint and switch to Streamable HTTP transport
- Switch from legacy SSE transport (sse_app) to Streamable HTTP (http_app)
  - Fixes 405 Method Not Allowed for MCP clients like Gemini CLI
  - MCP endpoint now at /mcp (POST) instead of /sse (GET)

- Add /health endpoint that bypasses MCP_ALLOWED_HOSTS validation
  - Returns {"status": "ok"} (200) or {"status": "degraded"} (503)
  - Enables Docker health checks without exposing to external hosts

- Add curl to Docker image for health checks
- Add healthcheck config to docker-compose files
- Add test-health and test-mcp Makefile targets
- Update documentation
2025-12-20 22:30:56 +00:00

19 lines
537 B
YAML

services:
komodo-mcp:
image: gitea.ext.ben.io/b3nw/komodo-mcp:latest
container_name: komodo-mcp
environment:
- KOMODO_URL=${KOMODO_URL}
- KOMODO_API_KEY=${KOMODO_API_KEY}
- KOMODO_API_SECRET=${KOMODO_API_SECRET}
- MCP_ALLOWED_HOSTS=komodo-mcp.example.io,localhost:*,127.0.0.1:*
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: unless-stopped