Showing content from https://help.github.com/en/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server below:
Using the GitHub MCP Server
Learn how to use the GitHub Model Context Protocol (MCP) server to extend Copilot Chat.
Note
- The remote GitHub MCP server is currently in public preview and subject to change; use of the GitHub MCP server locally is generally available (GA).
- MCP support is generally available (GA) in Copilot for Visual Studio Code, JetBrains, Eclipse, and Xcode.
- The MCP servers in Copilot policy for enterprises and organizations, disabled by default, controls use of MCP where MCP server support is generally available (GA).
- While in public preview, access to the remote GitHub MCP server through OAuth in Copilot is governed by the Copilot Editor preview features policy at the organization or enterprise level. PAT access to the server is managed by PAT policies.
Troubleshooting
If you encounter issues while using the GitHub MCP server, there are a few common troubleshooting steps you can take.
If you are having trouble authorizing the MCP server, ensure that:
- You are signed in to GitHub in your choice of IDE.
If you are authenticating with a personal access token (PAT), ensure that:
- Your GitHub PAT is valid and has the necessary scopes for the actions you want to perform.
- You have entered the correct PAT.
Copilot agent mode problems
If you are having trouble with the Copilot Chat agent mode, ensure that:
- You have selected the correct agent in the Copilot Chat box.
- You have configured the MCP server correctly in your IDE.
- You have the necessary permissions to perform the actions you are trying to execute.
Push protection block
If you are using the GitHub MCP server and push protection blocks a secret that you believe is safe to expose, you may be able to bypass the block by specifying a reason for allowing the secret. See Working with push protection and the GitHub MCP server.
General tips
If you are experiencing other issues with the GitHub MCP server, here are some general tips to help you troubleshoot:
- Check the output logs of the MCP server for any error messages.
- If you are running the MCP server locally, ensure that your local environment is set up correctly for running Docker containers.
- Try restarting the MCP server or your IDE.
Further reading
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4