Connect AI clients over MCP
Each Agantia app can serve the Model Context Protocol (MCP), so AI clients such as ChatGPT, Claude, and Gemini can read the app's products, availability, prices, and bookings as the person using them.
- Production:
https://mcp.agantia.com/mcp/{app_id} - Sandbox:
https://sandbox-mcp.agantia.com/mcp/{app_id}
The app ID is not a secret. Nothing works until a merchant admin turns on MCP for the app and gives the user MCP access.
How access works
People connect with their own Agantia login through OAuth 2.1 (authorization code with PKCE). They never use the app's client ID or secret. A tool runs only when all of these allow it:
- MCP is on for the app, and the user has MCP access to it
- the app has the tool's Public API scope
- the user's role allows the matching action
- the record is inside what the app can see: its catalogues, storefronts, and bookings
Tools are read-only. To create or change bookings, use the booking API from your own integration.
Tools
| Tool | Public API operation | Scopes |
|---|---|---|
list_catalogues, get_catalogue | GET /catalogues, GET /catalogues/{id} | catalogues:read |
list_products, get_product, list_product_pax_types | GET /products, GET /products/{id}, GET /products/{id}/pax-types | products:read |
get_product_prices | GET /products/{id}/prices | products:read, pricing:read |
check_product_availability | GET /products/{id}/availability | products:read, availability:read |
list_product_reviews | GET /products/{id}/reviews | products:read, reviews:read |
list_categories, get_category | GET /categories, GET /categories/{id} | categories:read |
search_bookings, get_booking | GET /bookings, GET /bookings/{id} | bookings:read |
Connect a client
| Client | How |
|---|---|
| ChatGPT | Turn on developer mode, create an app with the MCP URL and OAuth authentication. Depends on your ChatGPT plan and workspace. |
| Claude ( claude.ai, Desktop, mobile ) | Settings → Connectors → Add custom connector, paste the MCP URL, leave the client ID and secret empty. |
| Claude Code | claude mcp add --transport http agantia <MCP URL>, then /mcp to sign in. |
| Gemini Enterprise | An admin creates a Gemini Enterprise OAuth client on the app's AI Integrations tab and enters it in a Custom MCP server data store. |
| Gemini CLI | gemini mcp add --transport http agantia <MCP URL>, then /mcp auth agantia. |
The Gemini consumer app is not listed because Google has not documented custom MCP servers with OAuth for it in a way we could verify.
OAuth details for client developers
- Discovery: a request without a token returns
401withWWW-Authenticate: Bearer resource_metadata="…". Metadata:/.well-known/oauth-protected-resource/mcp/{app_id}and/.well-known/oauth-authorization-server. - Registration: dynamic client registration at
/oauth/register, or a Client ID Metadata Document from a trusted host. - Authorization:
/oauth/authorizewithcode_challenge_method=S256andresourceset to the MCP URL. - Token:
POST /api/public/v1/oauth/tokenwithgrant_type=authorization_codeorrefresh_token, form-encoded. Refresh tokens rotate on every use; reusing an old one ends the connection. - Revocation:
/oauth/revoke. Users and admins can also disconnect from Agantia. - Access tokens are valid only for the MCP URL they were issued for. They are not Public API tokens.