Connect VS Code (GitHub Copilot) to Performance Hub
On this page
Instructions current as of 25 November 2026 (AEST). Vendor MCP support changes frequently - verify against the linked sources if something looks different.
GitHub Copilot in Visual Studio Code connects to remote MCP servers through the Copilot harness. Prefer the portable mcpServers format in Copilot's own config files.
Server details
https://app.performancehub.co/mcp
Guided setup
- In a Copilot chat session, select the Copilot harness.
- Run Chat: Open Customizations from the Command Palette, then open MCP Servers.
- Choose Add Server, enter the Performance Hub URL, and pick a destination:
- Global → Copilot Global for all workspaces (
~/.copilot/mcp-config.json, or$COPILOT_HOME/mcp-config.json) - Workspace-root
.mcp.jsonwhen you want to share the definition with your team (when that destination is offered)
- Global → Copilot Global for all workspaces (
- Complete authentication prompts and confirm a tool call.
Portable config (recommended)
User-wide (~/.copilot/mcp-config.json):
{
"mcpServers": {
"performance-hub": {
"type": "http",
"url": "https://app.performancehub.co/mcp",
"headers": {
"Authorization": "Bearer ${PH_MCP_API_KEY}"
},
"tools": ["*"]
}
}
}
export PH_MCP_API_KEY='<YOUR_TOKEN>'
Alternative header:
"headers": {
"x-mcp-api-key": "${PH_MCP_API_KEY}"
}
Provide the variable in the environment of the host that runs Copilot. For remote / Dev Container sessions, configure the server in that execution environment.
Workspace-root .mcp.json uses the same mcpServers shape. The workspace form may reject ${...} expressions in the UI — edit the JSON under Other Properties if needed, or keep secrets in the user-global file.
Deprecated editor files
For new Copilot configurations, Microsoft documents ~/.copilot/mcp-config.json and workspace-root .mcp.json, not .vscode/mcp.json or profile mcp.json (those use the deprecated Local harness servers format). Prefer the portable files above.
OAuth option
If you omit static headers, Copilot can complete MCP OAuth when the server advertises it. Authenticate from the session's server actions when prompted.
Verify
Open Copilot chat, confirm Performance Hub tools are listed, and run a read-only request. Adding a configuration alone does not confirm the session can use the server — complete a tool call.
Sources
- VS Code — MCP configuration reference: https://code.visualstudio.com/docs/agents/reference/mcp-configuration
- VS Code — Add and use MCP servers: https://code.visualstudio.com/docs/agent-customization/mcp-servers/
- GitHub Docs — Extending Copilot Chat with MCP: https://docs.github.com/en/copilot/how-tos/copilot-in-your-ide/customize-copilot/extend-copilot-with-tools-and-context/extend-copilot-chat-with-mcp?tool=vscode
- Performance Hub MCP: https://app.performancehub.co/mcp