1. Install Meshagent Client
2. Authenticate and Set Up Meshagent
Follow Meshagent CLI Getting Started to sign up and authenticate.3. Launch the MCP Git Agent in a Room
- This spins up an MCP Git server in a temporary Meshagent room (
test
). The service is auto-cleaned up with the room.
4. Join the Room with a Chatbot using the Git Toolkit
- This starts a chatbot in the room, enabled to use the Git tool suite.
- Tip: You can use multiple toolkits and agents in the same room.
- Note: The command output will provide a URL to open the room in your browser.
5. Test the Setup
Visit the provided room link in your browser.Send a message to the
mcp-git
agent to interact with the Git MCP tools in real time (e.g., "Show me the git log"
).
Project Level Deployment (Persistent MCP Git Service)
For production or shared team usage, deploy MCP Git as persistent project-level Meshagent services:- Makes the MCP Git tools and chatbots auto-appear in all future rooms under the project.
- Eliminates the need for local processes—services and agents auto-join every room!
1. Create the MCP Git Agent as a Project Service
2. Create a Project-Level Chatbot Service with Git Toolkit
Tools Available
Server: MCP Git (Reference)
Git repository interaction and automation server. Docker Image: meshagent/mcp-gitTools Provided
Tool | Short Description |
---|---|
git_add | Adds file contents to the staging area |
git_checkout | Switches branches |
git_commit | Records changes to the repository |
git_create_branch | Creates a new branch from an optional base branch |
git_diff | Shows differences between branches or commits |
git_diff_staged | Shows changes that are staged for commit |
git_diff_unstaged | Shows changes in the working directory that are not yet staged |
git_init | Initialize a new Git repository |
git_log | Shows the commit logs |
git_reset | Unstages all staged changes |
git_show | Shows the contents of a commit |
git_status | Shows the working tree status |
Tool Details
git_add
Adds file contents to the staging area
Parameter | Type | Description |
---|---|---|
files | array | |
repo_path | string |
git_checkout
Switches branches
Parameter | Type | Description |
---|---|---|
branch_name | string | |
repo_path | string |
git_commit
Records changes to the repository
Parameter | Type | Description |
---|---|---|
message | string | |
repo_path | string |
git_create_branch
Creates a new branch from an optional base branch
Parameter | Type | Description |
---|---|---|
branch_name | string | |
repo_path | string | |
base_branch | string (optional) |
git_diff
Shows differences between branches or commits
Parameter | Type | Description |
---|---|---|
repo_path | string | |
target | string |
git_diff_staged
Shows changes that are staged for commit
Parameter | Type | Description |
---|---|---|
repo_path | string |
git_diff_unstaged
Shows changes in the working directory that are not yet staged
Parameter | Type | Description |
---|---|---|
repo_path | string |
git_init
Initialize a new Git repository
Parameter | Type | Description |
---|---|---|
repo_path | string |
git_log
Shows the commit logs
Parameter | Type | Description |
---|---|---|
repo_path | string | |
max_count | integer (optional) |
git_reset
Unstages all staged changes
Parameter | Type | Description |
---|---|---|
repo_path | string |
git_show
Shows the contents of a commit
Parameter | Type | Description |
---|---|---|
repo_path | string | |
revision | string |
git_status
Shows the working tree status
Parameter | Type | Description |
---|---|---|
repo_path | string |
Learn More
- Meshagent website: https://www.meshagent.com/
- Meshagent Documentation: https://docs.meshagent.com
- Meshagent MCP Git Docker Image: https://hub.docker.com/r/meshagent/mcp-git