Client integration · editor extension
VS Code / GitHub Copilot
Workspace or profile mcp.json with prompt inputs and Copilot agent-mode tool access.
Overview
VS Code supports MCP servers for GitHub Copilot agent mode. Workspace configurations live in .vscode/mcp.json and use a top-level servers object. Profile-level configuration is available through the MCP: Open User Configuration command. Servers declare type stdio, http, or sse and can use ${input:id} prompt inputs so secrets are requested at runtime instead of being stored in the file. MCP support reached general availability in VS Code 1.102.
Configuration locations
| Scope | Path or setting | Note |
|---|---|---|
| project | .vscode/mcp.json | Workspace configuration using the servers key. |
| user | Profile-level mcp.json (MCP: Open User Configuration) | Managed through the command palette; no single cross-platform path is documented. |
Paths are documented by the vendor and may change. Confirm the current path in your installed version.
Local and remote servers
Local servers use type: "stdio" with command, args, env, or envFile. Remote servers use type: "http" or type: "sse" with url and headers. VS Code attempts Streamable HTTP first for the http type and can fall back to SSE. Secrets should use ${input:id} prompts defined in the inputs array.
- Transports
- stdio, Streamable HTTP, Legacy SSE
- Authentication
- Prompt inputs; HTTP headers; OAuth (server-dependent)
- Category
- editor extension
- Vendor
- Microsoft / GitHub
Generate a config for VS Code / GitHub Copilot
The adapter emits this client's documented structure and validates transport, scope, names, and credential placeholders.
Open the generatorCLI and workflow notes
- `MCP: List Servers` starts, stops, and inspects servers.
- `MCP: Open User Configuration` opens profile-level mcp.json.
- `code --add-mcp '<json>'` adds a server from the command line (Microsoft documentation).
- MCP is generally available in VS Code 1.102+; GitHub documentation has referenced 1.99+ for some features.
Tool permissions
Copilot agent mode requests tool approval according to workspace trust and chat settings. MCP servers run with your user permissions, so review tool descriptions and avoid auto-approving destructive tools. Workspace trust is a prerequisite for workspace MCP configuration.
Compatibility notes
- Workspace format uses servers, not mcpServers.
- The ${input:id} prompt syntax is specific to VS Code mcp.json and is not portable to other clients.
- The reference marks type as required, although some official examples omit it; the generator emits it explicitly.
- MCP support requires VS Code 1.102+ and a Copilot plan with agent mode.
Limitations
- Profile-level configuration is opened through a command and does not have a documented single file path.
- Prompt inputs are VS Code-specific.
- The type requirement has inconsistent examples in the official docs; explicit generation avoids ambiguity.
Servers with this client format
91 catalog entries list this client as a supported configuration target.
Sources & evidence
- code.visualstudio.com/docs/copilot/reference/mcp-configurationOfficial documentation · checked Oct 23, 2026 · documented
The VS Code MCP configuration reference documents the servers key, stdio/http/sse types, inputs, promptString, and workspace/profile configuration.
- code.visualstudio.com/updates/v1_102Official documentation · checked Oct 23, 2026 · documented
The VS Code 1.102 release notes describe MCP reaching general availability.