VS Code / Copilot
VS Code / Copilot
Connect from VS Code
VS Code supports MCP servers through GitHub Copilot’s Agent mode. MCP tools are available when using Copilot Chat in Agent mode.
Configuration File
Create .vscode/mcp.json in your workspace root:
This prompts for the API key on first use and masks the input. For a simpler setup without the prompt, use an environment variable:
Important Differences from Other Clients
- The root key is
servers(notmcpServers). - The
typefield is required. Use"sse"for SSE endpoints. - MCP tools only work in Copilot’s Agent mode (not Ask or Edit mode).
User-Level Configuration
For global configuration across all workspaces, open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run MCP: Open User Configuration.

