| title | Set up GitHub Copilot for Windows development |
|---|---|
| description | Install and configure GitHub Copilot, the WinUI 3 plugin, and the Microsoft Learn MCP server for AI-assisted Windows app development. |
| ms.topic | how-to |
| ms.date | 03/10/2026 |
| ms.author | jken |
| author | GrantMeStrength |
| keywords | windows, github copilot, setup, mcp server, winui 3 plugin, vs code, visual studio |
| ms.localizationpriority | medium |
This guide walks you through setting up GitHub Copilot with the tools that make it genuinely useful for Windows development: the WinUI 3 development plugin that gives Copilot accurate Windows App SDK context, and the Microsoft Learn MCP Server that gives Copilot live access to official Windows documentation.
Note
Building and debugging WinUI 3 apps requires Visual Studio — VS Code doesn't have MSIX build tooling or WinUI project templates. If you're working on other Windows frameworks (Electron, Flutter, .NET, or Rust via winapp CLI), VS Code works well for those. Steps below are marked accordingly.
- A GitHub Copilot subscription (a free tier is available)
- Visual Studio Code or Visual Studio 2026
- Node.js 18 or later (required for the Copilot plugin install command)
GitHub Copilot is built into Visual Studio 2026. Visual Studio is required for WinUI 3 development.
- Open Visual Studio and go to Extensions > Manage Extensions.
- Search for GitHub Copilot and install it, or verify it's already installed.
- Sign in via Tools > Options > GitHub > Accounts.
For detailed setup, see Tutorial: Build a Windows app with GitHub Copilot.
- Open VS Code and go to the Extensions view (
Ctrl+Shift+X). - Search for GitHub Copilot and install the extension.
- Sign in with your GitHub account when prompted.
- To enable agent mode (required for multi-step tasks), open Settings (
Ctrl+,), search forchat.agent.enabled, and toggle it on.
For detailed setup, see GitHub Copilot in VS Code.
The WinUI 3 development plugin from the Awesome Copilot community repository teaches Copilot the right Windows App SDK patterns — preventing common mistakes like using deprecated UWP APIs.
Run this command in your project root (or any directory where you want Copilot to pick up the plugin):
copilot plugin install winui3-development@awesome-copilotThis copies agents, skills, and custom instructions into your project's .github/ directory. Copilot automatically picks them up the next time you open the project.
Tip
You can also browse and install Copilot plugins directly from VS Code using the Awesome Copilot extension.
The Microsoft Learn MCP Server gives Copilot live access to official Microsoft documentation — so it can look up current API references and code samples as it helps you code.
Add the following to your VS Code settings.json (open with Ctrl+Shift+P > Open User Settings (JSON)):
{
"mcp": {
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}
}Or, to add it per-project, create .vscode/mcp.json in your project root:
{
"servers": {
"microsoft-learn": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
}- Go to Tools > Options > GitHub > Copilot > MCP Servers.
- Add a new server with the URL:
https://learn.microsoft.com/api/mcp
Open Copilot Chat and try these prompts to confirm everything is working:
Test the WinUI 3 plugin:
"Add a confirmation dialog to my WinUI 3 app that asks before deleting an item."
Copilot should respond with a ContentDialog implementation including the required XamlRoot setup — the plugin's Windows App SDK context guides it to the right modern API without you needing to specify what to avoid.
Test the Learn MCP Server:
"Look up the latest Windows App SDK release notes and tell me what's new."
Copilot should fetch the current release notes from Microsoft Learn and summarize them.
Extend Copilot's context further with additional Windows-specific MCP servers:
| MCP Server | What it gives Copilot | URL / setup |
|---|---|---|
| Azure DevOps | Access work items, PRs, and builds | Azure DevOps MCP Server |
[!div class="nextstepaction"] Tutorial: Build a Windows app with GitHub Copilot
- Modernize or port a Windows app with Copilot
- Agentic AI tools for Windows development — full details on all tools