gemini-cli
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.
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
🐍⚕️
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