---
title: MCP fixes
description: What goes wrong when you connect an app to an MCP server, error by error, and where to look in Cursor, VS Code, Claude, Codex, Claude Code and Gemini CLI.
url: https://hamloy.com/mcp-fix
---

MCP fix

# MCP fixes

Ten things that go wrong when you connect an app to an MCP server, and a page for each app on where to look. Each starts from what you see on the screen, and ends with how to check it worked.

Most of these come from connecting Claude Code, Codex, Cursor, VS Code, Claude and ChatGPT to Hamloy for real, and the rest from those apps' own docs. The examples use Hamloy's address; the same mistakes break any server.

If the trouble may be in the file itself, paste it into the [MCP Config Validator](https://hamloy.com/mcp-config-validator) first. It names the line.

Or start from your app: where it keeps its servers, where it shows them and their log, and how to sign in again. [Cursor](https://hamloy.com/mcp-fix/cursor), [VS Code](https://hamloy.com/mcp-fix/vs-code), [Claude and Claude Desktop](https://hamloy.com/mcp-fix/claude-desktop), [Codex](https://hamloy.com/mcp-fix/codex), [Claude Code](https://hamloy.com/mcp-fix/claude-code), [Gemini CLI](https://hamloy.com/mcp-fix/gemini-cli).

- [

"This link doesn't work" when an app signs in to Hamloy

Hamloy's sign-in window says "This link doesn't work" when it doesn't know the app that sent you. Remove the server in the app, add it again, and sign in.

 ](https://hamloy.com/mcp-fix/this-link-doesnt-work)
- [

"This isn't Claude" or "This isn't ChatGPT" on Hamloy's sign-in window

Hamloy refuses an app that calls itself Claude or ChatGPT but would send you back to another site. Close the window and start again from the real app.

 ](https://hamloy.com/mcp-fix/this-isnt-claude)
- [

401 from an MCP server: "Missing, unknown or expired token"

An app gets a 401 from Hamloy when its token is missing, revoked or badly written in the Authorization header. What each answer means, and the fix.

 ](https://hamloy.com/mcp-fix/missing-unknown-or-expired-token)
- [

The MCP server is added, but the app shows no tools

The config is saved and the app still has no tools from the server. Where to look in Claude Code, Codex, Cursor, VS Code, Claude and ChatGPT.

 ](https://hamloy.com/mcp-fix/no-tools-after-connecting)
- [

No browser window opens to sign in to an MCP server

You added a remote MCP server and the app never asks you to sign in. A header in the entry, an app that wasn't restarted, or no browser to open.

 ](https://hamloy.com/mcp-fix/no-sign-in-window)
- [

mcpServers or servers? VS Code, Zed and Codex ignore the other apps' key

An MCP config copied from one app does nothing in another, because each keeps its servers under its own key. The key for each app, side by side.

 ](https://hamloy.com/mcp-fix/mcpservers-or-servers)
- [

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.

 ](https://hamloy.com/mcp-fix/wrong-type-for-the-app)
- [

The MCP config isn't valid JSON: trailing commas, comments, curly quotes

One comma too many and an app reads no MCP servers at all, often without saying so. The five mistakes that break the file, and how to find the line.

 ](https://hamloy.com/mcp-fix/config-not-valid-json)
- [

The MCP token in an environment variable isn't read

The token is exported and the server still answers 401. Each app writes a variable its own way, and most read it only when they start.

 ](https://hamloy.com/mcp-fix/token-variable-not-read)
- [

"Could not resolve host" when an agent installs or connects an MCP server

An agent runs the install line and gets "Could not resolve host". Its sandbox has no network; the server is fine. Two ways to get past it.

 ](https://hamloy.com/mcp-fix/could-not-resolve-host)
- [

Cursor's MCP server isn't working

Where Cursor keeps its MCP servers, where it shows their tools and logs, and what to change when Hamloy or any remote server doesn't connect.

 ](https://hamloy.com/mcp-fix/cursor)
- [

VS Code's MCP server isn't working

Where VS Code keeps its MCP servers, how to see them running, where each one's output is, and what to change when Hamloy or any remote server won't start.

 ](https://hamloy.com/mcp-fix/vs-code)
- [

A Claude or Claude Desktop connector isn't working

A remote MCP server goes in Claude's Connectors, not in claude\_desktop\_config.json. Where to turn it on, where the logs are, and how to sign in again.

 ](https://hamloy.com/mcp-fix/claude-desktop)
- [

Codex's MCP server isn't working

Where Codex keeps its MCP servers, how to list them and sign in again, and what to check when Hamloy's tools or hooks don't show in Codex.

 ](https://hamloy.com/mcp-fix/codex)
- [

Claude Code's MCP server isn't working

Where Claude Code keeps its MCP servers, how /mcp and claude mcp list show them, how to sign in again, and what to check when Hamloy's tools don't show.

 ](https://hamloy.com/mcp-fix/claude-code)
- [

Gemini CLI's MCP server isn't working

Where Gemini CLI keeps its MCP servers, why a remote one needs httpUrl, how /mcp shows and signs in to them, and where to read what went wrong.

 ](https://hamloy.com/mcp-fix/gemini-cli)
