GitHub
Give an agent access to GitHub with a personal access token.
Required permissions
Pull Requests
Pull requests
Pull requests and related comments, assignees, labels, milestones, and merges.Learn more.
Create Personal Access Token
Using the GitHub MCP server requires a personal access token
Navigate to your GitHub settings and click on Developer settings

Got to Fine-grained tokens and click on the Generate new token button

Enter the details for your personal access token:
Name, description and Expiration
Resource owner - we recommend setting your GitHub org as the owner
Repository access - select the repositories to which the agent should have access
Permissions - chose the permissions based on your enabled tools in ilert. In the screenshot below, the agent will have read access to code, metadata, and pull requests.

Click on Generate token
Copy your token and temporarily paste it somewhere secure (e.g. a private note). You will later need the token when setting up the GitHub MCP server in ilert.

Connect GitHub with agent
To connect GitHub with your AI SRE agent:
Navigate to Agents in the ilert navigation menu
Open the agent detail view for the agent you want to configure
Go to the Tools tab
Under the ilert hosted MCP servers section, locate the GitHub card
Click Connect on the GitHub card
In the connection dialog that appears:
Select connector: Choose "Create new connector" (or select an existing connector if you have one)
Type: Select Bearer Token from the dropdown
Secret name: Enter a name for your connector (e.g., "GitHub Production" or "GitHub Main")
Secret value: Paste the personal access token you created earlier
Host URL: Leave this field empty

Click Connect to complete the connection
After connecting, you can enable or disable specific tools needed for alert investigation, such as:
get_pull_request- Retrieve pull request informationget_pull_request_diff- Get pull request diff detailsget_commit_diff- Get commit diff informationsearch_pull_requests- Search merged pull requests by title across an owner's or organization's repositories
The GitHub integration is now connected and ready to use for root cause analysis.
Last updated
Was this helpful?