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 を自動的にインストールするには:
手動でインストールする
リポジトリをクローンする
依存関係をインストールします:
npm installGitHub トークンを使用して
.envファイルを作成します。GITHUB_TOKEN=your_github_token_here
使用法
プロジェクトをビルドします。
npm run buildサーバーを実行します。
npm startまたは、GitHub トークンを使用して直接:
node dist/server.js your_github_token_hereサーバーは、次のパラメータを受け入れる
get_pr_commentsというツールを公開します。owner: リポジトリの所有者(ユーザー名または組織)repo: リポジトリ名pull_number: プルリクエスト番号
カーソルとの統合
Cursor と統合するには、Cursor の MCP サーバー構成で次のコマンドを使用します。
/path/toプロジェクトへの実際のパスに置き換え、 your_github_token_here GitHub 個人アクセス トークンに置き換えます。
テスト
サーバー機能を検証するためのテスト クライアントが含まれています。
プロジェクトをビルドします。
npm run buildテストクライアントを実行します。
npm test
テスト クライアントはサーバーを起動し、サーバーに接続し、サンプル パラメータを使用してget_pr_commentsツールを呼び出します。
応答フォーマット
サーバーは次の形式でコメントを返します。
発達
サーバーを開発モードで実行するには:
ライセンス
ISC
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.
Tools
GitHub 個人アクセス トークンを使用して、ファイル パス、行範囲、および返信を含む GitHub Pull Request コメントを取得する MCP サーバー。
Related Resources
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.
- MIT License
- -securityAlicense-qualityAn MCP server that wraps around the GitHub CLI tool, allowing AI assistants to interact with GitHub repositories through commands for pull requests, issues, and repository operations.Last updated -2MIT License
- AsecurityAlicenseAqualityA MCP server that bridges LLMs with GitHub repository management, enabling automated analysis of pull requests, issue management, tag creation, and release management through natural language.Last updated -95Apache 2.0