From dc7d379334481673f614713ebccfbbbc333ab34c Mon Sep 17 00:00:00 2001 From: Kacper Kwapisz Date: Sun, 22 Mar 2026 22:11:27 +0100 Subject: [PATCH] Fix healthcheck: expect 405 from GET /mcp (MCP is POST-only) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5650adb..9016742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]