Sachin Uppal

MJO · Connect guide · VS Code

How to connect an MCP server to VS Code

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

VS Code adds MCP servers for GitHub Copilot from its Customizations editor or the Command Palette. A remote server is an HTTP server; VS Code tries Streamable HTTP first and falls back to SSE.

For MCP Journey Optimization, VS Code is a developer client with a guided flow: nobody has to touch JSON unless they want to share the setup with a team. The comparison with every other client is in the field guide.

What you need

Steps

  1. With Copilot selected, run Chat: Open Customizations from the Command Palette and select MCP Servers.
  2. Select Add Server (+) in the User group.
  3. Choose HTTP (HTTP or Server-Sent Events) and enter the server endpoint.
  4. Enter a unique server ID, e.g. crushedwithit.
  5. Select Global, then Copilot Global: a personal configuration shared across your workspaces.
  6. Review any trust request before accepting it. If the server uses OAuth, VS Code opens a browser for you to sign in on first connection; use Authenticate if it asks.

Alternatives Microsoft lists: MCP: Add Server for a guided flow, or MCP: Browse MCP Servers to discover one. To share with a team, the guided flow can write a workspace-root .mcp.json for source control.

If you edit the file yourself

Microsoft's reference shows this shape for the editor-managed mcp.json (in .vscode/mcp.json for a workspace):

{
  "servers": {
    "crushedwithit": {
      "type": "http",
      "url": "<your server URL>"
    }
  }
}

The same page says this format is mainly for the deprecated Local harness, and recommends ~/.copilot/mcp-config.json or a workspace-root .mcp.json with a top-level mcpServers object for new Copilot setups. An API key goes in headers, ideally through an inputs variable such as ${input:api-token}, never pasted into chat.

What it looks like (captured 26 Nov 2026)

Real screens from adding the CrushedWithIt server to a workspace's .vscode/mcp.json in VS Code.

VS Code mcp.json with a crushedwithit http server and a Start link
1. The server in .vscode/mcp.json. VS Code shows a Start link above it.
VS Code dialog asking whether you trust the authors of the files in this folder
2. A server defined in workspace files asks you to trust the folder first.
VS Code showing the crushedwithit server Running
3. Running. VS Code then asks to open the server's sign-in page in your browser, where you approve access.
VS Code showing crushedwithit Running with 89 tools and 18 prompts
4. Signed in: Running, with the tools and prompts the server offers.

Try it

Ask Copilot for a low-impact task; you don't need to name the server. With the CrushedWithIt server as the example:

Use the crushedwithit tools to show my account and how many credits I can spend now.

Microsoft's check: expand the tool call in the conversation and confirm the server returned the result.

Common errors and fixes

What you seeFixBasis
HTTP server fails to connect or authenticateCheck the endpoint and network access; follow the publisher's sign-in instructions; inspect errors without exposing credentials.VS Code docs
Need the logsMCP Servers > server's … menu > Show Output, or MCP: List Servers > server > Show Output.VS Code docs
Startup blocked by trustReview the configuration and Workspace Trust. Restricted mode prevents workspace-defined servers from starting.VS Code docs
Server not allowedAsk your administrator to check the managed MCP allowlist.VS Code docs
Old tool listMCP: Reset Cached Tools clears the editor's cached tool lists; then restart the server.VS Code docs

After any fix, Microsoft says to restart the server, retry a request that needs its tools and check the output.

How to disconnect

Sources

Microsoft's pages don't spell out which OAuth providers or registration methods VS Code supports, so this guide doesn't either. Screenshots are being added.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to VS Code. sachinuppal.com.