GitHub
MCP
Developer
26 tools
Manage repositories, issues, pull requests, and search code
Installation
Install the typed integration package for your language:
Terminal
$ npm install @leash/integration-github
Authentication
Set GITHUB_TOKEN — Create a personal access token at github.com/settings/tokens.
Usage
import { LeashIntegrations } from '@leash/sdk'import { createGithubClient } from '@leash/integration-github'const leash = new LeashIntegrations()const client = createGithubClient(leash)const result = await client.searchRepositories()
Available Tools
| Tool | Description |
|---|---|
create_repository | Create a new repository |
fork_repository | Fork a repository |
create_branch | Create a new branch |
get_file_contents | Get file or directory contents |
create_or_update_file | Create or update a file |
push_files | Push multiple files in one commit |
create_issue | Create a new issue |
get_issue | Get issue details |
list_issues | List issues in a repository |
update_issue | Update an existing issue |
add_issue_comment | Add a comment to an issue |
search_issues | Search issues across repositories |
create_pull_request | Create a pull request |
get_pull_request | Get pull request details |
list_pull_requests | List pull requests in a repository |
merge_pull_request | Merge a pull request |
get_pull_request_files | Get files changed in a pull request |
get_pull_request_comments | Get comments on a pull request |
get_pull_request_reviews | Get reviews on a pull request |
create_pull_request_review | Create a review on a pull request |
get_pull_request_status | Get CI status for a pull request |
update_pull_request_branch | Update a pull request branch |
list_commits | List commits in a repository |
search_code | Search code across repositories |
search_repositories | Search for repositories |
search_users | Search for users |