Skip to content

MCP fix

The app can't connect to a remote MCP server: the wrong type

Cline wants streamableHttp, Gemini CLI wants httpUrl, Claude Code and VS Code want type http. The entry each app needs for a remote MCP server.

The server's address is right, the file is valid, and the app says it can't connect, or lists the server as disconnected. For a server on the web, several apps want to be told what kind of connection it is, and each has its own word for it.

Hamloy speaks streamable HTTP: one address, ending in /mcp. Some apps assume the older kind, SSE, when you don't say.

What each app wants

App For a server like Hamloy What goes wrong otherwise
Claude Code "type": "http" beside url the server may not start
VS Code "type": "http" beside url, under servers the server may not start
Cline "type": "streamableHttp" Cline says it can't connect
Gemini CLI httpUrl, not url hamloy shows as disconnected
Cursor, Zed url alone
Codex url = "…" in its TOML table

Cline

{
  "mcpServers": {
    "hamloy": {
      "type": "streamableHttp",
      "url": "https://hamloy.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

"type": "http", which is right for Claude Code and VS Code, is wrong here.

Gemini CLI

{
  "mcpServers": {
    "hamloy": {
      "httpUrl": "https://hamloy.com/mcp"
    }
  }
}

Run gemini mcp list to see the error it has. If the entry says url, rename it to httpUrl. Adding the server with gemini mcp add --transport http hamloy https://hamloy.com/mcp writes it the right way.

Claude Code

{
  "mcpServers": {
    "hamloy": {
      "type": "http",
      "url": "https://hamloy.com/mcp"
    }
  }
}

claude mcp add --transport http hamloy https://hamloy.com/mcp writes the same.

The address itself

While you are there, check the address. Hamloy's is https://hamloy.com/mcp for every project you are on, or https://hamloy.com/mcp/ and a project's id for one. An address ending in /sse is from the older kind of server; Hamloy has none.

Check that it worked

The app shows the server as connected, and "What's open in Hamloy?" brings your lists back:

Pebble · 3 open, 1 done
backlog
  ## Streaks
  [ ] B-k3f9@2   Streak counter on the habit card  (claimed by claude on streak-counter in pebble)
  [ ] B-m2xq@1   Share a streak as an image
questions
  [ ] Q-7hnc@1   How should a shared streak look?  options: 1) A square card (recommended)  2) A story-sized image

The MCP Config Validator checks the type for the app you pick. Each app's page: Cline, Gemini CLI, Claude Code, VS Code, and how they compare on Client compatibility.