---
title: "VS Code (GitHub Copilot) MCP config: file location, transports and auth"
type: dataset-entry
url: https://agentsfordevs.com/mcp-clients/vs-code-github-copilot
markdown: https://agentsfordevs.com/mcp-clients/vs-code-github-copilot.md
publisher: Agents for Devs
author: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: 'Agents for Devs. "VS Code (GitHub Copilot) MCP config: file location, transports and auth." Published Dec 6, 2026. https://agentsfordevs.com/mcp-clients/vs-code-github-copilot'
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/mcp-clients/vs-code-github-copilot
---

# VS Code (GitHub Copilot) MCP config: file location, transports and auth

One row of the MCP client config reference, checked 2026-12-06.

| Field | Value |
|---|---|
| Client | VS Code (GitHub Copilot) |
| Vendor | Microsoft (VS Code), GitHub (Copilot) |
| Config file | Copilot harness: ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json) and .mcp.json at the workspace root (experimental setting); editor-managed Local harness (deprecated): .vscode/mcp.json and the user profile mcp.json |
| Format | JSON; mcpServers (portable Copilot format) or servers plus inputs (editor-managed format) |
| Scopes | User (Copilot Global, shared with Copilot CLI) and workspace; editor-managed workspace and user profile |
| Transports | stdio; http (Streamable HTTP; the editor-managed client falls back to SSE); sse (legacy); editor-managed also unix:// sockets and pipe:// named pipes |
| Remote OAuth | Yes. Built-in GitHub and Microsoft Entra auth; other providers use a configured client ID (oauthClientId or oauth.clientId), a saved registration, or CIMD (client ID https://vscode.dev/oauth/client-metadata.json); client secret kept in VS Code secret storage; redirect URIs http://127.0.0.1:33418/ and https://vscode.dev/redirect |
| Admin controls | Device policies (Windows ADMX, macOS .mobileconfig, Linux /etc/vscode/policy.json): ChatMCP (chat.mcp.access), ChatAllowedMcpServers, ChatDeniedMcpServers, ChatAllowManagedMcpServersOnly, McpGalleryServiceUrl, McpEnterpriseManagedAuthIdp; GitHub's MCP servers in Copilot policy and enterprise allowlist |
| Docs | https://code.visualstudio.com/docs/agents/reference/mcp-configuration |
| Source | https://code.visualstudio.com/docs/enterprise/policies |

From the MCP client config reference (/mcp-clients), checked 2026-12-06. Licence CC BY 4.0.

VS Code now has two MCP config formats. The Copilot harness reads the portable `mcpServers` format from `~/.copilot/mcp-config.json`, and from a workspace-root `.mcp.json` when the experimental `chat.mcp.workspaceRootConfig.enabled` setting is on. The editor-managed `.vscode/mcp.json` uses `servers` and `inputs` and belongs to the Local harness, which "is deprecated and will be removed in February 2027," per the [configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).

VS Code has built-in OAuth for GitHub and Microsoft Entra. For other providers it uses a configured client ID first, then a saved registration, then CIMD, per the [MCP developer guide](https://code.visualstudio.com/api/extension-guides/ai/mcp). Client secrets go in VS Code secret storage, not in `mcp.json`.

Admins set `ChatMCP`, `ChatAllowedMcpServers` and `ChatDeniedMcpServers` as [device policies](https://code.visualstudio.com/docs/enterprise/policies). GitHub's "MCP servers in Copilot" policy decides whether MCP servers run at all across Copilot clients. More in [VS Code MCP config](/guides/vscode-mcp).

## Sources

1. [MCP configuration reference, Microsoft (VS Code)](https://code.visualstudio.com/docs/agents/reference/mcp-configuration)
2. [Add and manage MCP servers in VS Code, Microsoft (VS Code)](https://code.visualstudio.com/docs/copilot/customization/mcp-servers)
3. [MCP developer guide, Microsoft (VS Code)](https://code.visualstudio.com/api/extension-guides/ai/mcp)
4. [Enterprise policies, Microsoft (VS Code)](https://code.visualstudio.com/docs/enterprise/policies)
5. [MCP management for your enterprise, GitHub Docs](https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/enterprise/mcp-management)

## Cite this page

Agents for Devs. "VS Code (GitHub Copilot) MCP config: file location, transports and auth." Published Dec 6, 2026. https://agentsfordevs.com/mcp-clients/vs-code-github-copilot

- Page: https://agentsfordevs.com/mcp-clients/vs-code-github-copilot
- Markdown: https://agentsfordevs.com/mcp-clients/vs-code-github-copilot.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
