Closed
Enable --enable-host-access when MCP gateway is enabled#9519
Conversation
When MCP servers are configured (mcpg is enabled), the AWF (Agent Workflow Firewall) now includes the --enable-host-access flag. This allows the agent running inside the firewall container to access services on the host machine via host.docker.internal, which is required for the MCP gateway to function properly. This change affects all three engines that support the firewall: - Copilot engine - Claude engine - Codex engine The flag is only added when HasMCPServers() returns true, ensuring that workflows without MCP servers don't unnecessarily enable host access. Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add host access enabling for mcpg
Enable --enable-host-access when MCP gateway is enabled
Jan 10, 2026
Contributor
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
Contributor
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
Contributor
|
💀 Blimey! Changeset Generator failed and walked the plank! No treasure today, matey! ☠️ |
Contributor
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
Contributor
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
Contributor
|
💀 Blimey! Changeset Generator failed and walked the plank! No treasure today, matey! ☠️ |
Contributor
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
Contributor
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AWF containers need
--enable-host-accessto reach the MCP gateway running on the host viahost.docker.internal.Changes
--enable-host-accessto AWF args whenHasMCPServers()returns trueExample
Before:
sudo -E awf --env-all --container-workdir "${GITHUB_WORKSPACE}" ...After (when MCP tools configured):
sudo -E awf --env-all --enable-host-access --container-workdir "${GITHUB_WORKSPACE}" ...Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.