Skip to content

Fix MCP Gateway health check to use localhost instead of host.docker.internal#9499

Closed
Mossaka with Copilot wants to merge 3 commits into
copilot/update-gh-aw-mcpg-to-v0014from
copilot/debug-setup-mcp-failure
Closed

Fix MCP Gateway health check to use localhost instead of host.docker.internal#9499
Mossaka with Copilot wants to merge 3 commits into
copilot/update-gh-aw-mcpg-to-v0014from
copilot/debug-setup-mcp-failure

Conversation

Copilot AI commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

The "Setup MCPs" step times out because the health check uses host.docker.internal which doesn't resolve from the GitHub Actions host—it only resolves from inside Docker containers.

Changes

  • Changed health check URL from http://${MCP_GATEWAY_DOMAIN}:${MCP_GATEWAY_PORT}/health to http://localhost:${MCP_GATEWAY_PORT}/health
  • Gateway binds to 0.0.0.0:8080, so localhost works from the host
  • MCP_GATEWAY_DOMAIN remains correct for container-to-host communication in MCP config
-  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
Original prompt

why is the Setup MCP step failing? https://github.com/githubnext/gh-aw/actions/runs/20873184269/job/59978466747


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…internal

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
@Mossaka Mossaka added the smoke label Jan 10, 2026
@Mossaka Mossaka marked this pull request as ready for review January 10, 2026 05:10
@github-actions

github-actions Bot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges...

@github-actions

github-actions Bot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions

github-actions Bot commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident...

Copilot AI changed the title [WIP] Investigate Setup MCP step failure Fix MCP Gateway health check to use localhost instead of host.docker.internal Jan 10, 2026
Copilot AI requested a review from Mossaka January 10, 2026 05:12
@Mossaka Mossaka closed this Jan 10, 2026
@github-actions github-actions Bot deleted the copilot/debug-setup-mcp-failure branch April 2, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants