- Home
- MCP servers
- Git Commit
Git Commit
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 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": {
"lenslp-git-commit-mcp": {
"command": "node",
"args": [
"/Users/nongzhang/Documents/web3-study/作业练习/mcp-demo/build/index.js"
]
}
}
}This MCP server enables automated, standardized Git-based commits by exposing a set of Git-related actions as MCP endpoints. It is optimized for AI assistants to perform high-quality,规范化 code submissions, ensuring consistency in commit messages, workflows, and collaboration.
How to use
You will interact with this MCP server through a client that requests commit-related actions. Your client can inquire the current repository status, review changes, stage files, create standardized commits, push or pull updates, and inspect recent history. The server is designed to learn from commit history and enforce consistent messaging and structure across your workflow.
How to install
Prerequisites: ensure you have Node.js and npm installed on your machine.
Install dependencies and build the project.
npm install
npm run build
Additional configuration and usage notes
Configure your environment to expose the Git Commit MCP server to your MCP client. The following local runtime configuration is provided for use with Claude Desktop or similar MCP clients.
{
"mcpServers": {
"git_mcp": {
"command": "node",
"args": ["/Users/nongzhang/Documents/web3-study/作业练习/mcp-demo/build/index.js"]
}
}
}
Workflow examples
Typical sequence to work with the server: analyze changes, learn from history, then safely compose and apply a well-formed commit.
Security and tips
Treat commit generation as a trusted operation. Validate generated messages before executing commits, especially when automating across large teams or critical code. Ensure your credentials and remote repository access remain secure.
Available tools
git_status
View the current working tree status, including staged, unstaged, and untracked files.
git_diff
Show the exact changes in the codebase. When staged is true, focus on changes in the staging area.
git_add
Stage selected file changes for the next commit. Use ["."] to add all changes.
git_commit
Record a commit with a standardized prefix such as feat, fix, style, or refactor, and an optional scope. Message supports Chinese.
git_push
Push local commits to the remote repository on a specified remote and branch.
git_pull
Fetch and integrate updates from a remote repository on a specified remote and branch.
git_log
Display recent commit history to learn project commit style, tone, and emoji usage.