Skip to main content
Glama

PR Reviewer

PRレビュー担当者設定ガイド

このガイドでは、GitHub および Notion との統合を含む PR Reviewer プロジェクトをセットアップするための手順を段階的に説明します。

前提条件

  • curl (MacOS/Linux用)
  • システムにPython 3.xがインストールされている

セットアップ手順

ステップ1: uvをインストールする

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

🔁 その後、ターミナルを再起動して、 uvコマンドが使用できることを確認します。


ステップ2: プロジェクトの作成と設定

MacOS/Linux:

# Create a new directory for the project uv init pr_reviewer cd pr_reviewer # Create and activate a virtual environment uv venv source .venv/bin/activate # Install core dependencies uv add "mcp[cli]" requests python-dotenv notion-client

ステップ3: requirements.txtを作成し、そこからインストールする

次の内容を含むrequirements.txtというファイルを作成します。

# Core dependencies for PR Analyzer requests>=2.31.0 # For GitHub API calls python-dotenv>=1.0.0 # For environment variables mcp[cli]>=1.4.0 # For MCP server functionality notion-client>=2.3.0 # For Notion integration

パッケージをインストールします。

uv pip install -r requirements.txt pip install -r requirements.txt

ステップ4: 環境変数を設定��る

ルート ディレクトリに.envファイルを作成し、以下を追加します。

GITHUB_TOKEN=your_github_token NOTION_API_KEY=your_notion_api_key NOTION_PAGE_ID=your_notion_page_id
GitHub トークン:
  1. GitHub → 設定 → 開発者設定 → 個人アクセストークンに移動します。
  2. **「新しいトークンを生成(クラシック)」**をクリックします。
  3. 次のスコープを有効にします。
    • read:org
    • read:repo_hook
    • repo
  4. トークンをGITHUB_TOKENとして.envファイルにコピーして貼り付けます。
Notion統合:
  1. Notion 統合に移動します。
  2. **「新しい統合」をクリックし、タイプを「内部」**に設定します。
  3. ワークスペースに追加します。
  4. 内部統合シークレットNOTION_API_KEYとしてコピーします。
  5. 統合 URL の末尾にある UUID をNOTION_PAGE_IDとしてコピーします。

ステップ5: メインスクリプトを作成する

サーバー ロジック用の空のスクリプト ファイルを作成します。

touch pr_reviewer

このファイル内にアプリケーション ロジックを追加します。


ステップ6: アプリケーションを実行する

プロジェクトを実行するには、環境がアクティブ化され、 .envが設定されていることを確認してください。

python pr_reviewer.py

-
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 および Notion と統合してプル リクエストを分析およびレビューし、Notion での自動コード レビューとドキュメント化を可能にするツールです。

  1. 前提条件
    1. セットアップ手順
      1. ステップ1: uvをインストールする
      2. ステップ2: プロジェクトの作成と設定
      3. ステップ3: requirements.txtを作成し、そこからインストールする
      4. ステップ4: 環境変数を設定��る
      5. ステップ5: メインスクリプトを作成する
      6. ステップ6: アプリケーションを実行する

    Related MCP Servers

    • -
      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
      An 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
      • Apple
      • Linux
    • -
      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/KalyankumarKonduru/MCP_test'

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