GitHub MCP Server

by ualUsham
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Enables interaction with the GitHub API, providing tools for creating issues, retrieving repository information, listing repository issues, and searching repositories.

GitHub MCP(モデルコンテキストプロトコル)サーバー

こんにちは!これは、Claude などの MCP 互換 LLM が MCP サーバーと通信し、GitHub API と対話できるように設計された GitHub MCP サーバーです。

要件

  • TypeScript(プログラミング言語)
  • Octokit(GitHubへのAPIリクエストを行うため)
  • モデルコンテキストプロトコルSDK

プロジェクトをローカルに設定する

  1. リポジトリをクローンする
  2. npm install実行する
  3. .env.exampleファイルで提供されているサンプルを参考にして.envファイルを追加します。
  4. TypeScriptファイルをJavascriptにビルドするには、 npx tscを実行します。
  5. 最後にプロジェクトを実行するには、 node build/index.jsを実行します。

テスト方法

MCP サーバーは 2 つの方法でテストできます。

  • MCP検査官
  • クロードデスクトップ

MCPインスペクターを使用したテスト

  1. ターミナルでnpx @modelcontextprotocol/inspector node build/index.js実行するだけです。
  2. http://localhost:5173にアクセスします。
  3. MCP インスペクターとテストが表示されるようになりました。

Claude Desktopを使用したテスト

  1. ここからClaude Desktopをダウンロードしてインストールします
  2. ファイル > 設定... > 開発者 > 設定の編集に移動します
  3. claude_desktop_config.json ファイルの場所が開くはずです。
  4. コード エディターでそのファイルを開き、次のコードを追加します。
    { "mcpServers": { "gh": { "command": "node", "args": ["absolute\\path\\to\\your\\index.js\\file"], "env": { "GITHUB_TOKEN": "your-github-personal-access-token" } } } }
  5. Claudeデスクトップを終了して再度開きます

機能

MCP は主に次の2 つの機能をサポートします。

  • ツール (4)
    • create-issue : GitHubリポジトリに新しい問題を作成する
    • get-repo-info : 特定の GitHub リポジトリに関する情報を取得する
    • list-issues : GitHub リポジトリ内の問題を一覧表示する
    • search-repos : GitHubリポジトリを検索する
  • プロンプト (5)
    • create-issue-description : GitHub の問題の説明を生成する
    • create-pull-request-description : GitHub プルリクエストの説明を生成する
    • search-repos-prompt : GitHubリポジトリを検索するためのクエリを生成する
    • create-issue-prompt : GitHub の問題を作成するためのパラメータを生成する
    • enhance-github-response : 生の GitHub API レスポンスデータをフォーマットして強化する

独自のプロンプトを作成することも、Claude デスクトップの MCP の「統合を選択」オプションのドロップダウンから適切なプロンプトを選択することもできます。

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

Claude やその他の互換性のある LLM が GitHub API と対話できるようにし、問題の作成、リポジトリ情報の取得、問題の一覧表示、リポジトリの検索などの機能をサポートする MCP サーバーです。

  1. Requirements
    1. Setup the project locally
    2. Ways to test
    3. Test using MCP inspector
    4. Test using Claude Desktop
    5. Functionalities
ID: 4mcur07f57