GitHub Flow MCP
Generates Markdown updates for Basecamp that can be independently previewed and published via a Basecamp MCP.
Provides tools for inspecting GitHub repositories, branches, pull requests, reviews, and authenticated user information, as well as preview-bound mutations for creating remote branches and pull requests.
Provides tools for listing and inspecting GitHub Actions workflows and workflow runs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Flow MCPpreview a pull request for my latest local commit on main"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub Flow MCP
A policy-aware Model Context Protocol server for GitHub and GitHub Actions workflows. It is designed for AI-assisted infrastructure work where agents can inspect repositories and prepare changes, while remote mutations remain constrained by explicit preview-bound approval.
Why this exists
AI agents are useful at collecting context and preparing repetitive Git operations, but infrastructure workflows still need reviewability and guardrails. This MCP exposes a deliberately small GitHub surface:
repository, branch, pull request, review, and Actions inspection
local Git inspection without silent branch/commit/push/merge operations
branch and pull-request previews
short-lived, single-use confirmation tokens bound to the exact preview
optional Basecamp linkage
optional repository-specific label and reviewer policy
no merge tool, no branch deletion, no branch-protection changes, and no API-created commits
Related MCP server: devflow-mcp
Safety model
Remote write tools are not registered unless:
GITHUB_WRITE_ENABLED=trueWhen enabled, branch creation, pull-request creation, and PR comments still require a confirmation_id returned by their matching preview. The token is short-lived, single-use, and bound to the exact payload. If a branch source SHA, PR body, label set, reviewer set, or comment changes, a new preview is required.
The MCP enforces preview-before-write and exact payload binding. The MCP host should only forward theconfirmation_id after actual human approval.
Installation
uv tool install git+https://github.com/thiagorchaves/github-flow-mcp.gitFor development:
git clone https://github.com/thiagorchaves/github-flow-mcp.git
cd github-flow-mcp
uv sync --extra devConfiguration
cp .env.example .env
chmod 600 .envUse a fine-grained GitHub token with the minimum repositories and permissions needed. Typical permissions are Metadata read, Contents read/write for branch creation, Pull requests read/write, Issues read/write for labels/comments, Actions read, and Members read only when reviewer availability checks are required.
Organization-specific policy belongs in your local .env, not in the public repository. For example, you can require Basecamp links, configure a production branch marker, or require an AI-review label for selected repositories.
Kiro / MCP host example
{
"mcpServers": {
"github-flow": {
"command": "uvx",
"args": ["--from", "git+https://github.com/thiagorchaves/github-flow-mcp.git", "github-flow-mcp"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}",
"GITHUB_DEFAULT_OWNER": "${GITHUB_DEFAULT_OWNER}",
"GITHUB_INITIALS": "tc",
"GITHUB_DEFAULT_BASE_BRANCH": "main",
"GITHUB_LOCAL_REPOS_ROOT": "${HOME}/Projects",
"GITHUB_WRITE_ENABLED": "false",
"GITHUB_CONFIRMATION_TTL_SECONDS": "300"
},
"autoApprove": []
}
}
}Tools
Read and diagnostics
healthcheckget_authenticated_userget_repositorylist_branchesget_collaborator_permissioninspect_local_repositorylist_pull_requestsget_pull_requestlist_pull_request_fileslist_pull_request_reviewslist_workflowslist_workflow_runs
Preview
preview_branch_namepreview_local_commitpreview_remote_branchpreview_pull_requestpreview_pull_request_comment
Remote writes, registered only when enabled
create_remote_branchcreate_pull_requestadd_pull_request_comment
Basecamp handoff
build_basecamp_pr_update
This tool only generates Markdown. A Basecamp MCP can independently preview and publish that update.
Recommended workflow
Retrieve the work-item context.
Inspect the local repository without modifying it.
Preview the branch and show it to the user.
After approval, use the preview token to create the remote branch if needed.
Edit and commit locally using your normal signed Git workflow.
Push the branch.
Preview the pull request.
After approval, use its token to open the PR.
Let humans review the PR and apply the infrastructure change through the normal delivery process.
Development
uv sync --extra dev
uv run ruff format --check .
uv run ruff check .
uv run mypy github_flow_mcp
uv run pytestSecurity
Never commit .env, GitHub tokens, internal repository data, company-specific paths, or private work-item URLs. See SECURITY.md.
License
MIT. See LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-quality-maintenanceA context-efficient GitHub MCP server designed for AI agents to manage repositories, issues, pull requests, and actions directly via cloud workflows. It focuses on a compact tool surface to minimize context waste while providing comprehensive read and write coverage without requiring a local Git CLI.Last updated
- Alicense-qualityDmaintenanceA production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.Last updated10ISC
- Flicense-qualityDmaintenanceA self-hosted GitHub MCP server with per-repository guardrails for AI agents, enabling fine-grained access control and audit trails.Last updated
- Flicense-qualityCmaintenanceA local MCP server that provides controlled repository access with policy-based file filtering, secret redaction, and audit logging for AI coding agents.Last updated
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Git-native policy layer for AI agents: check_action verdicts against rules approved via PR.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/thiagorchaves/github-flow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server