MCP open reports successful navigation after allowed-domain filter blocks a redirect
Observed behavior
I reproduced this with [email protected] through its MCP server on macOS arm64, using an isolated Chrome session and a local HTTP fixture.
The allowed-domain filter blocks the redirected request. The MCP agent_browser_open result reports success: true and isError: false, with the blocked destination in response.data.url. A calling agent receives a completed navigation result for a page that was never served.
Fixture and tool sequence
The fixture listens on 127.0.0.1. / serves an ordinary HTML page. /redirect returns HTTP 302 with Location: http://localhost:<port>/denied-target. The server counts requests to /denied-target.
The MCP process uses AGENT_BROWSER_ALLOWED_DOMAINS=127.0.0.1. Each tool call also supplies allowedDomains: ["127.0.0.1"] and the same isolated session.
- Call
agent_browser_openwithurl: "http://127.0.0.1:<port>/". - Call
agent_browser_openwithurl: "http://127.0.0.1:<port>/redirect". - Inspect the second tool result and the server request counter.
I observed this in two consecutive runs. Direct navigation to http://localhost:<port>/denied-target returned the expected allowed-domain error.
Redirect result
The server received zero requests to /denied-target. The relevant MCP result fields were:
{
"isError": false,
"structuredContent": {
"exitCode": 0,
"response": {
"success": true,
"error": null,
"data": {
"title": "",
"url": "http://localhost:<port>/denied-target"
}
}
}
}Expected behavior
Report the blocked redirect as a failed navigation, retaining the requested URL, final URL, and policy failure information. The caller can then recover by navigating to an allowed destination.
This report concerns navigation outcome reporting. The local fixture confirmed that request containment held for the redirected destination.
Source: vercel-labs/agent-browser