Skip to main content
Glama

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

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 uv esté 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-client

Paso 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 integration

Instalar los paquetes:

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

Paso 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_id
Token de GitHub:
  1. Vaya a GitHub → Configuración → Configuración de desarrollador → Tokens de acceso personal.
  2. Haga clic en "Generar nuevo token (clásico)" .
  3. Habilitar estos ámbitos:
    • read:org
    • read:repo_hook
    • repo
  4. Copie y pegue el token en su archivo .env como GITHUB_TOKEN .
Integración de nociones:
  1. Vaya a Integraciones de Notion .
  2. Haga clic en “Nueva integración” y configure el tipo en Interno .
  3. Añadelo a tu espacio de trabajo.
  4. Copie el secreto de integración interna como NOTION_API_KEY .
  5. 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_reviewer

Agregue 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.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.

Una herramienta que se integra con GitHub y Notion para analizar y revisar solicitudes de extracción, lo que permite revisiones de código automatizadas y documentación en Notion.

  1. Prerrequisitos
    1. Instrucciones de configuración
      1. Paso 1: Instalar uv
      2. Paso 2: Crear y configurar el proyecto
      3. Paso 3: Crea requirements.txt e instálalo desde allí
      4. Paso 4: Configurar variables de entorno
      5. Paso 5: Crear el script principal
      6. Paso 6: Ejecutar la aplicación

    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