gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

gemini-cli (npm -g installation v 0.1.15--!!works with npx!!) /mcp command opens a browser tab (chrome) every time it's executed when no servers.

Open momoadeli opened this issue 1 year ago • 2 comments

What happened?

gemini (v 0.1.15) /mcp opens a browser tab (chrome) every time it's executed when there are no servers.

however /mcp works correctly when gemini-cli is invoked via the npx commend

What did you expect to happen?

no browser window opened.

Client information

gemini-cli is installed globally (npm install -g ...)
$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

momoadeli avatar Jul 30 '25 12:07 momoadeli

🐍⚕️

Rand0MGem-Ini avatar Jul 30 '25 12:07 Rand0MGem-Ini

Seems this is intentional behavior when there are no mcp servers installed. I still believe that opening up a browser pane is not good.

https://github.com/google-gemini/gemini-cli/blob/b447c329db52ae10b7e6c15aa87aa2b2d0098171/packages/cli/src/ui/commands/mcpCommand.ts#L63

momoadeli avatar Jul 30 '25 12:07 momoadeli