MCP: Authentication & threat model
Part of the MCP integration design. Design proposal, not shipped behaviour.
Owner operations need an App Suite identity on every call, and MCP clients run outside the browser where no session exists. Bridging that gap is the open authentication question, and this page answers it.
The public half needs no answer: possessing a poll id, appointment-type id, or manage token is the authorization, by the same design as the public pages (see Security). Its threat model ships with the feature, in Privacy, trust & limits for the product view and MCP endpoint for the mechanics. What remains here is the one data question the deferred poll tools raise.
Owner tools: someone must hold a middleware session
Booking resolves the user from a middleware session and enforces the booking capability, so someone must hold such a session on the agent's behalf. The ai-service already does, through its acquire/redeem flow:
- The user, logged into App Suite, triggers the exchange from the UI. The App Suite client acquires a one-time middleware token and posts it to the ai-service.
- The ai-service redeems the token against the middleware, establishing a real server-side session, which it stores encrypted.
- It issues the user a long-lived API key (stored hashed, 30-day expiry, one active session per user, revocable). The MCP client authenticates every call with that key.
- On each tool call, the ai-service reconstructs the middleware session and acts as the user.
Booking-owner tools registered there would inherit all of this, including key revocation and expiry. Booking's own server-side checks (ownership, capability, closed-poll rules) still run on every request, so the ai-service holds a credential but not a bypass.
These tools also complete the receptionist deployment (UC-09), where an owner-operated agent serves anonymous third parties over a phone line or front desk. Booking a caller in works through the public tools already; what the owner's authority adds is finding that caller's appointment in the owner's own booking list and cancelling or moving it. Identifying the caller stays a soft check, equivalent to a human receptionist asking what name the appointment is under, and the residual risk of a caller misrepresenting themselves belongs to the owner, not the platform (see Receptionist agents).
MCP-native OAuth: valid, and the host's call
The MCP specification's own answer to authentication is OAuth: the server advertises an authorization server, the client runs a PKCE flow, and every call carries a per-user bearer token. GLAM's MCP server (an internal engineering tool, not part of the shipped stack) works exactly this way against the org's IdP, which demonstrates the pattern wherever OIDC infrastructure is available. The same model is open to App Suite services: the middleware trusts a single identity provider, and a JWT issued by that provider can be exchanged for a middleware session using the same token mechanics the acquire/redeem flow builds on. OAuth at the MCP endpoint plus a token-to-session exchange behind it compose into a complete owner-auth story; the user never touches an API key, and every call is attributed to a real identity.
It is more effort than reusing the existing flow, for two reasons:
- Password-encrypted secrets. Middleware data encrypted with the user's password cannot be decrypted from a JWT-only session, so features depending on such secrets are unavailable in that mode. Which features that affects is a deployment detail, and the limitation goes away once org-wide JWT propagation ("Edge Auth") lands.
- Someone owns the plumbing. OAuth resource-server metadata, token validation, the JWT-to-session exchange, and the session lifecycle (caching, expiry, revocation) all need a home and a security review. The ai-service's acquire/redeem flow already provides the session half, in UI-initiated form.
Which server carries this work follows from where the owner tools land (see Placement of owner tools). Hosted in the ai-service, moving its MCP auth from the UI-initiated exchange to MCP-native OAuth would upgrade every tool it hosts, booking's included, with no change on booking's side. Hosted here, booking owns the OAuth surface itself; ADR-0006 keeps the OIDC seam on /booking/v1 open for that case, and Edge Auth removes the remaining constraint.
A shared MCP gateway, should the org ever build one, is the third variant: client auth terminated once at the gateway, verified identity handed to per-service MCP backends, and no service owning OAuth plumbing individually. It is deferred until enough services grow MCP surfaces to justify it (see Placement of owner tools).
Third-party data in poll reads
The public poll read returns all voters, and on the REST surface that includes any mail addresses voters chose to leave. The deferred poll-voting tools (see Tools & scenarios) omit other voters' mail addresses and return only names and votes. This is deliberate data minimization for a consumer class whose outputs are logged outside the user's control, and it is a product decision to confirm, since it makes the MCP view narrower than the web page shows.
The same asymmetry does not arise on the booking side: those tools expose no third-party personal data beyond the owner's display name.
The other risks a machine-speed, transcript-logging consumer brings (prompt injection through end-user content, capability tokens in transcripts, enumeration sweeps, rate limiting under provider NAT, context blowout) apply to the poll tools exactly as they do to the booking tools, where they are already answered. The poll tools inherit those answers rather than restating them.

