github-mcp-test

Repository for testing GitHub MCP server

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)
  1. Go to GitHub PAT settings
  2. Click "Generate new token (classic)"
  3. Give your token a name (e.g., VSCode MCP Access) and choose an expiration date (e.g., 90 days)
  4. 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
  5. Click Generate token
  6. Copy the token and save it securely (you will not be able to view it again)

💻 Step 2: Install MCP Server via VS Code
  1. Visit the GitHub MCP Server repository:
    👉 https://github.com/github/github-mcp-server?tab=readme-ov-file

  2. Click "VS Code: Install Server"

  3. VS Code will open automatically. Click "Install Server" when prompted.


🐳 Step 3: Start Docker Desktop
  1. Open Docker Desktop on your machine.
  2. Wait for Docker to start (you should see "Docker is running" at the bottom of the window).
  3. Docker is required to run the MCP server container in the background.

🔐 Step 4: Paste Your Token
  1. After installing the server in VS Code, you will be prompted to paste your GitHub token.
  2. Paste the token you generated in Step 1.
  3. Authentication will complete, and your MCP server will connect to GitHub.

🤖 Step 5: Enable GitHub Copilot Agent Mode
  1. In Visual Studio Code, open the GitHub Copilot sidebar (usually located on the Activity Bar).
  2. Click the option to "Turn on Agent Mode" directly from the Copilot interface.
  3. Copilot will now act as an intelligent agent integrated with the MCP environment.

✅ Step 6: Test the Setup
  1. Create or open a test project in VS Code.
  2. Try making a pull request or running a GitHub Action.
  3. Verify Copilot suggestions, workflows, or deployments are responding.
  4. Check that the MCP server container is running via Docker Desktop.

Author Information

6

Followers

10

Repositories

0

Gists

0

Total Contributions

Related MCPs
floyd-weather-mcp logo

An MCP server for weather information and deployment safety checks

Go
mcp-testing-demo logo

Comprehensive testing of MCP tools and workflows

TypeScript
test-automation-mcp-server logo

A Test Automation MCP Server that analyzes GitHub repositories to detect test frameworks and generate automated test cases

TypeScript