- Resource names. Google’s APIs address everything by its full name:
projects/<project>/databases/(default)/documents/users/ada,projects/<project>/sites/<site>,projects/<project>/apps/<app>. Pass them whole innameorparent; slashes are kept. - Groups.
firestore.*(documents, queries, transactions, indexes, databases, backups),auth.*(Identity Toolkit v1: users and sign-in) andauthAdmin.*(v2: project config, tenants, providers),database.*(the Realtime Database’s data and rules, bydatabaseUrl) anddatabaseInstances.*,storage.*(Cloud Storage objects and buckets;storage.objects.insertwithfileuploads,storage.objects.downloadreturns the bytes) andstorageBuckets.*,hosting.*,remoteConfig.*,messaging.*(FCM v1),appDistribution.*,rules.*,appCheck.*andmanagement.*(projects and apps). - Lists page with
pageSizeandpageToken; pass the response’snextPageTokenfor the next page. Cloud Storage lists (storage.*) takemaxResultsinstead ofpageSize. - Client sign-in calls (
auth.accounts.*,auth.getPublicKeysand the other top-levelauth.get*reads) take the project’s Web API key asapiKey(Project settings > General). - Remote Config. The get operations return the template’s
etag; pass it asifMatchwhen you publish, so a change someone published in between is refused instead of overwritten. - Emulators.
emulatorUrlsin the plugin options points groups at the Firebase Local Emulator Suite (calls then sendBearer owner). - Risk. Reads (GETs and the POSTs that only read, such as
runQueryandaccounts.lookup) areread. Deletes, sends (FCM messages, email and SMS codes including MFA starts, tester invitations), bulk document deletes, bucket retention locks, imports, restores and rollbacks, publishing Remote Config, rules and Hosting releases, writing a whole Realtime Database path (database.set) or its rules, adding Firebase or Analytics to a project and minting credentials aredestructive; other writes arewrite. - Not wrapped: Firestore’s streaming Listen and Write RPCs, Cloud Storage push channels, and the rest of Cloud Storage (ACLs, HMAC keys, caches, folders, notifications), Data Connect, App Hosting, Crashlytics and ML.
- 405 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Firebase API key before the first call: More: API Key
pnpm corsair setup --plugin=firebase --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.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
Get a Firestore documentWhat’s next
API reference
Every
firebase.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.