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

MCP configuration is ignored on Windows after clean install

Open ibrahimsedatalkan opened this issue 1 year ago • 2 comments

What happened?

Hello,

I am experiencing an issue on Windows where the Gemini CLI completely ignores the MCP configuration in my settings.json file. We have tried extensive troubleshooting, including a full clean reinstallation, but the problem persists.

My Environment:

  • OS: Windows 11 (Version 10.0.26100)
  • Node.js Version: v22.17.0 (LTS)
  • Gemini CLI Version: (Please run gemini --version and put the result here)

Summary of Troubleshooting Steps:

  1. Verified the settings.json syntax is correct.
  2. Confirmed that npx and npm are correctly installed and in the system PATH.
  3. The MCP command (npx mcp-remote "https://api.myikas.com/...") works perfectly when run manually in the terminal.
  4. Globally installed the mcp-remote package with npm install -g mcp-remote to prevent interactive prompts.
  5. Performed a full clean reinstall: Uninstalled Node.js and Gemini CLI, deleted .gemini, npm, and npm-cache folders, rebooted, and reinstalled everything.

Key Finding: The problem persists even after a clean install. The debug log from gemini -d -p "test" shows that the CLI does not attempt to parse the "mcp" section of settings.json at all. It seems to be completely ignored.

The configuration still fails.

Thank you for your help.

What did you expect to happen?

I expected the /mcp command to show my configured 'ikas-admin' server from the settings.json file, instead of showing "No MCP servers configured".

Client information

Platform: Windows 11

[│ About Gemini CLI │ │ │ │ CLI Version 0.1.10 │ │ Git Commit da50a1ee (local modifications) │ │ Model gemini-2.5-pro │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth ]

Login information

No response

Anything else we need to know?

No response

ibrahimsedatalkan avatar Jul 10 '25 09:07 ibrahimsedatalkan

Found possible duplicate issues:

  • #4675: (0.9382035732269287)
  • #4273: (0.9185941815376282)
  • #3406: (0.916796088218689)

gsquared94 avatar Jul 30 '25 03:07 gsquared94

@ibrahimsedatalkan - closing, as we've had some recent fixes in this area. Please re-open if you are still hitting this.

owenofbrien avatar Aug 22 '25 17:08 owenofbrien