GitHub MCP Server

Integrations

  • Provides tools for interacting with GitHub's API, enabling repository creation, pushing content to repositories, and retrieving user information.

GitHub MCP サーバー

GitHub 統合のための Model Context Protocol (MCP) サーバー実装。このサーバーは、MCP プロトコルを介して GitHub API とやり取りするためのツールを提供します。

特徴

  • GitHubリポジトリを作成する
  • コンテンツをリポジトリにプッシュする
  • ユーザー情報を取得する
  • 適切なエラー処理とTypeScriptの型安全性
  • 自動インストールスクリプト

前提条件

  • Node.js (v18以上)
  • npm (v8以上)
  • PowerShell(Windows インストール用)
  • リポジトリスコープを持つGitHubパーソナルアクセストークン

インストール

ウィンドウズ

  1. このリポジトリをクローンします:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git
  1. インストール スクリプトを実行します。
.\install.ps1

スクリプトは次のようになります。

  • 必要なディレクトリを作成する
  • 依存関係をインストールする
  • TypeScriptコードをビルドする
  • MCP設定を構成する

手動インストール

  1. MCP ディレクトリを作成します。
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. このリポジトリをそのディレクトリにクローンします。
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 依存関係をインストールします:
cd "$env:APPDATA\Roo-Code\MCP\github-mcp" npm install
  1. TypeScript コードをビルドします。
npm run build
  1. サーバー構成を MCP 設定ファイルに追加します: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
{ "mcpServers": { "github": { "command": "node", "args": [ "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js" ], "env": { "GITHUB_TOKEN": "your-github-token-here" }, "disabled": false, "alwaysAllow": [] } } }

利用可能なツール

get_user

GitHub ユーザー情報を取得します。

{ "username": "octocat" }

リポジトリの作成

新しい GitHub リポジトリを作成します。

{ "repo_name": "my-new-repo", "description": "A new repository", "private": false }

リポジトリへのプッシュ

コンテンツを GitHub リポジトリにプッシュします。

{ "repo_name": "my-repo", "file_path": "docs/README.md", "content": "# My Project\nThis is a test file.", "message": "Add README file" }

発達

  1. リポジトリをクローンする
  2. 依存関係をインストール: npm install
  3. src/index.tsに変更を加える
  4. ビルド: npm run build
  5. 変更をテストする

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを作成する

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

MCP プロトコルを介して GitHub の API と対話するためのツールを提供し、ユーザーがリポジトリを作成したり、コンテンツをプッシュしたり、ユーザー情報を取得したりできるようにします。

  1. Features
    1. Prerequisites
      1. Installation
        1. Windows
        2. Manual Installation
      2. Available Tools
        1. get_user
        2. create_repo
        3. push_to_repo
      3. Development
        1. Contributing
          1. License
            ID: 0fmo8dc0be