-
Notifications
You must be signed in to change notification settings - Fork 1
Google Workspace
Zlatko Lakisic edited this page Aug 4, 2026
·
2 revisions
Comstar does not ship a custom Gmail/Calendar/Drive MCP. It pairs OAuth once (device code + QR), stores a per-userid refresh token, runs pinned mcp-server-google-workspace via LocalMcpHost.startNpxPackage, and tunnels it to AO as client.google_workspace.

- Create a Google Cloud OAuth client (TVs / Limited Input or Desktop). Enable Gmail, Calendar, and Drive APIs.
- Export
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETon the bridge host (seeconfig/comstar.mac.env.example). Never commit them. Desktop OAuth callbacks share bridge port:8781at/oauth/google/*(same process as the Admin Console; OAuth paths never require the admin LAN token). - As a known face, say "connect my Google". Enter the spoken code on your phone or scan the on-screen QR (
pairing.qrmessage to kiosk). - Tokens land in
~/.local/share/comstar/google/<userid>.json(0600). - Voice agent allowlist:
overlays/comstar/agent_providers/voice_responder.yaml→client.google_workspace. - Unlink: say "disconnect Google". Soft-fail if tokens are revoked — voice still works.
Guests never get Google MCP ids and cannot start pairing.
| Piece | Location |
|---|---|
| MCP definition | overlays/comstar/mcp_providers/google_workspace.yaml |
| Bootstrap |
ComstarMcpBootstrap → extraMcps
|
| Kiosk QR |
pairing.qr on Bridge ↔ Kiosk |
AO disk config/mcp_providers/ is not used for this path — session-overlay only. No AO code changes.
GOOGLE_CLIENT_ID=… GOOGLE_CLIENT_SECRET=… GOOGLE_REFRESH_TOKEN=… \
npx -y mcp-server-google-workspace@0.2.6| Symptom | Fix |
|---|---|
| Google tools missing | Pair as known user; check GOOGLE_CLIENT_*; tokens under data dir |
| Pairing QR never shows | Redeploy kiosk; confirm bridge logs google_pairing_start
|
COMSTAR AI — Not a mystical AI. A tool you engineered — transparent, hackable, fast.
Home · Architecture · Admin Console · Runbook · Contracts
Apache-2.0 · Pre-alpha · Raspberry Pi 4 terminal + local AI server
COMSTAR AI
Start here
Product
Build & configure
Interfaces
- Contracts Overview
- Bridge ↔ Kiosk
- Bridge ↔ Audio
- CodeProject.AI
- AO Reach
- MCP Tools
- Attention State Machine
Features
- Speech (STT/TTS)
- Vision & Face Enrollment
- Directory Identity
- Wake Word
- MCP Topology
- Terminal Control
- Google Workspace
Decisions (ADRs)
- ADR Index
- 0001 Audio Routing
- 0002 Render Path
- 0003 Speech on Ada
- 0004 Terminal Control
- 0005 LDAP Identity
- 0006 House Presence
- 0007 Full-Duplex AEC
- 0008 TTS Engine
- 0009 Proactivity
- 0010 Text Channel
- 0011 Road VPN
- 0012 Admin Network
- 0013 AO mTLS
- 0014 Fallback Hotspot
Operate
Plan
Meta