Data coding-agents/
VS Code (GitHub Copilot) MCP config: file location, transports and auth
One row of the MCP client config reference, checked 2026-12-06.
- 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, checked Dec 6, 2026. 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.
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. Client secrets go in VS Code secret storage, not in mcp.json.
Admins set ChatMCP, ChatAllowedMcpServers and ChatDeniedMcpServers as device policies. GitHub’s “MCP servers in Copilot” policy decides whether MCP servers run at all across Copilot clients. More in VS Code MCP config.
Sources
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 version: https://agentsfordevs.com/mcp-clients/vs-code-github-copilot.md
- Reuse: quote or summarize with a link to this page. Reuse terms