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

ToolDescription
create_repositoryCreate a new repository
fork_repositoryFork a repository
create_branchCreate a new branch
get_file_contentsGet file or directory contents
create_or_update_fileCreate or update a file
push_filesPush multiple files in one commit
create_issueCreate a new issue
get_issueGet issue details
list_issuesList issues in a repository
update_issueUpdate an existing issue
add_issue_commentAdd a comment to an issue
search_issuesSearch issues across repositories
create_pull_requestCreate a pull request
get_pull_requestGet pull request details
list_pull_requestsList pull requests in a repository
merge_pull_requestMerge a pull request
get_pull_request_filesGet files changed in a pull request
get_pull_request_commentsGet comments on a pull request
get_pull_request_reviewsGet reviews on a pull request
create_pull_request_reviewCreate a review on a pull request
get_pull_request_statusGet CI status for a pull request
update_pull_request_branchUpdate a pull request branch
list_commitsList commits in a repository
search_codeSearch code across repositories
search_repositoriesSearch for repositories
search_usersSearch for users