loading…
Search for a command to run...
loading…
Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.
Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.
NPM Version Bun Version License
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
This package is designed to be used as an MCP server with clients like Claude Desktop. Here's how to configure it:
Add this to your MCP client configuration:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "mcp-git"]
}
}
}
For custom settings:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "mcp-git"]
}
}
}
bun install
bun run build
bun run start
The server provides these MCP-accessible Git operations:
git_status - Show working tree statusgit_init - Initialize new repositorygit_log - View commit history (with max_count parameter)git_diff_unstaged - View unstaged changesgit_diff_staged - View staged changesgit_diff - Compare with branch/commitgit_add - Stage filesgit_reset - Unstage changesgit_commit - Create commitgit_create_branch - Create new branchgit_checkout - Switch branchesgit_show - View commit contentsbun run build
bun test
Pull requests are welcome. For major changes, please open an issue first to discuss proposed changes.
Выполни в терминале:
claude mcp add mcp-git -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development