AI / MCP
Tessera hosts a remote MCP server — any MCP client (claude.ai, Claude Desktop, or an agent framework with MCP support) connects to it by URL and gets read-only tools for the loyalty program: the rewards catalogue, a member’s balance, tier status, and points history, and pseudonymous/PII member lookups.
It’s a thin protocol adapter: every tool call is forwarded to the same /v1 operations API this
site otherwise documents, using the connection’s own OAuth token as the bearer credential. The
server holds no database credentials of its own — /v1 (and the engine behind it) remains the
single point that validates tokens and enforces tenant isolation.
Connecting
Section titled “Connecting”The MCP endpoint is a single URL (/mcp) speaking Streamable HTTP. A spec-compliant client
discovers everything else on its own:
- The client hits
/mcpwith no credential and gets a401carrying aWWW-Authenticateheader that points at the server’s Protected Resource Metadata (/.well-known/oauth-protected-resource, RFC 9728) — which names the authorization server. - The client dynamically registers itself with that authorization server (RFC 7591) — no manual client setup.
- The client sends you to the authorization server’s
/authorizeendpoint with PKCE and a resource indicator naming the MCP server, so the token it eventually gets is bound to this server and can’t be replayed elsewhere. - You sign in (or you’re already signed in) with your normal Tessera console credentials, pick
which tenant to connect (skipped if you belong to only one), and approve a consent screen
naming the
loyalty:readscope. - The client exchanges the authorization code for an access token at
/tokenand starts calling tools with it as a bearer credential.
The authorization server is the same console you manage your loyalty program in — there’s no separate account to create. Once connected, the app shows up under Settings → Connected apps in the console, where you can revoke it at any time; revoking deletes the underlying tokens immediately.
Every tool is read-only and scoped to the tenant your connection authorized — there’s no tenant or API-key input to any tool; it’s fixed by the token.
| Tool | Returns | Scope |
|---|---|---|
get_rewards_catalogue | The program’s public rewards catalogue: each redeemable option (points cost, label, constraints) plus the points label. Takes an optional program. | public read |
get_member_balance | A member’s balances by customer id (from lookup_customer): spendable, pending, qualifying, active holds, clawbacks, and available-to-spend. Takes an optional program. | loyalty:read |
get_member_status | A member’s tier status: current/effective tier, requalification state, period window, progress to the next tier. Takes an optional program. | loyalty:read |
get_member_history | A member’s ledger history (earns, burns, adjustments), newest first, paginated via a cursor. Takes an optional program. | loyalty:read |
lookup_customer | A member’s pseudonymous Tessera customer id and join date by (channel, external_id) — no personal data. | loyalty:read |
get_customer_pii | A member’s stored profile — name, email, birthday, locale, marketing consent, social handles — by customer id (from lookup_customer). | loyalty:read |
get_top_members | The workspace’s top members, ranked by qualifying points, spendable balance or tier, optionally for one channel: name, tier, balances and channels. Takes an optional program. | loyalty:read |
search_customer | Members matching an email, phone or (partial) name: name, tier and channels, and whether an email or phone is on file — not the contact details. Takes an optional program. | loyalty:read |
Programmes
Section titled “Programmes”Once this workspace has two programmes, API, SDK and MCP calls that take a programme but name none are refused with program_required.
Six tools take an optional program: get_rewards_catalogue, get_member_balance, get_member_status,
get_member_history, get_top_members and search_customer. It is the programme’s handle or its lower-case id. On a
workspace with one programme leave it out and nothing changes. Once the workspace has two programmes it is required:
without it the tool answers that the workspace has several programmes and the call needs program. A programme the
workspace does not have is answered as “No such programme”, not as a missing member.
The server has no tool that lists programmes, so an agent learns a handle from the merchant, or from the console’s
Programmes page. lookup_customer and get_customer_pii forward to routes that take no programme and have no
program argument.
Scope & the PII boundary
Section titled “Scope & the PII boundary”loyalty:readis the only scope this server ever requests. There is no write scope in v1: no tool can place, finalize, or release a redemption, ingest an event, or write a customer profile. A future write capability would be a separately-gated scope a merchant grants explicitly — it isn’t reachable through anything documented here.- The rewards catalogue needs no personalized scope at all (the same public read a
publishableAPI key can make); every other tool requiresloyalty:read. get_customer_piiis the one tool that returns contact details and a stored profile (get_top_membersandsearch_customerreturn member names, never contact details). It’s labelled as such in its title and description so a well-behaved MCP client surfaces that to the person approving its use — reach for it only when the task genuinely needs contact/profile details, and preferlookup_customer(identity only) otherwise.- Every enforcement point already documented for
/v1still applies: tenant isolation and the no-existence-leak404s are inherited unchanged, since the MCP server is just forwarding to the same API with the connection’s token as the bearer.
See Errors & the envelope for how a forwarded API error surfaces, and the API reference for the exact shape each tool’s underlying endpoint returns.