From 2ecf2a2edd529a9e05fdaf35f01d394ac0525631 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 05:05:24 +0000 Subject: [PATCH 1/2] Initial plan From 8c658aa66468c319d7577177db7270b3798cd67b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 05:10:12 +0000 Subject: [PATCH 2/2] Fix MCP Gateway health check to use localhost instead of host.docker.internal Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> --- actions/setup/sh/start_mcp_gateway.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/setup/sh/start_mcp_gateway.sh b/actions/setup/sh/start_mcp_gateway.sh index f34386a8b8a..c324dbbcc1c 100755 --- a/actions/setup/sh/start_mcp_gateway.sh +++ b/actions/setup/sh/start_mcp_gateway.sh @@ -112,11 +112,13 @@ echo "" # Wait for gateway to be ready using /health endpoint # Note: Gateway may take 40-50 seconds when starting multiple MCP servers # (e.g., serena alone takes ~22 seconds to start) +# Use localhost for health checks since this script runs on the host, not inside a container. +# MCP_GATEWAY_DOMAIN (e.g., host.docker.internal) is for container-to-host communication. echo "Waiting for gateway to be ready..." MAX_ATTEMPTS=60 ATTEMPT=0 while [ $ATTEMPT -lt $MAX_ATTEMPTS ]; do - if curl -f -s "http://${MCP_GATEWAY_DOMAIN}:${MCP_GATEWAY_PORT}/health" > /dev/null 2>&1; then + if curl -f -s "http://localhost:${MCP_GATEWAY_PORT}/health" > /dev/null 2>&1; then echo "Gateway is ready!" break fi