# GitHub Copilot in Visual Studio 2022 / 2026

## Content

Use the same MCP configuration for Visual Studio 2022 and Visual Studio 2026. For Visual Studio 2022, use version 17.14 or later.
1\. Open Visual Studio and open `Copilot Chat` panel from `View` → `GitHub Copilot Chat`
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-082236-20260617.919162.png?width=800)
2\. Switch the mode at the bottom of Chat to `Agent`.
3\. Click the tools icon\, then click the green `+` icon to open `Configure MCP server` dialog.
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-082526-20260617.409686.png?width=800)
4\. Enter the MCP server settings:

* Destination: `Global`
* Server ID: `spreadjs-mcp`
* Type: `HTTP/SSE`
* URL: `https://developer.mescius.com/mcp/spreadjs`
* Headers name: `Authorization`
* Headers value: `Bearer <YOUR_MCP_TOKEN>`

![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-082943-20260617.5cc2e6.png?width=800)
5\. Save the configuration\. Then click the tools icon again\, then enable all tools of `spreadjs-mcp`
![](https://cdn.mescius.io/document-site-files/images/8258313f-94ec-48f2-929c-4f1bd0c4cac5/image-20260603-083118-20260617.9738ce.png?width=800)

<br>
Reference: [Microsoft Learn - Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=visualstudio "https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=visualstudio")