Skip to content

MCP fix

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.

VS Code's chat reads MCP servers from three files, and one of them uses a different key from the other two. From VS Code's own docs, read on 17 October 2026.

Where the file is

  • .vscode/mcp.json in the folder you work in, under servers.
  • Your user profile's mcp.json, under servers, opened with MCP: Open User Configuration.
  • A .mcp.json at the folder's root, under mcpServers, as Claude Code writes it. VS Code's Copilot harness sessions read it as it is.

In VS Code's own files a remote server needs its type as well as its address:

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

mcpServers in .vscode/mcp.json is the commonest mistake: see mcpServers or servers?

See whether it is running

Run MCP: List Servers from the Command Palette. Each server says whether it is running, and its menu has Enable, Disable and Show Output. The Extensions view lists them too, under MCP SERVERS - INSTALLED, and the chat shows a mark when one failed.

Read the log

Each server has an output channel of its own. In MCP: List Servers, pick the server, then Show Output.

Make VS Code read the file again

With the setting chat.mcp.autostart on, VS Code starts a server whose entry changed when you send your next chat message. Otherwise, disable it and enable it again from MCP: List Servers.

Trust

A server in the folder's own file is trusted with the folder: in Restricted Mode it doesn't start. A server from anywhere else asks once whether you trust it, and again when its entry changes. MCP: Reset Trust asks again for all of them.

Sign in again

Take the entry out, save, put it back and start the server: VS Code asks you to sign in again. To cut the connection from Hamloy's side, the Connect page lists VS Code under Connected apps, with Disconnect.

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: VS Code.