Automate Git Co-authorship for Collaboration
MCP server that manages git co-authors and auto-adds Co-authored-by trailers for pair and mob programming sessions.
Maintainer of this project? Claim this page to edit the listing.
1.0.13Add to Favorites
Why it matters
Streamline collaborative coding by automatically managing git co-authorship during pair and mob programming sessions. This asset integrates with your development environment to ensure proper attribution for all contributors.
Outcomes
What it gets done
Configure git-mob CLI for team collaboration
Add, remove, and list team members for co-authorship
Automatically set co-authors for commit messages
Manage active pair or mob programming sessions
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-git-mob | bash Capabilities
Tools your agent gets
Sets up git-mob globally for the user
Sets up git-mob locally for the current repository, overriding git core.hooksPath configuration
Adds a new team member using their key, name, and email
Removes a team member by their key
Lists all team members added to Git Mob
Sets the active pair or mob session, specifying team member keys to include as co-authors
Clears the active mob or pair session
Lists all co-authors included in the current active mob or pair session
Overview
Git Mob MCP Server
Git Mob MCP Server exposes the git-mob CLI as MCP tools, letting an assistant manage a roster of team members and automatically append Co-authored-by trailers to commits during pair or mob programming sessions. Use it when a team wants correctly attributed multi-author commits without manually typing trailers; skip it for solo-author repos or environments where the git-mob CLI can't be installed.
What it does
Git Mob MCP Server is a Node.js server implementing the Model Context Protocol for the git mob CLI app. It lets an AI assistant manage co-authors for pair and mob programming sessions and automatically appends Co-authored-by trailers to commit messages - a Git convention for attributing a commit to more than one author - so that co-authored commits are correctly attributed and visible on GitHub. It is built using @modelcontextprotocol/sdk.
The server exposes two resources - git_mob_cli_help (general help and usage information for the Git Mob CLI) and git_mob_cli_version (the installed CLI version) - alongside a set of tools for setting up git-mob and managing session co-authors.
When to use - and when NOT to
Use this connector when a team practices pair or mob programming and wants commits to correctly credit every contributor without manually typing Co-authored-by trailers. It is also useful for agents that automate git workflows and need to add or clear session co-authors programmatically.
Do not use it if the project does not track multiple commit authors, or if git-mob CLI and its system requirements (Node.js 18+, git 2.32+) cannot be installed in the target environment.
Inputs and outputs
Tools accept team member keys, names, and emails as input (for adding/deleting members) and coauthor keys (for setting a mob session). Outputs include lists of team members, active session coauthors, and the corresponding Co-authored-by trailer strings ready for insertion into commit messages.
Capabilities
setup_git_mob/setup_git_mob_locally: sets up git-mob globally or locally (for repos overridingcore.hooksPath, e.g. with husky)add_team_member/delete_team_member/list_team_members: manage the team member roster by key, name, and emailset_mob_session_coauthors/clear_mob_session: start or clear an active pairing/mobbing sessionlist_mob_session_coauthors/list_mob_session_coauthor_trailers: list active session coauthors and their git trailer stringsget_git_mob_cli_help: displays general help and usage information for the Git Mob CLI
How to install
Requires Node.js 18+, git v2.32 or later, and the git-mob CLI app installed first. It supports both Claude Desktop and VS Code - for VS Code, the same server config can go in User Settings (JSON) or in a shareable .vscode/mcp.json workspace file (without the wrapping mcp key). Add to claude_desktop_config.json:
npx -y git-mob-mcp-server
Run the setup_git_mob tool once before using the other tools.
Who it's for
Development teams and engineering pairs/mobs who want AI-assisted, correctly attributed multi-author commits without manual trailer management. The project is MIT-licensed.
Source README
Git Mob MCP Server
Node.js server implementing Model Context Protocol (MCP) for git mob CLI app
You can attribute a git commit to more than one author by adding one or more Co-authored-by trailers to the commit's message. Co-authored commits are visible on GitHub.
For more information, see here.
This MCP Server will help you add them automatically and also help you store and manage co-authors for pair/mob programming sessions.
Built using @modelcontextprotocol/sdk
Features
- Setup git mob CLI
- Add / delete / list team members
- Choose team members for pairing / mobbing session
- Automatic appending of Co-authored-by in for co-authors in commit messages during pairing / mobbing session
Prerequisites
System Requirements
- Node.js: Version 18 or higher
- git: Git v2.32 or later must be installed and configured
- git-mob CLI: git-mob CLI app must be installed
API
Resources
git_mob_cli_help: General help and usage information for the Git Mob CLI.git_mob_cli_version: The installed version of the Git Mob CLI.
Tools
setup_git_mob: Sets up git-mob globally for the user.setup_git_mob_locally: Sets up git-mob locally for the current repository when it overridescore.hooksPathgit configuration variable (e.g when using husky).add_team_member: Adds a new team member using their key, name, and email.delete_team_member: Deletes a team member by their key.list_team_members: Lists all team members that have been added to Git Mob.set_mob_session_coauthors: Sets the active pairing or mob session by specifying the keys of the team members to include as coauthors.clear_mob_session: Clears the active mob or pairing session.list_mob_session_coauthors: Lists all coauthors currently included in the active mob or pairing session.list_mob_session_coauthor_trailers: Lists the git Co-authored-by trailers for the coauthors currently included in the active mob or pairing session.get_git_mob_cli_help: Displays general help and usage information for the Git Mob CLI.
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
NPX
{
"mcpServers": {
"git-mob": {
"command": "npx",
"args": ["-y", "git-mob-mcp-server"]
}
}
}
Usage with VS Code
For installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the
mcpkey is not needed in the.vscode/mcp.jsonfile.
NPX
{
"mcp": {
"servers": {
"git-mob": {
"command": "npx",
"args": ["-y", "git-mob-mcp-server"]
}
}
}
}
Setup
Run the setup_git_mob MCP tool once to setup git-mob before using other tools
Local Development
For local development and testing of the MCP server:
Clone the repository:
git clone https://github.com/Mubashwer/git-mob-mcp-server.git cd git-mob-mcp-serverInstall dependencies:
npm installStart development server:
npm startThis command will:
- Build the TypeScript source code in watch mode (automatically rebuilds on file changes)
- Start the MCP Inspector for testing and debugging the server locally
The MCP Inspector will be available at the URL shown in the terminal output, allowing you to test the server's tools and resources interactively.
FAQ
Common questions
Discussion
Questions & comments ยท 0
Sign In Sign in to leave a comment.