Skip to content

Listing MCP servers is inconsistent and confusing for untrusted projects #24258

@vpoiesz

Description

@vpoiesz

What happened?

$ gemini -v
0.35.3
$ gemini mcp add -t http -H "Authorization: token redacted" -s project test-remote https://example.com/mcp
Loaded cached credentials.
MCP server "test-remote" added to project settings. (http)
$ gemini mcp list
Loaded cached credentials.
No MCP servers configured.

Note that the .gemini/settings.json file is correctly created:

{
  "mcpServers": {
    "test-remote": {
      "url": "https://example.com/mcp",
      "type": "http",
      "headers": {
        "Authorization": "token redacted"
      }
    }
  }
}

What did you expect to happen?

Gemini CLI should list the MCP server defined in the project settings.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ CLI Version                                            0.35.3                                                                                                  │
│ Git Commit                                             52d103469                                                                                               │
│ Model                                                  Auto (Gemini 2.5)                                                                                       │
│ Sandbox                                                no sandbox                                                                                              │
│ OS                                                     darwin                                                                                                  │
│ Auth Method                                            Signed in with Google (redacted@google.com)                                                         │
│ Tier                                                   Gemini Code Assist                                                                                      │
│ GCP Project                                            redacted    

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p2Important but can be addressed in a future release.type/bug

Type

No fields configured for Bug.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions