Google Calendar Connector
Use this page when you need the Google-side setup details for the Google Calendar connector. For shared connector behavior, start with Connectors Overview and Provider Auth And Setup.
Runtime Shape
Section titled “Runtime Shape”- Implemented modes: fixed
live - Auth binding: Better Auth generic OAuth provider id
google - Callback URI examples:
http://localhost:3001/api/auth/oauth2/callback/googlehttps://auth.example.com/api/auth/oauth2/callback/google
- Setup console URL:
- Required connector scopes:
https://www.googleapis.com/auth/calendar.calendarlist.readonlyhttps://www.googleapis.com/auth/calendar.events.readonly
Provider-Specific Gotchas
Section titled “Provider-Specific Gotchas”- Google Calendar is live-only for storage in this repo. There is no calendar sync, Meltano tap, indexed mode, or embeddings path.
- The OAuth scopes are not enough by themselves: the Google Cloud project behind the OAuth client must have Google Calendar API enabled.
- Calendar discovery uses Google Calendar API
CalendarList.list. - Date-window and upcoming event lookup uses
Events.listwithtimeMin,timeMax,singleEvents=true, andorderBy=startTime. - Focused event search uses
Events.listwithqand an optional date window. - Recently changed event lookup uses
updatedMinonly. Do not combinesyncTokenwithq,timeMin,timeMax, ororderBy. - Do not use deprecated
alwaysIncludeEmail. - Private or shared calendars may hide event details based on the user’s access role. Calendar grounding must preserve private/limited-detail source kinds instead of inventing hidden details.
- Google Calendar, Google Contacts, Gmail, and Google Drive share the same connector auth binding. Reauthorization under an existing linked
googleaccount requests the full scope set needed by sibling Google connectors under that account.
Canonical Sources
Section titled “Canonical Sources”packages/domain/src/connectors/connectorRegistry.tsapps/auth/src/genericOAuthProviders.tsapps/api/src/mastra/tools/googleCalendarLiveQuery.tsapps/api/src/connectors/liveAccessCalendarContracts.tsdocs/features/connectors/spec.mddocs/features/live-query/spec.md