The github connector lets workflows work with GitHub: read and write issues and pull requests, browse and change files, follow Actions runs, search code, and more. Use it to triage issues, summarize pull requests, post status comments, or keep a changelog up to date.
A GitHub account with access to the repositories you want to automate.
A GitHub personal access token (classic or fine-grained) that can reach those repositories.
The project_contributor role or higher in your workspace, which lets you manage connections and MCP instances. See Roles and permissions .
Create a GitHub token In GitHub, open Settings , then Developer settings , then Personal access tokens , and generate a token. For a fine-grained token, select the repositories you will use and grant only the permissions your workflow needs (for example read access to contents and pull requests, and write access to issues if you will comment). Copy the token.
Add the connector to your workspace Click MCP in the sidebar, then Add connectors . Find GitHub in the App catalog , select it, and click Add to workspace . The instance now appears on the MCP connectors page. See MCP instances .
Add your credentials to a profile Open the new instance to reach Instance config . Under Profiles for this connector , click New profile , enter a Display name , and on the Type secrets on this screen tab fill in github_api_token (your token). Set Status to Active — can be used in workflows and click Save . Then click Use this profile for workflows .
Test it In Workflow Studio , add the github_get_me tool from your GitHub instance (use Browse platform MCP if it is not listed), fill in its arguments, and run the workflow. A successful step means the connection works. This tool has no arguments and returns the user the token belongs to.
Note
To reuse the same credentials in more than one profile, save them first under Connections → New custom connection , using the exact key names from Configuration , then choose Use a saved connection on the profile instead.
Pull request helper. github_list_pull_requests and github_pull_request_read feed an LLM step that writes a review summary, which github_add_issue_comment posts.
Issue triage. github_list_issues finds new issues, an LLM step classifies them, and github_issue_write sets labels and assignees.
Changelog draft. github_compare_commits between two tags feeds an LLM step, and github_create_or_update_file commits the notes (add a Human approval step first).
CI watcher. github_actions_list and github_actions_get_job_logs collect failing runs so a workflow can open an issue or notify the team.
The Required arguments column lists the fields the tool's input schema marks as required. Some of them are optional in practice; if you have nothing to set, pass an empty value such as "", [], {}, or false.
Several tools combine related actions behind a method argument (for example github_issue_read, github_issue_write, and github_pull_request_read). The tool's input schema lists the allowed method values.
Tools marked Delete remove data and may be irreversible.
Tool Access What it does Required arguments github_actions_getRead Get GitHub Actions workflow, run, job, artifact, usage, or logs URL. method, owner, repo, resource_idgithub_actions_get_job_logsRead Get GitHub Actions job logs by job ID or failed jobs in a run. owner, repogithub_actions_listRead List GitHub Actions workflows, runs, jobs, or artifacts. method, owner, repogithub_actions_run_triggerWrite Trigger GitHub Actions workflow runs or lifecycle operations. method, owner, repo
Tool Access What it does Required arguments github_add_comment_to_pending_reviewWrite Add an inline comment to a pending pull request review. owner, repo, pullNumber, review_id, path, bodygithub_add_reply_to_pull_request_commentWrite Reply to a pull request review comment. owner, repo, pullNumber, comment_id, bodygithub_create_pull_requestWrite Create a pull request in a repository. owner, repo, title, head, basegithub_list_pull_requestsRead List pull requests for a repository. owner, repogithub_merge_pull_requestWrite Merge a pull request. owner, repo, numbergithub_pull_request_readWrite Get information on a specific pull request in a GitHub repository. method, owner, repo, pullNumbergithub_pull_request_review_writeWrite Create, submit, or delete pull request reviews. method, owner, repo, pullNumbergithub_request_copilot_reviewWrite Request a GitHub Copilot code review for a pull request. owner, repo, pullNumbergithub_search_pull_requestsRead Search GitHub pull requests. querygithub_update_pull_requestWrite Update an existing pull request. owner, repo, numbergithub_update_pull_request_branchWrite Update a pull request branch with the latest base. owner, repo, pullNumber
Tool Access What it does Required arguments github_add_issue_commentWrite Add a comment to an issue. owner, repo, number, bodygithub_assign_copilot_to_issueWrite Assign Copilot to an issue in a GitHub repository. owner, repo, issue_numbergithub_get_labelRead Get a label. name, owner, repogithub_issue_dependency_readRead Read issue dependencies. method, owner, repo, issue_numbergithub_issue_dependency_writeWrite Write issue dependencies. method, owner, repo, issue_number, blocked_bygithub_issue_readRead Get information about a specific issue in a GitHub repository. method, owner, repo, issue_numbergithub_issue_writeWrite Create or update an issue in a GitHub repository. method, owner, repogithub_label_writeWrite Create, update, or delete repository labels. method, owner, repo, namegithub_list_issue_fieldsRead List custom issue fields for an organization or repository. ownergithub_list_issue_typesRead List issue types. orggithub_list_issuesRead List issues for a repository. owner, repogithub_list_labelRead List labels from a repository. owner, repogithub_search_issuesRead Search GitHub issues. querygithub_sub_issue_writeWrite Add, remove, or reprioritize sub-issues. method, owner, repo, issue_number
Tool Access What it does Required arguments github_discussion_comment_writeWrite Create or update a discussion comment. method, owner, discussionNumber, bodygithub_get_discussionRead Get a discussion. discussion_number, org, team_sluggithub_get_discussion_commentsRead List comments on a discussion. owner, discussionNumbergithub_list_discussion_categoriesRead List discussion categories for a repository or organization. ownergithub_list_discussionsRead List discussions for a repository or organization. owner
Tool Access What it does Required arguments github_projects_getRead Get GitHub Projects resources. method, ownergithub_projects_listRead List GitHub Projects resources. method, ownergithub_projects_writeWrite Write GitHub Projects resources. method, owner
Tool Access What it does Required arguments github_get_code_quality_findingRead Get a code quality finding in a repository. owner, repo, findingNumbergithub_get_code_scanning_alertRead Get a code scanning alert. alert_number, owner, repogithub_get_dependabot_alertRead Get a dependabot alert in a repository. owner, repo, alertNumbergithub_get_global_security_advisoryRead Get a global security advisory. ghsa_idgithub_get_secret_scanning_alertRead Get a secret scanning alert in a repository. owner, repo, alertNumbergithub_list_code_scanning_alertsRead List code scanning alerts in a repository. owner, repogithub_list_dependabot_alertsRead List dependabot alerts in a repository. owner, repogithub_list_global_security_advisoriesRead List global security advisories from GitHub. — github_list_org_repository_security_advisoriesRead List repository security advisories for an organization. orggithub_list_repository_security_advisoriesRead List security advisories for a repository. owner, repogithub_list_secret_scanning_alertsRead List secret scanning alerts in a repository. owner, repo
Tool Access What it does Required arguments github_dismiss_notificationWrite Dismiss a notification by marking it read or done. threadID, stategithub_get_notification_detailsRead Get detailed information for a specific GitHub notification. notificationIDgithub_list_notificationsRead List notifications for authenticated user. — github_manage_notification_subscriptionWrite Ignore, watch, or delete a notification thread subscription. notificationID, actiongithub_manage_repository_notification_subscriptionWrite Ignore, watch, or delete a repository notification subscription. owner, repo, actiongithub_mark_all_notifications_readWrite Mark all notifications as read. —
Tool Access What it does Required arguments github_create_gistWrite Create a new gist. filename, contentgithub_get_gistRead Get a gist. gist_idgithub_list_gistsRead List gists for a user. — github_update_gistWrite Update an existing gist. gist_id, filename, content
Tool Access What it does Required arguments github_search_codeRead Search code across GitHub. querygithub_search_commitsRead Search commits on GitHub. querygithub_search_orgsRead Search GitHub organizations. querygithub_search_repositoriesRead Search GitHub repositories. querygithub_search_usersRead Search GitHub users. query
Tool Access What it does Required arguments github_get_meRead Get details of the authenticated GitHub user. — github_get_team_membersRead Get team members. org, team_sluggithub_get_teamsRead Get teams the user belongs to across organizations. — github_get_userRead Get a public GitHub user profile by username. usernamegithub_list_starred_repositoriesRead List repositories starred by a user. — github_star_repositoryWrite Star a repository for the authenticated user. owner, repogithub_unstar_repositoryWrite Unstar a repository. owner, repo
Tool Access What it does Required arguments github_compare_commitsRead Compare two refs or commits in a repository. owner, repo, base, headgithub_create_branchWrite Create a branch. branch_name, owner, repo, shagithub_create_or_update_fileWrite Create or update a file in a repository. owner, repo, path, message, contentgithub_create_repositoryWrite Create repository. namegithub_delete_fileDelete Delete a file in a repository. owner, repo, path, message, shagithub_fork_repositoryWrite Create a fork of a repository. owner, repogithub_get_branchRead Get branch details for a repository. owner, repo, branchgithub_get_commitRead Get a single commit by SHA. owner, repo, shagithub_get_file_blameRead Get blame information for a file. owner, repo, pathgithub_get_file_contentsRead Get file contents from a repository path. owner, repo, pathgithub_get_latest_releaseRead Get the latest release for a repository. owner, repogithub_get_release_by_tagRead Get a release by tag name. owner, repo, taggithub_get_repoRead Get repository metadata by owner and repository name. owner, repogithub_get_repository_treeRead Get the tree structure of a GitHub repository at a specific ref or SHA. owner, repogithub_get_tagRead Get a repository tag by name. owner, repo, taggithub_list_branchesRead List branches for a repository. owner, repogithub_list_commitsRead List commits for a repository branch or ref. owner, repogithub_list_releasesRead List releases for a repository. owner, repogithub_list_repositoriesRead List repositories. — github_list_repository_collaboratorsRead List collaborators on a repository. owner, repogithub_list_tagsRead List tags for a repository. owner, repogithub_push_filesWrite Create or update multiple files in one commit. owner, repo, branch, message, files
Comment on a pull request or issue. number is the issue or pull request number.
{
"id" : "pr-comment" ,
"type" : "mcp" ,
"name" : "Post review summary" ,
"tool_name" : "github_add_issue_comment" ,
"tool_args" : {
"owner" : "your-org" ,
"repo" : "your-repo" ,
"number" : "{{input.pr_number}}" ,
"body" : "Automated review complete. \n\n {{steps.llm-summary.result.text}}"
},
"depends_on" : [
"llm-summary"
],
"timeout_s" : 30
}
Key Required Description github_api_tokenYes GitHub personal access token or fine-grained token with access to the repositories you call.
Problem What to do 401 "Bad credentials"The token is wrong, expired, or revoked. Create a new one and update the profile. 403 or 404 on a repositoryThe token cannot see that repository. For a fine-grained token, add the repository and the needed permission. Empty search results GitHub rate-limits search and can lag on new content. Narrow the query and retry later. Want to start a workflow from a GitHub event See Inbound webhooks .