Fix healthcheck: expect 405 from GET /mcp (MCP is POST-only)

This commit is contained in:
Kacper Kwapisz
2026-03-22 22:11:27 +01:00
parent 8a0abba80c
commit dc7d379334
+1 -1
View File
@@ -22,6 +22,6 @@ EXPOSE 3000
ENV PORT=3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD python -c "import httpx; httpx.get('http://localhost:3000/mcp', timeout=5)" || exit 1
CMD python -c "import httpx; r = httpx.get('http://localhost:3000/mcp', timeout=5); assert r.status_code == 405" || exit 1
CMD ["python", "src/server.py"]