- Home
- MCP servers
- MGIT
MGIT
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"liliangshan-mcp-server-mgit": {
"command": "npx",
"args": [
"@liangshanli/mcp-server-mgit"
],
"env": {
"LANGUAGE": "en",
"MGIT_CMD": "mgit",
"REPO_NAME": "my-repo",
"PROJECT_NAME": "MyProject",
"CHECK_PUSH_HISTORY": "true"
}
}
}
}You deploy and run an MCP server that enables mgit push operations across multiple instances, isolating configurations and tooling per instance. This lets you push to different Git repositories from a single server while keeping projects, logs, and commands separate and manageable.
How to use
Start the MCP server to expose a push tool that runs the MGIT command you configure. You can run it directly, through npx, or via a managed production setup. When you have multiple repositories to target, create separate server instances with distinct repository names so your tools stay isolated and your logs stay organized.
How to install
Prerequisites you need before installing the MCP server:
- Node.js and npm are installed on your system
- MGit is installed and accessible if you plan to use mgit directly
Step by step commands to install and set up the server you will run in production or development environments:
# Global installation (recommended for ease of use)
npm install -g @liangshanli/mcp-server-mgit
# Or install locally in a project
npm install @liangshanli/mcp-server-mgit
# From source (clone and install dependencies)
git clone https://github.com/liliangshan/mcp-server-mgit.git
cd mcp-server-mgit
npm install
More installation and setup details
Configure environment variables to tailor the server for your environment and projects. You must set REPO_NAME to specify the target repository. Optional values customize the mgit command, language, push history checks, and branding.
# Required
export REPO_NAME="my-repo"
# Optional: MGIT command to run (default: mgit)
export MGIT_CMD="mgit"
# Optional: Language for prompts and messages (default: en)
export LANGUAGE="en"
# Optional: Disable push history check (default: true)
export CHECK_PUSH_HISTORY="true"
# Optional: Branding for the project
export PROJECT_NAME="MyProject"
Available tools
mgit_push
Executes the designated mgit push command for the repository configured via REPO_NAME, using the MGIT_CMD to construct the push invocation.
get_operation_logs
Fetches logs of previous operations with optional pagination to help you review push activity and outcomes.