
# Connect GitHub Copilot in VS Code

This guide uses a personal access token. OAuth requires a pre-registered public client and an approved callback address; entering only the server URL may attempt anonymous dynamic registration, which Reconstruct disables. See [client compatibility](../connect-ai-agents.md#client-compatibility).

Copy your MCP access token from your [Reconstruct Platform account settings](https://reconstruct.dev/platform/). See [Before you start](../connect-ai-agents.md#before-you-start) for the connection requirements.

Create `.vscode/mcp.json` in your workspace. VS Code prompts for the token and stores the answer for later use.

```json
{
  "inputs": [
    {
      "id": "reconstruct-token",
      "type": "promptString",
      "description": "Reconstruct MCP access token",
      "password": true
    }
  ],
  "servers": {
    "reconstruct": {
      "type": "http",
      "url": "https://reconstruct.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${input:reconstruct-token}"
      }
    }
  }
}
```

Run **MCP: List Servers** to start and inspect it. In Copilot Chat, switch to **Agent** mode and enable the Reconstruct tools in the tool picker. Ask Copilot to call `list_products` to confirm access. See the [official VS Code MCP configuration](https://code.visualstudio.com/docs/agent-customization/mcp-servers).

Next, try the [prompt examples](../prompt-examples.md).
