GitHub PR コメント MCP サーバー
これは、GitHub 個人アクセス トークンを使用して GitHub Pull Request コメントを取得する Model Context Protocol (MCP) サーバーです。
特徴
- ファイルパス、行範囲、返信を含むPRコメントを取得します
- Octokit経由でGitHub APIを使用する
- StdioServerTransportを使用してMCPサーバーを実装します
- 構造化されたJSON形式でコメントを返します
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の github-pr-mcp を自動的にインストールするには:
手動でインストールする
- リポジトリをクローンする
- 依存関係をインストールします:
- GitHub トークンを使用して
.env
ファイルを作成します。
使用法
- プロジェクトをビルドします。
- サーバーを実行します。または、GitHub トークンを使用して直接:
- サーバーは、次のパラメータを受け入れる
get_pr_comments
というツールを公開します。owner
: リポジトリの所有者(ユーザー名または組織)repo
: リポジトリ名pull_number
: プルリクエスト番号
カーソルとの統合
Cursor と統合するには、Cursor の MCP サーバー構成で次のコマンドを使用します。
/path/to
プロジェクトへの実際のパスに置き換え、 your_github_token_here
GitHub 個人アクセス トークンに置き換えます。
テスト
サーバー機能を検証するためのテスト クライアントが含まれています。
- プロジェクトをビルドします。
- テストクライアントを実行します。
テスト クライアントはサーバーを起動し、サーバーに接続し、サンプル パラメータを使用してget_pr_comments
ツールを呼び出します。
応答フォーマット
サーバーは次の形式でコメントを返します。
発達
サーバーを開発モードで実行するには:
ライセンス
ISC
This server cannot be installed
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 個人アクセス トークンを使用して、ファイル パス、行範囲、および返信を含む GitHub Pull Request コメントを取得する MCP サーバー。
Related MCP Servers
- -securityFlicense-qualityAn MCP service that enables creating GitHub Pull Requests and adding code review comments using GitHub CLI, eliminating the need to manually handle authentication and permissions.Last updated -JavaScript
- -securityFlicense-qualityProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.Last updated -JavaScript
- AsecurityFlicenseAqualityAn MCP server that enables integration with GitHub Enterprise API, allowing users to access repository information, manage issues, pull requests, workflows, and other GitHub features through Cursor.Last updated -163314TypeScript
- AsecurityAlicenseAqualityA MCP server that provides access to GitHub trending repositories and developers data through a simple API interface.Last updated -21PythonMIT License