# Wakeport — Technical Integration & Architecture Guide ## Overview The Wakeport hosted preview provides customer-owned Gmail event metadata and consented filter controls. It does not perform outbound delivery, provider sends/deletes, event replay or OTP retrieval. The private native operator deployment and Pingline's on-device message execution remain separate. ## Security & Privacy Model 1. Standard Google sign-in verifies identity. Separate Gmail consent connects an approved review user's own verified mailbox. MCP consent grants access only to that customer's hosted records. 2. Tenant identity is server-derived; no global operator credential or local account import exists on the hosted surface. 3. Gmail access uses gmail.metadata for headers and labels, without message bodies or attachments. The provider fetches only message ID, internal date, labels and the From header needed for exact domain matching; header/address material stays transient and is never returned by MCP. Google verification of this restricted permission remains pending. 4. Cloud Firestore holds tenant-partitioned event, filter and client state. Mailbox grants are encrypted before storage. Credentials never belong in plugin files or chat. 5. Disconnect disables checks and removes the saved grant while retaining operational metadata. Review and explicitly confirm data deletion at https://hosted.wakeport.io/privacy/delete. Each operation removes at most 24 records; larger requests remain pending until privacy support finishes cleanup. A minimal record containing a hashed account identifier, confirmed-request fingerprint, version and pending or complete state remains to prevent stale work recreating data. This identity cannot automatically reconnect. Gmail, native records, backups, logs and prior client copies are outside this operation. No universal automatic metadata deletion period is claimed. ## MCP Server Specification The hosted server uses Streamable HTTP JSON-RPC at `https://hosted.wakeport.io/mcp`. Standard sign-in is available at https://hosted.wakeport.io/app; Gmail connections are limited to approved review users while Google verification is pending. Dynamic client registration, PKCE S256, exact redirect/resource binding and explicit consent are required. Client state is durable; expiring grants support refresh rotation and revocation. No shared operator token is accepted. The mcp:read grant exposes get_capabilities, list_accounts, get_status, list_events, get_event, list_subscriptions and list_deliveries. Optional mcp:write adds create_subscription, update_subscription, pause_subscription and delete_subscription. Safe filter fields are an exact sender DNS domain and event_type=message. Preview defaults to dry_run=true; apply uses the current opaque revision, with absence marker "0" for creation. Queued event reservations survive a later pause; resume skips paused-period messages. Private worker markers and field-only audit entries are omitted publicly. Lists return at most 100 records and tenant/filter-bound page tokens. Status includes bounded coverage flags rather than fabricated totals. Delivery metadata may be empty because outbound delivery is unavailable. Discover actual granted schemas through tools/list. Scheduled checks run every five minutes with at most three mailboxes per tick, 100 History records and a 25-second bound per mailbox. Connecting stores the current History baseline. Partial results preserve the cursor; expired History requires reconnect with an explicit coverage gap and no replay. No instant, near-real-time or SLA claim is made. ## ChatGPT readiness See https://wakeport.io/integrations/chatgpt for preview availability and review gates. Google permission verification is still pending; Gmail connections are limited to approved review users and remain subject to the provider's unverified-scope user cap. The Google app is External and In production; this does not mean its restricted permissions are approved. A source package or deployment does not establish public directory approval. Review requires independent customer acceptance, a supported reviewer account with sample data, verified cases and a real demo recording. ## Protocol Support - Streamable HTTP MCP with customer OAuth - OpenAPI 3.1.0 for the public website health route only - Legacy ai-plugin.json retired; use current Agent Plugins packaging for a future reviewed release - Hosted outputs contain metadata only; outbound webhooks are unavailable