mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
The mcp-health-check preflight probes HTTP MCP servers with a bare GET. Some Streamable HTTP servers route only POST /mcp and answer a bare GET with 404 (Paper Desktop 0.5.3 is one). The probe scored that as down and blocked every tool call for the server indefinitely, since the 30s backoff just re-probes and re-fails. A routed HTTP response of any status proves the endpoint is reachable, which is all this preflight claims to check -- 400/401/403/405/406 are already treated this way for the same reason. Add 404 to the set and let the real MCP client validate the endpoint. Adds a regression test that stands up a POST-only server (404 on GET, 200 on POST /mcp); it fails on the current code and passes with the fix.