GitHub MCP Configuration Test

November 30, 2024 ยท View on GitHub

This repository demonstrates the successful configuration and testing of GitHub integration using the Model Context Protocol (MCP) server. The migration from Windows to macOS environment has been completed and verified.

Configuration Process

  1. Environment Migration

    • Successfully migrated from Windows to macOS environment
    • Updated MCP server configuration paths
    • Configured npm global installation path for macOS
  2. Path Configuration

    • Verified npm global installation path: /opt/homebrew
    • Installed required npm package: @modelcontextprotocol/server-github
    • Updated server configuration for macOS compatibility
  3. Testing Results

    • Successfully connected to GitHub API
    • Performed repository search operations
    • Created test repository
    • Verified token permissions and access

Current Configuration

{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": [
        "/opt/homebrew/lib/node_modules/@modelcontextprotocol/server-github/dist/index.js",
        "--debug"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "[TOKEN]"
      }
    }
  }
}