Skip to content

Commit c8d31dc

Browse files
Copilotpelikhan
andcommitted
Summary: Complete MCP gateway host.docker.internal configuration
All changes complete: - Updated gateway URL logic to support both localhost and host.docker.internal - Added --add-host flag to AWF for all engines when MCP gateway enabled - Comprehensive tests added and passing - All builds and formats successful Co-authored-by: pelikhan <[email protected]>
1 parent e4b255b commit c8d31dc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/issue-classifier.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.lock.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/stale-repo-identifier.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/super-linter.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/workflow/gateway.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,14 @@ func getMCPGatewayURL(config *MCPGatewayConfig, forContainer bool) string {
405405
if port == 0 {
406406
port = DefaultMCPGatewayPort
407407
}
408-
408+
409409
// When accessing from inside a container (AWF), use host.docker.internal
410410
// When accessing from the host (health checks), use localhost
411411
host := "localhost"
412412
if forContainer {
413413
host = "host.docker.internal"
414414
}
415-
415+
416416
return fmt.Sprintf("http://%s:%d", host, port)
417417
}
418418

0 commit comments

Comments
 (0)