Skip to content
Last updated

GitHub integration

GitHub can be connected to Agen.co two ways, matching the Official / In-house filter in the connector picker:

  • Official — Agen.co connects through GitHub's own hosted MCP server (https://api.githubcopilot.com/mcp/), so your AI agents use the same repository, issue, pull request, and Actions tools GitHub exposes to MCP clients like VS Code and Claude Desktop.
  • In-house — Agen.co wraps the GitHub REST API directly through its own integration layer, using a classic GitHub OAuth App.

Pick Official if the built-in MCP toolsets cover what your agents need. Fall back to In-house if you'd rather manage access through GitHub's traditional OAuth scopes.


Connect via the official MCP server

Prerequisites

  • A GitHub account with permission to create GitHub Apps for the account or organization you want to connect

Register a GitHub App for MCP access

  1. In GitHub, click your profile picture → Settings (or, for an organization, Your organizationsSettings), then in the left sidebar go to Developer settings → GitHub Apps. Click New GitHub App.
  2. Fill in GitHub App name and Homepage URL.
  3. Switch back to Agen.co and start adding the connector as usual — in the Agen.co portal, go to ConnectorsMy connectors, click Add connector, and in the search bar type GitHub and select it from the results.
  4. Get back to GitHub. Under Callback URL, click Add callback URL and add both URLs Agen.co generates when you open the Add GitHub panel with Official selected:
    • Callback URL — completes the initial OAuth handshake between Agen.co and your GitHub App.
    • Gateway callback URL — used by the Agen.co MCP gateway for per-user authorization at runtime.
  5. Leave Webhook deselected (Active unchecked) unless you specifically need webhook events.
  6. Under Permissions, set the repository and organization permissions your agents need (for example, Contents, Issues, Pull requests — each has a Read-only / Read & write / No access dropdown).
  7. Click Create GitHub App.

Copy your credentials

On the new app's settings page, copy the Client ID. Under Client secrets, click Generate a new client secret and copy the value immediately — GitHub only displays it once.

Keep your Client Secret safe

The Client Secret is shown only once. If you lose it, return to this page and click Generate a new client secret to create a replacement.

Return to the Agen.co portal — the Add GitHub panel should already be open from the step above. Fill in the fields:

FieldRequiredDescription
Instance SlugNoDistinguishes multiple instances of this MCP connector — it prefixes each imported tool as slug__tool. Use lowercase kebab-case; leave empty for a single instance. This value is immutable after creation.
Client IDYesThe Client ID from the GitHub App you created above.
Client SecretYesThe Client Secret from the GitHub App you created above.
Callback URLGenerated by Agen.co. Add it to your GitHub App's Callback URLs (see above).
Gateway callback URLGenerated by Agen.co. Also add it to your GitHub App's Callback URLs (see above).

Click Connect. You're redirected to GitHub to sign in, approve the app's installation, and grant the permissions you configured.

Once connected, GitHub appears under My connectors with tools spanning:

AreaWhat it covers
Repos & contextRepository browsing, user/team context, labels, users, and organizations
Issues & pull requestsReading and managing issues and pull requests
Actions & code qualityGitHub Actions workflows, code security, secret protection, and Dependabot
CollaborationDiscussions, gists, projects, notifications, and stargazers

Enabling the GitHub connector isn't enough on its own. Tool calls remain denied until you create a policy that grants access to the specific tools you want to expose.

Additional resources