GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
6
Forks
0
Issues
6
README
Setting Up GitHub MCP Server with VS Code
This guide walks you through setting up the GitHub MCP Server using Visual Studio Code and a GitHub Personal Access Token (PAT). It also includes Docker and GitHub Copilot configuration.
🔑 Step 1: Create a GitHub Personal Access Token (PAT)
- Go to GitHub PAT settings
- Click "Generate new token (classic)"
- Give your token a name (e.g.,
VSCode MCP Access
) and choose an expiration date (e.g., 90 days) - Under Permissions, enable:
- ✅ Full access to all repositories
- ✅ Read & Write access to the following scopes:
- Actions
- Administration
- Attestations
- Codespaces
- Commit statuses
- Deployments
- Issues
- Merge queues
- Metadata
- Pages
- Pull requests
- Secrets
- Variables
- Webhooks
- Workflows
- Update GitHub Action workflow files
- Click Generate token
- Copy the token and save it securely (you will not be able to view it again)
💻 Step 2: Install MCP Server via VS Code
Visit the GitHub MCP Server repository:
👉 https://github.com/github/github-mcp-server?tab=readme-ov-fileClick "VS Code: Install Server"
VS Code will open automatically. Click "Install Server" when prompted.
🐳 Step 3: Start Docker Desktop
- Open Docker Desktop on your machine.
- Wait for Docker to start (you should see "Docker is running" at the bottom of the window).
- Docker is required to run the MCP server container in the background.
🔐 Step 4: Paste Your Token
- After installing the server in VS Code, you will be prompted to paste your GitHub token.
- Paste the token you generated in Step 1.
- Authentication will complete, and your MCP server will connect to GitHub.
🤖 Step 5: Enable GitHub Copilot Agent Mode
- In Visual Studio Code, open the GitHub Copilot sidebar (usually located on the Activity Bar).
- Click the option to "Turn on Agent Mode" directly from the Copilot interface.
- Copilot will now act as an intelligent agent integrated with the MCP environment.
✅ Step 6: Test the Setup
- Create or open a test project in VS Code.
- Try making a pull request or running a GitHub Action.
- Verify Copilot suggestions, workflows, or deployments are responding.
- Check that the MCP server container is running via Docker Desktop.
Author Information
6
Followers
10
Repositories
0
Gists
0
Total Contributions
Related MCPs
A Test Automation MCP Server that analyzes GitHub repositories to detect test frameworks and generate automated test cases