Skip to main content
Use Google Drive through Corsair: one client, typed API calls, local DB sync, and incoming webhooks. What you get:
  • 22 typed API operations
  • 3 synced entities (files, folders, sharedDrives) for fast .search() / .list()
  • 1 incoming webhook event types

Setup

1

Install

2

Add the plugin

corsair.ts
Multi-tenancy is the default — 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 files
Create a file
See the full list on the API page.

Query synced data

Search synced files without hitting Drive.
Synced entities: files, folders, sharedDrives. See Database for filters and operators.

Webhooks

Fires when a file or folder is created, updated, or deleted.
Mount your framework handler once (see Frameworks). Corsair opens the Drive changes watch with that URL on connect. Drive has no console field for a webhook URL. Full event list: Webhooks. Concepts: Webhooks, Hooks.

What’s next

API reference

Every googledrive.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.