← All integrations

Developer Tools · Integration

Embed a GitHub integration in your product

Add GitHub to your product for your customers, and give your AI agents governed access to it.

GitHub is where engineering work is recorded, so an embedded GitHub integration lets your product read and write the repositories, issues, pull requests, checks and workflow runs a customer's team already lives in. Two things decide how it behaves. Token shape matters: a GitHub App installation token is scoped to the repositories that installation was granted and its limits are counted per installation, while a personal access token carries whatever the person carries, which is usually far more. And webhooks can redeliver, so the same push or review event may arrive twice and every handler has to be safe to run again. fastn keeps each installation's credentials, refreshes them, and monitors the connection, proposing a fix for your team to approve if GitHub changes its API.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let each customer install your GitHub App on the repositories they choose, so your product sees those and nothing else.
  • Open, label and close issues from your product, and read pull request review state to show what is really blocking a merge.
  • React to a push, a review or a completed workflow run, treating a redelivered event as something already handled.
  • Read check runs and commit statuses so your product can say whether a branch is safe to ship.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent summarizes the open pull requests on one repository and who has been asked to review each.
  • An agent files or updates an issue within the scopes that installation was granted, with the write attributed.
  • An agent reads a failing workflow run's logs before it suggests what broke.

Example prompt

Which pull requests on this repository have a failing check and have been waiting on review since last week?

Set up GitHub in 4 steps

  1. 01Enable the GitHub connector from your fastn dashboard.
  2. 02Have each customer authorize their own GitHub account, so calls run under their credentials rather than a shared key.
  3. 03Decide which repositories, issues, pull requests and workflow runs your product needs, then choose between an installation-scoped app token and a personal token, since rate limits differ.
  4. 04Call it from your product and expose it to your agents through the same governed connection.

GitHub connector reference: actions, triggers and auth

Why teams use the GitHub integration

  • Ship a GitHub integration without building it. Your customers connect their own GitHub account inside your product and work their services, builds and deployments there, and nothing lands on your team.
  • Handle the part that actually costs time: these apps emit a lot of webhooks, and replay after downtime has to be handled. fastn handles the auth, token refresh, rate limits and pagination, and when GitHub changes, its maintainer agent proposes a tested fix, so a GitHub update does not start in your backlog.

Used by these teams

GitHub integration FAQ

Can AI agents use this GitHub integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent summarizes the open pull requests on one repository and who has been asked to review each. For example: "Which pull requests on this repository have a failing check and have been waiting on review since last week?"

Can I react to GitHub events in real time?

Yes, through event triggers. Events are delivered per tenant and can be replayed after an outage, so a webhook missed during downtime is not silently lost.

Can an agent open or update items in GitHub?

Yes, within scoped permissions, and every action is audited so an agent's changes are attributable.

What can I build with the GitHub integration?

A common starting point: let each customer install your GitHub App on the repositories they choose, so your product sees those and nothing else. The use cases above list the rest.

Add GitHub to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.