# GitHub Copilot in VS Code

## Content

1\. Open the Command Palette with `Ctrl+Shift+P` on Windows/Linux or `Cmd+Shift+P` on macOS, then run `MCP: Open User Configuration`.
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-083937-20260617.7ddf56.png?width=800)
2\. Add the following configuration in `mcp.json`:

```auto
{
  "servers": {
    "spreadjs-mcp": {
      "type": "http",
      "url": "https://developer.mescius.com/mcp/spreadjs",
      "headers": {
        "Authorization": "Bearer <YOUR_MCP_TOKEN>"
      }
    }
  }
}
```

3\. Open Copilot Chat and click the settings button in the upper\-right corner\.
4\. Select the MCP Servers section\.
5\. Right\-click `spreadjs-mcp`, then click `Start Server`.
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260619.52c0a3.png?width=800)

Reference: [MCP configuration reference](https://code.visualstudio.com/docs/copilot/reference/mcp-configuration#_configuration-file "https://code.visualstudio.com/docs/copilot/reference/mcp-configuration#_configuration-file")