Back to Home
y-hirakaw icon

mcp-gh-pr-mini

Verified Safe

by y-hirakaw

Overview

A minimal Model Context Protocol (MCP) server for interacting with GitHub pull requests, supporting dual authentication (PAT or GitHub CLI).

Installation

Run Command
npx mcp-gh-pr-mini

Environment Variables

  • GITHUB_PERSONAL_ACCESS_TOKEN
  • DEBUG
  • LOG_LEVEL

Security Notes

The server demonstrates good security practices including explicit input validation using Zod for all MCP tool parameters, which significantly reduces the risk of injection vulnerabilities. It uses environment variables for sensitive data like GitHub Personal Access Tokens, avoiding hardcoding. The dual authentication system, while complex, appears to be securely implemented by abstracting underlying mechanisms (HTTPS fetch for PAT, `gh` CLI for CLI auth). Execution of external `gh` commands is performed via `child_process.spawn` with arguments carefully constructed from validated inputs, and data is passed via `stdin` for API calls, mitigating typical shell injection risks. There are no apparent uses of `eval` or deliberate obfuscation. Comprehensive error handling is in place.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens3000
Stars0
Forks0
Last Update2025-12-01

Tags

GitHubPull RequestsMCP ServerDeveloper ToolAutomation