Skip to content

MCP server not connecting? Fix 401, 404, 405 and missing tools

Guides · 4 min read

A quick fix list for MCP connection problems in Claude, Claude Code, Codex, VS Code and Cursor: what each error means and the one thing to do about it.

A broken beam of light from a client orb, with a red gap in the middle, mended by a green ring that joins it to the endpoint on the right.

In this post

  • Check the address first
  • What each error means
  • Fixes for each client
  • When a tool doesn't show up
You needYour project's address from the console's Connect screen

Most MCP connection problems come down to a handful of causes: a wrong address, a sign-in that didn't finish, or a config file in the wrong shape. Find what you see below and do the one thing next to it.

First, check the address#

Every project has one address. Copy it from the console's Connect screen, or run gxmesh connect in the project folder:

Your project's address
https://<org>.mcp.glxymesh.com/<project>
  • Use your organization's slug, not its display name.
  • Don't add /mcp to the end. Only the local gxmesh dev server uses /mcp.
  • There's no API key. The client signs in through your browser.

What each error means#

What you seeWhat to do
404The org or project doesn't exist for you. A project you aren't a member of looks the same as one that doesn't exist. Check the address on Connect.
401 after it worked beforeThe sign-in expired. Sign in again in the client. It won't register again.
405Normal when you open the address in a browser. The server only accepts POST. Try it in your client.
No sign-in page opensThe client hasn't tried to connect yet. Start the server or choose Authenticate (see below).
"This project is waking up…"The project's tools were asleep after a week without calls. Try again in a few seconds.

Fixes for each client#

ClientCommon fix
VS Code.vscode/mcp.json must use servers, not mcpServers. Then choose Start above the entry.
Claude CodeRun /mcp inside the session and choose your server, then Authenticate.
CodexRun codex mcp login <name>, then restart the session and check /mcp.
CursorAdd no auth block. Open MCP settings, select the server and sign in. Check its switch is on.
WindsurfThe address key is serverUrl, not url.
ClaudeAdd it under Customize → Connectors, leave OAuth settings alone, then switch it on in the chat's + menu.

A tool doesn't show up#

  • Run gxmesh revisions to check your latest push went live, in the project you connected to.
  • In VS Code, open Configure Tools and make sure the tools are ticked.
  • Restart the client session. Many clients read the tool list only when they start.
  • Is the tool you see out of date? Some clients cache the list. Reconnect the server.

How sign-in works, in short#

The first call has no token, so the server answers 401 and points to accounts.glxymesh.com. The client registers itself, your browser opens, you approve, and the client gets a token that belongs to you. Everyone signs in with their own account and must be a member of the organization. Remove someone and it takes effect on their next call.

Step-by-step setup for every client is in Connect MCP servers to AI clients and the connect guide.

Explore MCP guides by task: creation, hosting, connections and security.

Glxymesh team

The people building the platform. Questions about this post go to support@glxymesh.com.

Next postSelf-signed certificates and MCP tools: pin it, don't skip it →