File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,19 @@ jobs:
108108 curl -fsS http://127.0.0.1:6566/health >/dev/null
109109 - name : Validate MCP endpoint
110110 run : |
111- curl -sS -D /tmp/mcp_headers -o /dev/null --max-time 2 -H "Accept: text/event-stream" http://127.0.0.1:6566/mcp || true
112- grep -E "^HTTP/.* 200" /tmp/mcp_headers
113- grep -i "^content-type: text/event-stream" /tmp/mcp_headers
111+ rm -f /tmp/mcp_headers
112+ for i in $(seq 1 10); do
113+ curl -sS -D /tmp/mcp_headers -o /dev/null --max-time 10 \
114+ -H "Accept: text/event-stream, application/json" \
115+ -H "mcp-protocol-version: 2025-03-26" \
116+ http://127.0.0.1:6566/mcp || true
117+ if grep -Eq "^HTTP/.* 200" /tmp/mcp_headers && grep -Eiq "^content-type: text/event-stream" /tmp/mcp_headers; then
118+ exit 0
119+ fi
120+ sleep 1
121+ done
122+ cat /tmp/mcp_headers || true
123+ exit 1
114124 - name : Stop feature server
115125 if : always()
116126 run : |
You can’t perform that action at this time.
0 commit comments