Connect to GitHub — manage repositories, issues, PRs, branches, releases, workflows, files, gists, and more.
| Action | Description | Parameters | Returns |
|---|---|---|---|
add_labels | Add labels to an issue | owner, repo, issue_number, labels | list |
create_comment ⚠ | Create a comment on an issue or pull request | owner, repo, issue_number, body | Comment |
create_gist ⚠ | Create a gist | files [description, public] | GitHubGist |
create_issue ⚠ | Create an issue in a repository | owner, repo, title [body, labels, assignees] | Issue |
create_or_update_file ⚠ | Create or update a file in a repository | owner, repo, path, content, message [sha, branch] | dict |
create_pull_request ⚠ | Create a pull request | owner, repo, title, head, base [body, draft] | PullRequest |
create_release ⚠ | Create a release | owner, repo, tag_name [name, body, draft, prerelease, target_commitish] | Release |
create_repo ⚠ | Create a new repository | name [description, private, auto_init, org] | Repository |
delete_file ⚠ | Delete a file from a repository | owner, repo, path, sha, message [branch] | dict |
fork_repo ⚠ | Fork a repository | owner, repo [organization] | Repository |
get_authenticated_user | Get the authenticated user's profile | — | dict |
get_branch | Get a single branch | owner, repo, branch | Branch |
get_content | Get file or directory contents from a repository | owner, repo, path [ref] | FileContent |
get_issue | Get a single issue by number | owner, repo, issue_number | Issue |
get_latest_release | Get the latest release | owner, repo | Release |
get_pull_request | Get a single pull request by number | owner, repo, pr_number | PullRequest |
get_rate_limit | Get the current rate limit status | — | dict |
get_repo | Get a single repository by owner and name | owner, repo | Repository |
list_branches | List branches in a repository | owner, repo [limit, page] | PaginatedList[Branch] |
list_comments | List comments on an issue | owner, repo, issue_number [limit, page] | PaginatedList[Comment] |
list_commits | List commits for a repository | owner, repo [sha, path, author, limit, page] | PaginatedList[Commit] |
list_gists | List gists for the authenticated user | [limit, page] | PaginatedList[GitHubGist] |
list_issues | List issues for a repository | owner, repo [state, labels, assignee, limit, page] | PaginatedList[Issue] |
list_pull_requests | List pull requests for a repository | owner, repo [state, limit, page] | PaginatedList[PullRequest] |
list_releases | List releases for a repository | owner, repo [limit, page] | PaginatedList[Release] |
list_repos | List repositories for a user or organisation | [org, user, limit, page] | PaginatedList[Repository] |
list_workflow_runs | List workflow runs for a repository | owner, repo [workflow_id, branch, status, limit, page] | PaginatedList[WorkflowRun] |
list_workflows | List workflows in a repository | owner, repo [limit, page] | PaginatedList[Workflow] |
merge_pull_request ⚠ | Merge a pull request | owner, repo, pr_number [merge_method, commit_title, commit_message] | dict |
remove_label ⚠ | Remove a label from an issue | owner, repo, issue_number, label_name | NoneType |
search_code | Search code across GitHub repositories | query [limit, page] | PaginatedList[CodeSearchResult] |
search_issues | Search issues and pull requests on GitHub | query [sort, order, limit, page] | PaginatedList[Issue] |
search_repos | Search repositories on GitHub | query [sort, order, limit, page] | PaginatedList[Repository] |
star_repo ⚠ | Star a repository | owner, repo | NoneType |
trigger_workflow ⚠ | Trigger a workflow dispatch | owner, repo, workflow_id [ref, inputs] | NoneType |
unstar_repo ⚠ | Unstar a repository | owner, repo | NoneType |
update_issue | Update an existing issue | owner, repo, issue_number [title, body, state, labels, assignees] | Issue |
Full schema explorer, code generation, and live API testing