Git Operations
STDIOMCP server providing enhanced Git operations through standardized interface for AI assistants.
MCP server providing enhanced Git operations through standardized interface for AI assistants.
A Model Context Protocol (MCP) server that provides enhanced Git operations through a standardized interface. This server integrates with the MCP ecosystem to provide Git functionality to AI assistants.
git clone https://github.com/yourusername/git-mcp-v2.git cd git-mcp-v2
npm install
npm run build
Add to your MCP settings file:
{ "mcpServers": { "git-v2": { "command": "node", "args": ["path/to/git-mcp-v2/build/index.js"], "env": { "GIT_DEFAULT_PATH": "/path/to/default/git/directory", "GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat" } } } }
GIT_DEFAULT_PATH
: (Optional) Default path for Git operationsGITHUB_PERSONAL_ACCESS_TOKEN
: (Optional) GitHub Personal Access Token for GitHub operationsinit
: Initialize a new Git repositoryclone
: Clone a repositorystatus
: Get repository statusadd
: Stage filescommit
: Create a commitpush
: Push commits to remotepull
: Pull changes from remotebranch_list
: List all branchesbranch_create
: Create a new branchbranch_delete
: Delete a branchcheckout
: Switch branches or restore working tree filestag_list
: List tagstag_create
: Create a tagtag_delete
: Delete a tagremote_list
: List remotesremote_add
: Add a remoteremote_remove
: Remove a remotestash_list
: List stashesstash_save
: Save changes to stashstash_pop
: Apply and remove a stashbulk_action
: Execute multiple Git operations in sequence# Run tests npm test # Run tests with coverage npm run test:coverage # Run linter npm run lint # Format code npm run format
MIT
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)