Skip to content

Cannot connect to the Chrome-devtools mcp server using the gemini-cli. #178

@PerryFinn

Description

@PerryFinn

Describe the bug
After I installed the mcp package using the README instructions for gemini-cli, I restarted gemini-cli and tried to use it with the command:

gemini -s

However, I found that mcp was unable to connect.

On the contrary, when I use the Cursor and register the mcp with it, and then enable the agent mode, entering the test prompt allows the website to be opened normally for performance analysis.

text prompt

Check the performance of https://developers.chrome.com

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest version of gemini-cli. brew install gemini-cli
  2. Add that MCP to gemini-cli. gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest
  3. Start gemini-cli. gemini -s
  4. Press Ctrl+O to view the details of the error.

Expected behavior
The expected behavior is that when the gemini-cli is launched, there should be no error messages, and when the test prompt is entered, the Chrome browser should open successfully for use.

Chrome version: 140.0.7339.214
Coding agent version: gemini-cli@0.6.1
Model version: gemini-2.5-pro
Node version: 22.16.0

Screenshots

Image

type /mcp

Image

Chat log
The full log of the chat with your coding agent.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions