Prerequisites
- A GitHub account with access to the repositories you will automate
- A personal access token (classic or fine-grained) with scopes for those repos (
repo,read:orgas needed) - project_contributor access in your AgentRuntime workspace
Connect in AgentRuntime
1
Create a GitHub connection
Go to Connections and click New custom connection to create an API key connection. Paste your GitHub token as the secret. Store the token in a connection profile — never in workflow JSON.
2
Add github MCP instance
Go to MCP, click Add instance for github, wire your connection on Instance config, set the profile active, and save.
3
Verify access
Run a test workflow with mcp_call →
get_authenticated_user to confirm the token works before automating production repos.What you can build
- PR release assistant — On webhook or schedule:
list_pull_requests→get_pull_request+list_pull_request_files→ LLM summary →add_issue_commentor Gmail notify reviewers. - Issue triage —
list_issueswith labels filter → LLM classify →update_issueto add labels and assignees. - Changelog draft —
compare_commitsbetween tags → LLM generate notes →create_or_update_fileonCHANGELOG.md→ optional human_task before merge. - Onboarding repo scan —
search_repositoriesorlist_repos→get_file_contentsfor README → store metadata in Postgres for internal dashboards.
Tools
Pull requests & branches
Issues & comments
Repository & code
Search & users
Example
Comment on a PR after an automated check passes:Configuration
Troubleshooting
Related
- Integrations quickstart
- Inbound webhooks — trigger workflows from GitHub events
- Connector catalog
- Troubleshooting