Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.
Authentication: OAuth or personal access token. See Magic Link for the runtime auth flow, or Application credentials to bring your own OAuth app.
Sample use cases
- Triage open issues across our org. Assign me to anything labeled
priority:highand post a daily digest in Slack. - Open a pull request from
feature/billing-refactorintomainwith the changelog as the description and request review from the platform team. - Find every open PR that hasn’t had a review in three days and DM the assigned reviewer.
- Summarize what landed in our production repos this week. Group by author.
Available Tools
List all workflows in a repository’s .github/workflows directory. Returns workflow IDs needed for other Actions tools
Get a specific workflow by ID or filename (e.g. ‘ci.yml’). Use list_workflows to discover workflow IDs and filenames
List workflow runs for a repository or specific workflow.
Get details for a specific workflow run including status, conclusion, and timing. Use list_workflow_runs to find run IDs
Trigger a workflow dispatch event to manually run a workflow (it must have a workflow_dispatch trigger).
List jobs for a workflow run. Each job represents a step in the workflow.
Get log content for a workflow job. Returns the last 500 lines by default; set tail_lines=0 for the full log, or max_bytes to cap the size.
List discussion categories in a repository.
List discussions in a repository with server-side filters: category (node ID or slug, use list_discussion_categories first), answered, state (OPEN/CLOSED), and sort by created/updated time.
Get a discussion by number including body, category, author, comment count, and answer info.
Get a discussion’s comments and their threaded replies, flattened with each reply after its parent (reply_to_node_id links them).
Add a comment to a discussion by number.
Update the body of an existing discussion comment.
Get file or directory contents from a repository.
Create or update a single file in a repository.
Delete a file from a repository. Requires the file’s current blob SHA (get sha from get_file_contents).
Push multiple files in a single commit using the Git Data API (atomic).
Get the file tree for a repository.
List gists for the authenticated user or a specific user. Gists are public or secret code snippets stored on GitHub
Get a specific gist by ID including all file contents
Create a new gist with one or more files.
Update a gist’s description or file contents.
Delete a gist permanently. Only the gist owner can delete it
Get a single issue by number from a specific repository.
Get a list of issues from a repository with filtering by state, labels, assignee, creator, and more.
Search for issues across all accessible repositories using GitHub’s search syntax.
Create a new issue with title, body, labels, assignees, milestone, and type.
Update an issue’s title, body, state, labels, assignees, milestone, or type.
Close an issue by setting its state to closed.
Reopen a closed issue by setting its state to open
Get comments for a specific issue. Supports filtering by date and pagination for issues with many comments
Create a new comment on an issue. Comments support GitHub markdown formatting
Update an existing issue comment’s content. Only the comment author or repository owners can update comments
Delete an issue comment. Only the comment author or repository owners can delete comments
Add labels to an issue. Labels must already exist in the repository — use list_labels to browse them or create_label to add new ones
Remove a specific label from an issue
Set labels on an issue, replacing all existing labels with the new set
Remove all labels from an issue
Lock an issue to prevent new comments. Only collaborators will be able to add new comments
Unlock an issue to allow new comments from all users
List labels for a repository with pagination
Get a single repository label by name. Use list_labels to browse all labels
Create a new label in a repository. Color must be a 6-character hex code without the # (e.g. ‘f29513’)
Update an existing repository label’s name, color, or description. Use list_labels to find label names
Delete a label from a repository. This removes the label from all issues and pull requests that have it
List notifications for the authenticated user.
Get details for a specific notification thread by ID. Use list_notifications to find thread IDs
Mark a notification thread as read. The thread stays in the inbox, marked read.
Mark all notifications as read. Scope to one repository by providing BOTH owner and repo; providing only one is rejected.
Unsubscribe from a notification thread so you no longer receive future notifications for it.
Mute or unmute a notification thread. Set ignored=true to mute the thread (suppresses all future notifications), ignored=false to unmute.
Manage repository-level notification subscription.
Get a single pull request by number from a specific repository.
Get a list of pull requests from a repository with filtering options by state, head/base branches, and sorting.
Create a pull request from head into base.
Update an existing pull request’s title, body, state, base branch, and other properties
Merge a pull request using the specified merge method (merge, squash, or rebase).
Close a pull request without merging it. The PR can be reopened later if needed
Reopen a closed pull request. The PR must not be merged to be reopened
Convert a pull request to draft status, preventing it from being merged until marked ready for review (mark_ready_for_review)
Mark a draft pull request as ready for review, allowing it to be merged once approved.
Get reviews for a pull request including approval status, comments, and reviewer information
Create a pull request review.
Create a review comment on a pull request for code review. Comments specific lines of code in pull request diffs
Reply to an existing review comment on a pull request.
Request specific users or teams to review a pull request. Reviewers will be notified of the request
Remove review requests from specific users or teams for a pull request
Get the files changed in a pull request with additions, deletions, and change counts.
Check if a pull request has been merged and get merge details if applicable
Get commits in a pull request showing the individual changes that make up the PR.
Update the head branch of a pull request to include the latest changes from the base branch
Get the combined status for a specific commit or ref (legacy statuses API).
Get check runs for a specific commit or ref (Checks API).
Get an overall CI status summary for a PR’s head commit, including checks and legacy status
Get a single repository by owner and name.
List ONLY the authenticated user’s repositories (owned, collaborator, or org member).
Create a new repository. Can create private or public repositories with various settings like issues, wiki, etc
Create a new repository in an organization.
Update an existing repository’s settings, description, visibility, and other properties
Delete a repository permanently. This action cannot be undone. Use with extreme caution
Fork a repository into the authenticated user’s account or a specified organization.
List collaborators for a repository. Filter by affiliation (outside, direct, all) and by minimum permission (pull, triage, push, maintain, admin)
Get repository branches with optional filtering by protection status. Includes commit information for each branch
Create a new branch from an existing commit. Requires the SHA of the commit to branch from
Get repository commits with filtering options by author, date range, file path, and branch/SHA
Get a single commit by SHA with detailed information including file changes, statistics, and parent commits.
Get repository releases including tags, assets, and release notes. Returns both published and draft releases
Get the latest release for a repository.
Get a release by its tag name (e.g. ‘v1.0.0’). Use get_releases to list all releases
List tags for a repository with pagination
Check if the authenticated user has starred a repository
Star a repository for the authenticated user
Unstar a repository for the authenticated user
Search GitHub repositories using search syntax.
Search code across GitHub repositories. Must include a qualifier: repo:, org:, user:, language:, path:, or extension:.
Search commits across GitHub repositories.
Search pull requests across GitHub repositories.
Search GitHub users and organizations. Use qualifiers like type:user, type:org, location:, language:, followers:>N, repos:>N.
Search for organizations on GitHub. Use qualifiers like location:, repos:>N, followers:>N.
Get the authenticated user’s profile information including public and private details
Get detailed information about any GitHub user by their username
Get detailed information about a GitHub organization by its name
Get a list of users who follow a specific user. Supports pagination for users with many followers
Get a list of users that a specific user follows. Supports pagination for users who follow many people
Check whether one user follows another user.
Follow a user as the authenticated user. The user will be notified of the follow. Requires the user:follow scope
Unfollow a user as the authenticated user. Requires the user:follow scope
Get members of an organization with filtering options by role and 2FA status
Get organizations that a user is publicly a member of
Get teams in an organization. Requires organization membership or public visibility
Get members of a specific team with filtering by role (member or maintainer)
Check a user’s membership in a team, including its state (active vs pending invitation) and role
Add a user to a team with specified role (member or maintainer). Requires admin permissions
Remove a user from a team. Requires admin permissions
Create a team in an organization. Requires org admin permissions.
Get the authenticated user’s organization memberships including private memberships.
Get public events for a user showing their recent GitHub activity. Supports pagination
Get repositories starred by a user, sorted by star time (created) or last push (updated), with pagination
Add an existing issue as a sub-issue of a parent issue.
Cancel a workflow run that is queued or in progress. Use list_workflow_runs to find run IDs
Compare two commits, branches, or tags. basehead uses ‘BASE…HEAD’ syntax, e.g. ‘main…my-feature’ or ‘v1.0.0…v2.0.0’ (cross-fork: ‘owner:branch’).
Create a discussion in a repository. Call list_discussion_categories first to get a valid category slug or node ID.
Create a release. tag_name is required: use an existing tag from list_tags, or a new tag name (created from target_commitish, default branch if omitted).
Delete a PENDING (unsubmitted) pull request review and its draft comments.
Delete a release by release_id (from get_releases or get_release_by_tag).
Dismiss a submitted pull request review with a required message explaining why.
Get a short-lived download URL for a workflow run artifact’s zip archive (the URL expires after about 1 minute).
Read a file’s raw content by its blob SHA.
Get effective branch protection: classic branch protection, falling back to repository and organization rulesets.
Get a check run’s annotations: the file, line range and message for each problem the check reported.
List the check runs inside one check suite.
List the check suites for a commit or ref.
Get the unified diff for a pull request as plain text.
Get a short-lived download URL for a repository archive (zip or tar) at a branch, tag or commit.
List users who can be assigned to issues in a repository.
List the statuses recorded against one deployment, newest first.
List a repository’s deployments, optionally filtered by commit SHA, ref or environment.
List the names of secrets configured on a repository environment.
List the deployment environments configured on a repository.
List an organization’s issue types (e.g. Bug, Task).
List a repository’s milestones with state, sort, and pagination options.
List review threads on a pull request with resolution status, file path, and comments.
List an issue’s sub-issues with pagination.
List issues across ALL repositories accessible to the authenticated user (assigned/created/mentioned/subscribed), unlike get_issues which is scoped to one repository.
List artifacts produced by a workflow run, optionally filtered by exact artifact name.
Mark a notification thread as done, removing it from the inbox.
Remove a sub-issue from its parent issue.
Re-run only the failed jobs of a workflow run (and their dependents), optionally with debug logging enabled.
Re-run all jobs in a workflow run, optionally with debug logging enabled.
Resolve a pull request review thread, marking the conversation as addressed.
Submit a PENDING pull request review with APPROVE, REQUEST_CHANGES, or COMMENT.
Reopen (unresolve) a resolved pull request review thread.
Update a release by release_id (from get_releases, get_release_by_tag, or create_release).