Docs / MCP server / Connect VS Code
Connect VS Code
The workspace file is .vscode/mcp.json. Its top-level key is servers, not mcpServers.
Steps
- Create
.vscode/mcp.jsonin the project root and paste one of the blocks below. The MCP: Add Server command in the Command Palette walks through the same setup. - Start the server with the Start link that appears above it in the file. The tools show up in Copilot Chat's Agent mode.
- To add the local server to your user profile instead of one workspace, use the command-line form.
Configuration
Hosted (recommended)
{
"servers": {
"thefaceanalysis": {
"type": "http",
"url": "https://mcp.thefaceanalysis.com/mcp"
}
}
}Local (npx)
{
"servers": {
"thefaceanalysis": {
"type": "stdio",
"command": "npx",
"args": ["-y", "thefaceanalysis-mcp"]
}
}
}User profile (local)
code --add-mcp "{\"name\":\"thefaceanalysis\",\"command\":\"npx\",\"args\":[\"-y\",\"thefaceanalysis-mcp\"]}"Check it works
Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Source for the VS Code syntax: VS Code: MCP servers. Client menus and file locations change; if a step no longer matches, follow that page and tell us on GitHub.
See also the tool reference and troubleshooting.