{
  "id": 20935787,
  "title": "How to add an MCP server to VS Code (mcp.json, .mcp.json and fixes)",
  "url": "https://urgent.news/2026/11/20/how-to-add-an-mcp-server-to-vs-code-mcp-json-mcp-json-and-fixes",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-20T19:07:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/pluginstackai/how-to-add-an-mcp-server-to-vs-code-mcpjson-mcpjson-and-fixes-1c9"
  },
  "original_language": "en",
  "account": "Adding an MCP server to VS Code involves using the MCP: Add Server command in the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS). The setup process varies based on whether the server is an HTTP URL or a command like npx. You'll need to choose an ID, select where to save the server configuration, and potentially provide trust or sign-in information. Once configured, the agent can use the server by calling tools from it, with the connection working upon successful execution of a tool. There are three main ways to add an MCP server: using the guided flow, the MCP server gallery, or manually writing the config file. The Portable format (.mcp.json) and VS Code format (.vscode/mcp.json) have different top-level keys and handle secrets differently.",
  "summary": "How to add an MCP server to VS Code Checked against the official docs: Oct 28, 2026 VS Code's agents can call tools from MCP (Model Context Protocol) servers, for example to drive a browser, read current library docs or query GitHub. The setup changed in 2026: VS Code now has two config formats in different files, and the one you pick decides which features you get. This guide shows the quickest…",
  "key_points": [
    "Use MCP: Add Server command in VS Code's Command Palette",
    "Choose ID, save location, and provide trust/sign-in info",
    "Add server via guided flow, gallery, or manual config file"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}