Skip to content

MCP fix

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.

Claude Code keeps MCP servers at three scopes, shows each one's state with one command, and signs in from inside a session. From Anthropic's Claude Code docs, read on 17 October 2026.

Start with the program

If you set Claude Code up with the hamloy program, run this in the project's folder first:

hamloy status

It shows the tools and the hooks for each Claude Code config folder, and what to run for each one that is missing. When it says ✗ not signed in, run hamloy connect.

Where the servers are

  • Local (the default): in ~/.claude.json, for this folder alone. The program puts Hamloy here.
  • Project: .mcp.json at the repo's root, under mcpServers, shared with whoever clones it.
  • User: in ~/.claude.json, for every folder.

A remote server needs its type beside its address; an entry with a url and no type is an error:

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

claude mcp add --transport http hamloy https://hamloy.com/mcp writes it for you.

See whether it is connected

claude mcp list in your shell gives each server's state: ✔ Connected, ! Needs authentication or ✘ Failed to connect. Inside a session, /mcp shows the same, with each server's tools.

Sign in again

Set up by the program, Hamloy signs in through the program itself: hamloy connect signs this computer in again, and there is nothing to do in /mcp.

Added by hand, type /mcp, pick the server and sign in in the browser that opens. The same menu clears a sign-in and reconnects a server; /mcp reconnect all tries again every server that failed or needs a sign-in.

A project's servers ask first

A server in .mcp.json asks once whether you trust it. If you said no, claude mcp reset-project-choices asks again.

Read what happened

claude mcp get hamloy shows the server's entry, and its Issue: line says what went wrong when it didn't connect.

The errors, one by one

Check that it worked

Ask "What's open in Hamloy?" The agent calls the list tool and you get your lists back:

Pebble · 4 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
requests
  [ ] R-q4ve@1   Create an Apple developer account

Setting it up from the start: Claude Code.