Skip to main content
Use GitHub through Corsair: one client, typed API calls, local DB sync, and incoming webhooks. The plugin covers GitHub’s whole REST API (version 2022-11-28): 1,250 operations. The first 53 (issues, pull requests, repositories, releases, workflows, comments, events, users, search) take and return camelCase fields and keep their results in the plugin’s tables. Every other operation is generated from GitHub’s OpenAPI description and takes and returns GitHub’s own field names, as in GitHub’s docs: pullRequests.merge({ owner, repo, pull_number, merge_method }). Names follow GitHub’s operation ids, with pulls as pullRequests and repos as repositories. Each operation’s description names the GitHub App permission it needs. With a GitHub App connection, a call answers 403 “Resource not accessible by integration” when the app lacks that permission or isn’t installed on the repository. About 150 operations, such as Codespaces and some user settings, need a personal access token or an OAuth app token. Downloads (logs, artifacts, archives) come back as files, checks such as pullRequests.checkIfMerged as { result: true | false }. What you get:
  • 1250 typed API operations
  • 11 synced entities (branches, comments, discussions, events, forks, issues, and 5 more) for fast .search() / .list()
  • 100 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List a pull request’s files
Create an issue
See the full list on the API page.

Query synced data

Search synced repositories without hitting GitHub.
Synced entities: branches, comments, discussions, events, forks, issues, pullRequests, releases, repositories, users, workflows. See Database for filters and operators.

Webhooks

Fires when a GitHub issue is opened.
Mount your framework handler once (see Frameworks), then point the provider at that URL. Full event list: Webhooks. Concepts: Webhooks, Hooks.

What’s next

API reference

Every github.api.* operation with input and output types.

Database

Synced entities, search filters, and operators.

Webhooks

Event paths, payloads, and webhookHooks examples.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.

Get credentials

Provider-console walkthrough for keys and OAuth apps.