VS Code¶
Official docs:
- https://code.visualstudio.com/docs/copilot/customization/mcp-servers
- https://code.visualstudio.com/docs/copilot/reference/mcp-configuration
Config Files¶
Workspace scope:
.vscode/mcp.json
User scope:
- run
MCP: Open User Configurationfrom the Command Palette to open the user profilemcp.json
VS Code uses servers instead of mcpServers.
Example Config¶
{
"servers": {
"ytText": {
"type": "stdio",
"command": "yt-text"
}
}
}
If yt-text is not on PATH, replace "yt-text" with an absolute path.
Verify¶
Use the Command Palette:
MCP: List ServersMCP: Open Workspace Folder MCP Configuration
After the server is listed, ask Copilot Chat or an agent to call
get_metadata.
Notes¶
- VS Code can also add servers through
MCP: Add Server, but a checked-in.vscode/mcp.jsonis the most explicit setup for this repo. - VS Code supports optional
inputs,env, andenvFilefields if you later add MCP servers that need secrets.yt-textdoes not need those for the base install. - Sandboxing is available for local stdio servers on macOS and Linux if you want tighter isolation.