patchfort
Provides safe, scoped tools for triaging GitHub issues and reviewing pull requests, including repository allowlisting and a propose-then-commit mutation workflow.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
patchfort
A safe, scoped, stateless MCP server for GitHub issue and pull-request triage.
Overview
patchfort is an MCP (Model Context Protocol) server that enables AI assistants like Claude to safely triage GitHub issues and review pull requests with comprehensive security controls.
Key Features
π Security-first design - Assumes the AI model may be compromised via prompt injection
π― Capability tiers - Granular control:
read<triage<writeπ‘οΈ Two-step mutations - Propose β review β commit workflow with signed handles
π Repository allowlist - Strict control over which repos can be accessed
π Untrusted content handling - All third-party text is sanitized and wrapped
π Audit logging - Complete accountability trail of all operations
π« No destructive actions - Cannot delete, close, or merge anything
β‘ Stateless architecture - Follows MCP spec revision 2026-07-28
Related MCP server: agentic-sdlc-mcp
Status
π§ In Development - This project is currently being built according to the BUILD_SPEC.md specification.
Installation
# Install via uv (recommended)
uv pip install patchfort
# Or via pip
pip install patchfortQuick Start
Configuration
Set environment variables or create a .env file:
# Required
GHTRIAGE_GITHUB_TOKEN=your_github_token_here
GHTRIAGE_ALLOWED_REPOS=owner/repo1,owner/repo2
# Optional - enable triage/write capabilities
GHTRIAGE_TIERS=read,triage,write
GHTRIAGE_HANDLE_SECRET=$(openssl rand -hex 32)Running the Server
# Stdio mode (for local MCP clients like Claude Desktop)
patchfort
# HTTP mode (for remote access)
GHTRIAGE_TRANSPORT=http GHTRIAGE_HTTP_BEARER_TOKENS=your_secret_token patchfortMCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"patchfort": {
"command": "patchfort",
"env": {
"GHTRIAGE_GITHUB_TOKEN": "your_token_here",
"GHTRIAGE_TIERS": "read,triage",
"GHTRIAGE_ALLOWED_REPOS": "owner/repo"
}
}
}
}Documentation
Security
This project implements comprehensive security controls:
S1-S12: Complete security control suite (see BUILD_SPEC.md Β§6)
Prompt injection defenses
HMAC-signed, expiring, single-use handles
Secret redaction throughout
Rate limiting per principal
Strict input validation
See SECURITY.md for security policy and responsible disclosure.
Development
# Clone and set up
git clone https://github.com/yourusername/patchfort.git
cd patchfort
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv pip install -e ".[dev]"
# Run checks
make check # lint, format, type-check, test, coverageLicense
MIT License - see LICENSE file for details.
Contributing
See CONTRIBUTING.md for guidelines.
Acknowledgments
Built following the Model Context Protocol specification and designed for safe AI-assisted GitHub triage workflows.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
Permission checks, human approval cards, and signed audit trails for AI agent tool calls.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform GitHub operations such as creating repositories, issues, pull requests, and more through natural language.-
- AlicenseAqualityBmaintenanceEnables AI coding agents to orchestrate the full software development lifecycle on GitHub, including planning, issue creation, code review, security triage, and release readiness checks.1392 npm1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI coding agents to request bounded GitHub changes through a default-deny policy, independent human approval, one-time execution with a GitHub App credential, and verifiable receipts.1-
- AlicenseBqualityCmaintenanceEnables an AI assistant to read, search, summarize, and triage GitHub issues and repository activity through an allowlisted, read-only set of tools, prompts, and resources. Every input is validated, every repository must be explicitly approved, and all third-party issue text is fenced off and marked as untrusted before it reaches the model.4MIT