Skip to main content
Glama

GitHub Integration MCP Server

GitHub 統合

GitHub MCP サーバーは、プル リクエストから差分を抽出する機能を提供します。

利用可能なツール

差分取得

GitHub プル リクエストから diff コンテンツを取得します。

パラメータ:

  • owner : リポジトリの所有者/組織名
  • repo : リポジトリ名
  • pr_number : プルリクエスト番号

戻り値: 次のものを含むオブジェクト:

  • content : PRの差分を含む文字列

認証

必須:GitHub 個人アクセス トークンを環境変数として設定します。

export GITHUB_TOKEN=<your-github-token>

プライベートリポジトリにアクセスするには、トークンに少なくともrepoスコープの権限が必要です。パブリックリポジトリの場合は、 public_repoスコープのトークンで十分です。

エラー処理

サーバーは標準のエラー処理を実装します。

  • トークンが見つからないか無効な場合はErrorCode.AuthenticationErrorが返されます
  • リポジトリの詳細が無効の場合ErrorCode.InvalidParamsが返されます。
  • 存在しない PR はErrorCode.NotFoundを返します
  • 失敗した差分フェッチはフォーマットされたエラーメッセージを返します
  • SIGINT による正常なシャットダウン

技術的な詳細

  • Highlight AI MCP SDKを使用して構築
  • GitHub REST API v3 を使用
  • Zodによる入力検証
  • stdioベースのMCPサーバーとして実行
  • Node.js >=18.0.0 をサポート

制限事項

  • GitHub APIの制限に基づいてレート制限が適用されます
  • 大きな差分はGitHub APIの制限に従って切り捨てられる可能性があります
  • トークンには適切なリポジトリアクセス権限が必要です
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

GitHub プル リクエストから差分を抽出し、ユーザーがリポジトリ内のブランチ間の変更を取得して分析できるようにします。

  1. 利用可能なツール
    1. 差分取得
  2. 認証
    1. エラー処理
      1. 技術的な詳細
        1. 制限事項

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            Provides tools for mapping and analyzing GitHub repositories. It allows users to set a GitHub Personal Access Token and retrieve detailed information about a specified repository, including its structure and summary statistics.
            Last updated -
            2
            17
            TypeScript
          • -
            security
            F
            license
            -
            quality
            Enables interaction with GitHub through the GitHub API, supporting file operations, repository management, advanced search, and issue tracking with comprehensive error handling and automatic branch creation.
            Last updated -
            9
            1
            TypeScript
          • A
            security
            A
            license
            A
            quality
            A TypeScript server that analyzes GitHub Pull Requests using the Model-Controller-Presenter pattern.
            Last updated -
            1
            5
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            Enables comprehensive GitHub operations through natural language including file management, repository administration, issue tracking, and advanced code searching.
            Last updated -
            22,573
            1
            TypeScript

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/highlight-ing/highlight-github-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server