VS Code / Copilot

View as Markdown

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:

1{
2 "servers": {
3 "atomicwork": {
4 "type": "sse",
5 "url": "https://<your-subdomain>.atomicwork.com/api/mcp/sse",
6 "headers": {
7 "X-Api-Key": "${input:atomicwork-api-key}"
8 }
9 }
10 },
11 "inputs": [
12 {
13 "id": "atomicwork-api-key",
14 "type": "promptString",
15 "description": "Atomicwork API Key",
16 "password": true
17 }
18 ]
19}

This prompts for the API key on first use and masks the input. For a simpler setup without the prompt, use an environment variable:

1{
2 "servers": {
3 "atomicwork": {
4 "type": "sse",
5 "url": "https://<your-subdomain>.atomicwork.com/api/mcp/sse",
6 "headers": {
7 "X-Api-Key": "${env:ATOMICWORK_API_KEY}"
8 }
9 }
10 }
11}

Important Differences from Other Clients

  • The root key is servers (not mcpServers).
  • The type field 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.