Get up and running with Meshagent Rooms and the MCP Git toolkit in the cloud:

  1. Install Meshagent

    pip install "meshagent[all]"
    
  2. Sign Up & Authenticate

  3. Start an MCP Server in a Meshagent Room

    meshagent service test --room=test --role=agent --image=meshagent/mcp-git:latest --env MESHAGENT_PORT=8001 --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" --name=mcp-git-service
    
    • This command creates a Meshagent room named test and deploys the MCP Git server within it.
    • The room remains active as long as it’s being used (rooms close when inactive).
  4. Join the Room with a Chatbot Agent

    meshagent chatbot join --room=test --agent-name=sample --name=sample --toolkit=mcp-git
    
    • This launches a chatbot in the same Meshagent room, giving it access to the MCP Git toolkit.
    • You can add multiple toolkits to the same agent in the room.
    • After running, you’ll receive a link to interact with the agent and its tools directly in your browser.

Tools Available

Git repository interaction and automation is enabled via these tools:

ToolShort Description
git_addAdds file contents to the staging area
git_checkoutSwitches branches
git_commitRecords changes to the repository
git_create_branchCreates a new branch from an optional base branch
git_diffShows differences between branches or commits
git_diff_stagedShows changes that are staged for commit
git_diff_unstagedShows changes in the working directory that are not yet staged
git_initInitialize a new Git repository
git_logShows the commit logs
git_resetUnstages all staged changes
git_showShows the contents of a commit
git_statusShows the working tree status

Tool Details

git_add

Adds file contents to the staging area

ParameterTypeDescription
filesarray
repo_pathstring

git_checkout

Switches branches

ParameterTypeDescription
branch_namestring
repo_pathstring

git_commit

Records changes to the repository

ParameterTypeDescription
messagestring
repo_pathstring

git_create_branch

Creates a new branch from an optional base branch

ParameterTypeDescription
branch_namestring
repo_pathstring
base_branchstringoptional

git_diff

Shows differences between branches or commits

ParameterTypeDescription
repo_pathstring
targetstring

git_diff_staged

Shows changes that are staged for commit

ParameterTypeDescription
repo_pathstring

git_diff_unstaged

Shows changes in the working directory that are not yet staged

ParameterTypeDescription
repo_pathstring

git_init

Initialize a new Git repository

ParameterTypeDescription
repo_pathstring

git_log

Shows the commit logs

ParameterTypeDescription
repo_pathstring
max_countintegeroptional

git_reset

Unstages all staged changes

ParameterTypeDescription
repo_pathstring

git_show

Shows the contents of a commit

ParameterTypeDescription
repo_pathstring
revisionstring

git_status

Shows the working tree status

ParameterTypeDescription
repo_pathstring

Meshagent & MCP Resources