ataberkuygar/github-mcp-test
If you are the rightful owner of github-mcp-test and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The GitHub MCP Server is a tool designed to integrate GitHub functionalities with Visual Studio Code, enhancing development workflows through automation and intelligent suggestions.
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-file -
Click "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.