VS Code + GitHub Copilot
GitHub Copilot supports MCP servers in VS Code version 1.102 and higher, enabling Copilot to use external tools.
Prerequisites
- VS Code 1.102+ - Check your version:
code --version - GitHub Copilot extension - Install from the VS Code Marketplace
Configuration
VS Code uses project-level configuration only for MCP servers.
| Scope | Location | Format |
|---|---|---|
| Project | .vscode/mcp.json | JSON |
Note: VS Code uses servers (not mcpServers) as the key.
Configure the MCP server path based on your platform:
macOS
Create .vscode/mcp.json in your project root:
{
"servers": {
"sailfishTelemetry": {
"command": "node",
"args": ["/Applications/SF Veritas.app/Contents/Resources/mcp-server/index.js"]
}
}
}
Windows
{
"servers": {
"sailfishTelemetry": {
"command": "node",
"args": ["%LOCALAPPDATA%\\Programs\\SF Veritas\\resources\\mcp-server\\index.js"]
}
}
}
Linux
{
"servers": {
"sailfishTelemetry": {
"command": "node",
"args": ["/opt/SF Veritas/resources/mcp-server/index.js"]
}
}
}
Starting the MCP Server
MCP servers in VS Code don't start automatically by default. To start:
Option 1: From the config file
- Open
.vscode/mcp.json - Click the Start button that appears above the server config
Option 2: From Command Palette
- Open Command Palette (
Cmd+Shift+P) - Run "MCP: List Servers"
- Click Start next to
sailfishTelemetry
Auto-start Configuration
To start MCP servers automatically, add to your VS Code settings:
{
"chat.mcp.autostart": true
}
Or via Settings UI:
- Open Settings (
Cmd+,) - Search for "mcp autostart"
- Enable "Chat: Mcp Autostart"
Verification
After configuring, verify the connection:
- Open Command Palette (
Cmd+Shift+P) - Run "MCP: List Servers"
- Check that
sailfishTelemetryshows status Running - Open Output panel (View → Output)
- Select "MCP" from the dropdown to see server logs
Usage
Once the server is running, use Copilot Chat to query telemetry:
> List my telemetry sessions
> Show me recent errors from my application
> What are the slowest functions in the codebase?
> Analyze the network requests to /api endpoints
GitHub Copilot will use the MCP tools to answer questions about your application's behavior.
Troubleshooting
"MCP: List Servers" shows no servers
- Ensure
.vscode/mcp.jsonexists in your project root - Verify JSON syntax is valid (note: use
serversnotmcpServers) - Reload VS Code window
Server won't start
- Check that Node.js 18+ is installed
- Verify the app is installed at the expected location
- Check Output → "MCP" for error messages
"No telemetry data found"
- Ensure your application has been instrumented with SF Veritas SDK
- Run your application to generate telemetry data
- Check that the database exists:
ls ~/.sailfish/telemetry.db
VS Code version too old
MCP support requires VS Code 1.102+. Check your version:
code --version
Update VS Code if needed from code.visualstudio.com.