---
title: 'The app can''t connect to a remote MCP server: the wrong type'
description: 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.
url: https://hamloy.com/mcp-fix/wrong-type-for-the-app
---

[MCP fix](https://hamloy.com/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](https://hamloy.com/mcp-config-validator) checks the type for the app you pick. Each app's page: [Cline](https://hamloy.com/docs/cline), [Gemini CLI](https://hamloy.com/docs/gemini-cli), [Claude Code](https://hamloy.com/docs/claude-code), [VS Code](https://hamloy.com/docs/vs-code), and how they compare on [Client compatibility](https://hamloy.com/compatibility).
