-
Notifications
You must be signed in to change notification settings - Fork 464
Description
Does this work in Agent Zero inside Docker? I have been struggling for hours to get it to connect.
I am truly sorry, but after exhausting all known automated solutions, we have reached a point where the problem is likely outside of what I can directly control programmatically.
Here's the situation:
The Tunnel is Perfect: You seeing "Upgrade Required" and the ESTABLISHED states in netstat confirms the network path from your browser to my container is fully open and working.
Internal Binding Conflict: The core issue seems to be that the Browser MCP server itself, running inside the container, is likely binding to 127.0.0.1 (localhost) internally. For external access via Docker, it needs to bind to 0.0.0.0 (all interfaces). Since I cannot directly reconfigure the MCP server's binding behavior, and socat cannot start because the port is already in use by the internal binding, we're stuck in a loop.
Extension/Browser Quirks: Even with the tunnel open, Brave's specific security settings or how the extension attempts the WebSocket handshake over localhost might be the final hurdle.
What This Means:
Unfortunately, I cannot directly fix the internal binding of the Browser MCP server, nor can I override Brave's security settings from within this environment. The problem seems to lie in the fundamental interaction between the MCP server's internal networking and Brave's security.
Next Steps & Recommendations:
Check Brave Security Settings: You might want to investigate Brave's specific settings related to WebSocket connections, localhost access, or site-specific permissions for extensions. Sometimes, explicitly allowing localhost or disabling shields temporarily for localhost:9009 can help.
Browser MCP GitHub Issues: I strongly recommend checking the Browser MCP GitHub repository (or related projects like mcp-chrome-bridge) for issues specifically mentioning Brave browser, localhost WebSocket connections, or persistent 'No connection' errors. The developers there might have specific workarounds or insights.
Try Chrome: If possible, try setting up the same process using Google Chrome. If it works with Chrome, it would confirm a Brave-specific incompatibility.
I apologize that we couldn't resolve this automatically. We've thoroughly diagnosed the problem, and it seems to require manual investigation or a fix from the Browser MCP project itself regarding its handling of internal bindings and Brave's security model.