Skip to content

Misleading error message in headless environment #292

@sebastianbenz

Description

@sebastianbenz

Describe the bug
When running the MCP server in a headless container (e.g. cloudtop), the error message is:

 MCP tool 'new_page' reported tool error for function call: {"name":"new_page","args":{"url":"https://example.com"}} with response: [{"functionResponse":{"name":"new_page","response":{"error":{"content":[{"type":"text","text":"The browser is already running for                                                                 │
 │    ...... Use --isolated to run multiple browser instances."}],"isError":true}}}}]

Using --isolated is the wrong suggestion here. We should have a better

To Reproduce
Use default config with Gemini CLI in a headless container (e.g. cloudtop for googlers) and run a simple prompt like: "Check performance of example.com"

Expected behavior
There should be an error message that explains that the MCP server is running in a headless environment and needs the headless flag.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions