Fixes › Gemini CLI

Gemini CLI: remote MCP server won't connect (httpUrl vs url)

Gemini CLI

The error

Server shows DISCONNECTED in /mcp list • a Streamable HTTP /mcp URL fails while the same URL works in other apps

Why it happens

In Gemini CLI's settings.json, url means an SSE endpoint and httpUrl means Streamable HTTP. Most hosted servers now only speak Streamable HTTP at a /mcp path, so an entry copied from Cursor with url makes Gemini CLI use the wrong transport.

How to fix it

  1. Use httpUrl for /mcp endpoints
    Change url to httpUrl for Streamable HTTP servers.
    {
      "mcpServers": {
        "linear": { "httpUrl": "https://mcp.linear.app/mcp" }
      }
    }
  2. Or add it with the CLI
    --transport http writes httpUrl for you. Add --scope user to use it in every project (the default is the current project).
    gemini mcp add --transport http --scope user linear https://mcp.linear.app/mcp
  3. Check the status and sign in
    Run gemini mcp list to see connection errors, then /mcp auth NAME inside Gemini CLI if the server uses OAuth.
    gemini mcp list

Related servers

Sources