Integrations
VibeMCP connects to two email/calendar ecosystems through their official APIs.
Authentication Flows
flowchart LR
subgraph Google["Google OAuth2"]
G1["add_google_account"] --> G2["Browser opens\nConsent screen"]
G2 --> G3["Local callback\nlocalhost:4100"]
G3 --> G4["complete_google_auth\nTokens stored"]
end
subgraph Microsoft["Microsoft Device Code"]
M1["add_microsoft_account"] --> M2["Device code shown"]
M2 --> M3["User enters code at\nmicrosoft.com/devicelogin"]
M3 --> M4["complete_microsoft_auth\nTokens stored"]
end
classDef googleStyle fill:#f0fdf4,stroke:#22c55e,color:#14532d
classDef msStyle fill:#eff6ff,stroke:#3b82f6,color:#1e3a8a
class Google googleStyle
class Microsoft msStyle
Gmail
API: Gmail API via googleapis npm package
Auth: OAuth 2.0 with browser-based consent flow. Local callback server on http://localhost:4100/code.
Tools:
| Tool | API Endpoint |
|---|---|
gmail_list_messages | GET /gmail/v1/users/{userId}/messages |
gmail_get_message | GET /gmail/v1/users/{userId}/messages/{id} |
gmail_send_message | POST /gmail/v1/users/{userId}/messages/send |
gmail_reply_to_message | POST /gmail/v1/users/{userId}/messages/send (with threading) |
gmail_create_draft | POST /gmail/v1/users/{userId}/drafts |
gmail_list_labels | GET /gmail/v1/users/{userId}/labels |
gmail_list_threads | GET /gmail/v1/users/{userId}/threads |
gmail_get_thread | GET /gmail/v1/users/{userId}/threads/{id} |
TOON field mapping:
messages[N]{id,subject,from,date,snippet}Fields are extracted from Gmail message headers (Subject, From, Date) and metadata (id, snippet).
Outlook Mail
API: Microsoft Graph via native fetch
Auth: Device Code Flow via @azure/msal-node. No browser redirect needed, making it ideal for CLI environments.
Tools:
| Tool | API Endpoint |
|---|---|
outlook_list_messages | GET /me/mailFolders/{id}/messages |
outlook_get_message | GET /me/messages/{id} |
outlook_send_message | POST /me/sendMail |
outlook_reply_to_message | POST /me/messages/{id}/reply |
outlook_forward_message | POST /me/messages/{id}/forward |
outlook_list_folders | GET /me/mailFolders |
outlook_move_message | POST /me/messages/{id}/move |
outlook_search | GET /me/messages?$search= |
TOON field mapping:
messages[N]{id,subject,from,receivedDateTime,isRead,preview}The from field is flattened from from.emailAddress.address.
Google Calendar
API: Google Calendar API via googleapis npm package
Auth: Same OAuth 2.0 flow as Gmail (shared credentials).
TOON field mapping:
events[N]{id,summary,start,end,location,organizer}Deep flattening: start.dateTime -> start, organizer.email -> organizer. This produces the highest token savings (70%).
Outlook Calendar
API: Microsoft Graph Calendar via native fetch
Auth: Same Device Code flow as Outlook Mail (shared tokens).
TOON field mapping:
events[N]{id,subject,start,end,location,organizer}Partial flattening: organizer.emailAddress.address -> organizer, but start/end retain { dateTime, timeZone } structure.
Data Flow
flowchart TD
subgraph API["External APIs"]
GAPI["Gmail API\nJSON response"]
MAPI["Microsoft Graph\nJSON response"]
end
subgraph Service["Service Layer"]
FL["Field Selection\nPick optimal fields per type"]
FLAT["Flatten\nNested → flat primitives"]
end
subgraph Encode["TOON Encoder"]
HDR["Header: messages[N]{id,subject,from,...}"]
ROWS["Rows: tab-delimited values"]
end
GAPI --> FL
MAPI --> FL
FL --> FLAT
FLAT --> HDR
HDR --> ROWS
classDef apiStyle fill:#fef3c7,stroke:#f59e0b,color:#92400e
classDef svcStyle fill:#f0f9ff,stroke:#0ea5e9,color:#0c4a6e
classDef encStyle fill:#f0fdf4,stroke:#22c55e,color:#14532d
class API apiStyle
class Service svcStyle
class Encode encStyle
Privacy
VibeMCP is a passthrough. It fetches from APIs on demand and stores nothing beyond OAuth tokens. Token files are local JSON in ~/.vibemcp/. No telemetry, no hosted services, no data retention.
See Privacy Policy and Security Policy.