mcp-gh-forge
Provides tools for local Git operations such as initializing branches, cleaning up branches, and retrieving changed files from revisions.
Provides tools for managing GitHub issues and pull requests, including consolidating logs and comments, and drafting new issues.
Integrates with GitHub Copilot CLI, allowing the AI assistant to execute multi-step Git and GitHub automation workflows via the MCP server.
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., "@mcp-gh-forgeRun get-changed-files for v1.0.4 and summarize changes."
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.
mcp-gh-forge π οΈ
mcp-gh-forge is a lightweight, ultra-minimal Model Context Protocol (MCP) server designed to act as a secure proxy between your AI terminal assistants (Claude Code and GitHub Copilot CLI) and your local automation workflows.
Instead of forcing your AI model to execute slow, separate, step-by-step commands, mcp-gh-forge lets the AI run robust, multi-step local Git operations and cloud GitHub API macros simultaneously through a single execution layer.
π Features
Dual-Universe Automation: Bridges local workspace operations (Git branches, files, builds) and remote cloud platform operations (GitHub Issues, Pull Requests).
Token & Cost Efficiency: Packs multi-stage developer chores into single-turn executions, slashing LLM context window bloat and API latency.
Cross-Platform Compatibility: Runs identically on Debian 13 and Windows 11 (Git Bash).
Fail-Safe Security Boundary: The AI cannot execute arbitrary terminal commands. It is bounded strictly to the execution parameter switches defined in your script blueprint directory.
Related MCP server: Git MCP Server
π Project Structure
mcp-gh-forge/
βββ index.js # Core MCP Node.js server bridge
βββ package.json # Node.js module configuration
βββ README.md # Documentationπ Getting Started
1. Prerequisites
Ensure you have Node.js (v18+) installed on your local operating system.
2. Installation
Clone or navigate into your server folder and set up your project dependencies:
# Initialize project directory
cd mcp-gh-forge
npm install3. Exposing Your Custom Automations
By default, the server expects your automated shell script (git-orchestrator.sh) to reside in your local machine's user path (~/bin/mcp-git-helpers/).
Make sure your shell scripts are executable (especially on Linux/Debian):
chmod +x ~/bin/mcp-git-helpers/git-orchestrator.shπ Linking to Your AI Assistants
To connect mcp-gh-forge to Claude Code, update your global ~/.claude.json configuration profile.
For Debian 13
{
"mcpServers": {
"mcp-gh-forge": {
"command": "node",
"args": ["/home/yourusername/projects/mcp-gh-forge/index.js"],
"env": {
"MCP_SCRIPT_DIR": "/home/yourusername/bin/mcp-git-helpers"
}
}
}
}For Windows 11 (Git Bash)
Note: Always use forward slashes (/) for paths within your JSON string parameters to ensure seamless cross-platform execution runtime support.
{
"mcpServers": {
"mcp-gh-forge": {
"command": "node",
"args": ["C:/Users/YourName/projects/mcp-gh-forge/index.js"],
"env": {
"MCP_SCRIPT_DIR": "C:/Users/YourName/bin/mcp-git-helpers"
}
}
}
}π οΈ Expose Actions & Capabilities
Once connected, mcp-gh-forge exposes the run_forge_macro tool to your interactive terminal sessions. The tool accepts the following parameters:
Action | Core Responsibility | Expected Argument Parameter |
| Pulls issue/PR logs & comments together. | PR or Issue Number ( |
| Extracts unique lists of updated files. | Revision Tag or Git Hash ( |
| Creates a local MD file & drafts a live GH issue. | Issue Title ( |
| Safely fetches main & initializes clean branch. | New Branch Suffix ( |
| Hard purges and cleans a dead branch layout. | Targeted Branch Suffix ( |
π¦Ύ Usage Example
Launch your interactive assistant inside any active target git repository:
claudeUse natural language commands to kick off your automated multi-step processes:
"Use mcp-gh-forge to run get-changed-files for v1.0.4. Analyze the output and write an engine summary changelog."
"Please initialize a new local feature branch using action branch-init for argument user-dashboard-patch."
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-quality-maintenanceA lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.Last updated
- Alicense-qualityDmaintenanceAn MCP server that provides tools for interacting with Git repositories, enabling AI assistants to manage repositories, branches, commits, and files through a standardized interface.Last updated4,6651Apache 2.0
- Alicense-qualityDmaintenanceA lightweight MCP server that handles git operations on behalf of AI coding assistants, running as a local HTTP service without external network exposure by default.Last updatedMIT
- Flicense-qualityCmaintenanceA local MCP server that turns AI clients into power users of local git repositories, enabling clone, browse, search, and inspect code without burning API tokens.Last updated
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personalβ¦
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
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/pluto-atom-4/mcp-gh-forge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server