Skip to content

Commit 6fbeaf9

Browse files
committed
Fix build-and-test-client.yml workflow
1 parent 32bfd06 commit 6fbeaf9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-and-test-client.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ jobs:
7676
os: [ubuntu-latest, windows-latest]
7777

7878
env:
79-
HTTP_HOST: 'localhost'
79+
# Use 127.0.0.1 (not 'localhost') so the server's app.listen() bind
80+
# address and the client's MCP_SERVER_URL agree on a single address
81+
# family. On Windows, Node's dns.lookup('localhost') may return
82+
# 127.0.0.1 while the Go client resolves 'localhost' to [::1], causing
83+
# ECONNREFUSED because the IPv4 and IPv6 stacks are not bridged.
84+
HTTP_HOST: '127.0.0.1'
8085
HTTP_PORT: '3000'
8186
MCP_MODE: ${{ matrix.mcp-mode }}
8287
TIMEOUT_SECONDS: '30'

0 commit comments

Comments
 (0)