GitHub MCP Server Test Repository

by tomo-cps

287 downloads
Not rated
GitHub

About

The GitHub MCP (Model Context Protocol) Server enables AI-assisted development tools like GitHub Copilot to access and understand GitHub repositories and their contexts. It acts as a bridge between AI assistance tools and your GitHub repositories, providing repository metadata…

Details

Author
tomo-cps
Downloads
287
Categories
Developer Tools

- Provides AI assistants with repository metadata, files, issues, and pull requests
- Allows AI tools to comprehend code structures and relationships
- Runs as a containerized Docker service for easy setup
- Enhances code understanding for AI assistants in VS Code

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name GitHub MCP Server Test Repository
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install Docker, then configure VS Code's settings.json with the MCP server configuration using the docker command and the image ghcr.io/github/github-mcp-server. Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable. Ensure Docker is running before using GitHub Copilot features.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "github mcp server test repository": {
            "github": {
                "command": "docker",
                "args": [
                    "run",
                    "-i",
                    "--rm",
                    "-e",
                    "GITHUB_PERSONAL_ACCESS_TOKEN",
                    "ghcr.io/github/github-mcp-server"
                ],
                "env": {
                    "GITHUB_PERSONAL_ACCESS_TOKEN": ""
                }
            }
        }
    }
}

McpServers

{
    "github": {
        "command": "docker",
        "args": [
            "run",
            "-i",
            "--rm",
            "-e",
            "GITHUB_PERSONAL_ACCESS_TOKEN",
            "ghcr.io/github/github-mcp-server"
        ],
        "env": {
            "GITHUB_PERSONAL_ACCESS_TOKEN": ""
        }
    }
}

GitHub MCP Server Test Repository

This repository is created to test the GitHub Model Context Protocol (MCP) Server integration with VS Code.

What is GitHub MCP Server?

The GitHub MCP (Model Context Protocol) Server is a specialized server that enables AI-assisted development tools like GitHub Copilot to access and understand GitHub repositories and their contexts. It acts as a bridge between AI assistance tools and your GitHub repositories.

Key Features

- Repository Context: Provides AI assistants with access to repository metadata, files, issues, and pull requests
- Semantic Understanding: Allows AI tools to comprehend code structures and relationships within repositories
- Docker-Based Deployment: Runs as a containerized service for easy setup and consistency

Setup Instructions

To set up the GitHub MCP Server in VS Code:

1. Install Docker on your system
2. Configure VS Code settings.json with the MCP server configuration:

"mcp": {
    "servers": {
        "github": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "GITHUB_PERSONAL_ACCESS_TOKEN",
                "ghcr.io/github/github-mcp-server"
            ],
            "env": {
                "GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-personal-access-token"
            }
        }
    }
}

3. Start Docker and ensure it's running before using GitHub Copilot features

Benefits

- Enhanced code understanding for AI assistants
- More relevant suggestions based on repository context
- Improved collaboration between developers and AI tools
- Access to GitHub-specific features directly within your editor

Security Considerations

- The MCP server requires a GitHub Personal Access Token with appropriate permissions
- All communication between VS Code and the MCP server is secure
- The server runs locally in a Docker container for added isolation

---

This repository serves as a demonstration of GitHub MCP Server functionality.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.