For detailed information on MCP servers in VS Code, refer to the official VS Code MCP documentation.
Prerequisites
VS Code & GitHub Copilot Extension
Download VS Code and install the GitHub Copilot extension
Service Account Token
Create a service account with appropriate permissions
Configuration
Open MCP Configuration
Open the Command Palette (
Cmd/Ctrl + Shift + P) and run MCP: Open User Configuration. This will open the mcp.json configuration file.Verify the Connection
Open GitHub Copilot Chat and ask:Example Usage
Troubleshooting
Authentication errors
Authentication errors
- Check that your service account token is valid.
- Ensure the token is entered without extra spaces or quotes.
- Verify the token has appropriate permissions (see Service Account Permissions).
- Check for typos in the org name you’re using for context, this is a common cause of authentication failures.