PR Reviewer
Guía de configuración del revisor de relaciones públicas
Esta guía proporciona instrucciones paso a paso para configurar el proyecto PR Reviewer, que incluye integraciones con GitHub y Notion.
Prerrequisitos
curl(para MacOS/Linux)Python 3.x instalado en su sistema
Related MCP server: GitHub PR Analyzer with Notion Integration
Instrucciones de configuración
Paso 1: Instalar uv
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh🔁 Reinicie su terminal luego para asegurarse de que el comando
uvesté disponible.
Paso 2: Crear y configurar el proyecto
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-clientPaso 3: Crea requirements.txt e instálalo desde allí
Crea un archivo llamado requirements.txt con el siguiente contenido:
# 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 integrationInstalar los paquetes:
uv pip install -r requirements.txt
pip install -r requirements.txtPaso 4: Configurar variables de entorno
Cree un archivo .env en el directorio raíz y agregue lo siguiente:
GITHUB_TOKEN=your_github_token
NOTION_API_KEY=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_idToken de GitHub:
Vaya a GitHub → Configuración → Configuración de desarrollador → Tokens de acceso personal.
Haga clic en "Generar nuevo token (clásico)" .
Habilitar estos ámbitos:
read:orgread:repo_hookrepo
Copie y pegue el token en su archivo
.envcomoGITHUB_TOKEN.
Integración de nociones:
Vaya a Integraciones de Notion .
Haga clic en “Nueva integración” y configure el tipo en Interno .
Añadelo a tu espacio de trabajo.
Copie el secreto de integración interna como
NOTION_API_KEY.Copie el UUID al final de la URL de integración como
NOTION_PAGE_ID.
Paso 5: Crear el script principal
Cree un archivo de script vacío para la lógica de su servidor:
touch pr_reviewerAgregue la lógica de su aplicación dentro de este archivo.
Paso 6: Ejecutar la aplicación
Para ejecutar el proyecto, asegúrese de que su entorno esté activado y que .env esté configurado:
python pr_reviewer.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Code review that knows what depends on your change — before commit or on every PR.
Monitor third-party API changes in GitHub repos, map breaks to files, open reviewable auto-fix PRs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn intelligent assistant for Pull Request analysis that integrates GitHub with Notion for automated review documentation through an MCP (Model-Controller-Provider) server architecture.1-
- FlicenseNot gradedqualityDmaintenanceFetches GitHub pull request information including file changes, diffs, and metadata, then creates analysis summaries in Notion pages.1-
- FlicenseNot gradedqualityDmaintenanceEnables the analysis of GitHub Pull Requests to extract metadata, commits, and code changes for structured AI insights. It also supports the optional creation of Notion pages to store and organize the resulting analysis.-
- FlicenseNot gradedqualityDmaintenanceAnalyzes GitHub pull requests and creates detailed reports in Notion via MCP.3-