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

  1. In a Copilot chat session, select the Copilot harness.
  2. Run Chat: Open Customizations from the Command Palette, then open MCP Servers.
  3. 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.json when you want to share the definition with your team (when that destination is offered)
  4. Complete authentication prompts and confirm a tool call.

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