Tools
GitHub
Use the following steps to run the MCP GitHub agent and tools in a Room in the cloud.
Prerequisites
- A GitHub Personal Access Token
- pip
- A free Meshagent account: Sign Up & Authenticate
Environment Variables
Set the following environment variable before running cloud agents:
GITHUB_PERSONAL_ACCESS_TOKEN
: (string, required) Your GitHub personal access token.
Steps
-
Install the Meshagent CLI and toolkit libraries:
-
Sign up and authenticate with Meshagent CLI:
-
Start an MCP GitHub service as an agent in a Meshagent Room:
- This command launches the MCP server in a Meshagent Room (
test
). - Rooms are ephemeral by default and close if they go inactive.
- This command launches the MCP server in a Meshagent Room (
-
Start a chatbot in the Room with GitHub tools:
- This launches a chatbot in the same Room, enabling use of the GitHub toolkit.
- Multiple toolkits and agents can coexist in one Room.
- The command output shows a link to interact with the Room via browser.
Tools Available
Tools for interacting with the GitHub API, enabling file operations, repository management, search functionality, and more.
Tools Provided
Tool | Short Description |
---|---|
add_issue_comment | Add a comment to an existing issue |
create_branch | Create a new branch in a GitHub repository |
create_issue | Create a new issue in a GitHub repository |
create_or_update_file | Create or update a single file in a GitHub repository |
create_pull_request | Create a new pull request in a GitHub repository |
create_pull_request_review | Create a review on a pull request |
create_repository | Create a new GitHub repository in your account |
fork_repository | Fork a GitHub repository to your account or org |
get_file_contents | Get contents of file/directory from a repo |
get_issue | Get details of a specific issue |
get_pull_request | Get details of a specific pull request |
get_pull_request_comments | Get the review comments on a pull request |
get_pull_request_files | Get files changed in a pull request |
get_pull_request_reviews | Get reviews on a pull request |
get_pull_request_status | Get combined status of all status checks for a pull request |
list_commits | List commits of a branch |
list_issues | List issues in a repository |
list_pull_requests | List and filter pull requests |
merge_pull_request | Merge a pull request |
push_files | Push multiple files in a single commit |
search_code | Search for code across repos |
search_issues | Search issues and pull requests across GitHub |
search_repositories | Search for repositories |
search_users | Search for users |
update_issue | Update an existing issue |
update_pull_request_branch | Update a pull request branch with latest changes |