Skip to main content

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​

ToolPublic API operationScopes
list_catalogues, get_catalogueGET /catalogues, GET /catalogues/{id}catalogues:read
list_products, get_product, list_product_pax_typesGET /products, GET /products/{id}, GET /products/{id}/pax-typesproducts:read
get_product_pricesGET /products/{id}/pricesproducts:read, pricing:read
check_product_availabilityGET /products/{id}/availabilityproducts:read, availability:read
list_product_reviewsGET /products/{id}/reviewsproducts:read, reviews:read
list_categories, get_categoryGET /categories, GET /categories/{id}categories:read
search_bookings, get_bookingGET /bookings, GET /bookings/{id}bookings:read

Connect a client​

ClientHow
ChatGPTTurn 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 Codeclaude mcp add --transport http agantia <MCP URL>, then /mcp to sign in.
Gemini EnterpriseAn 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 CLIgemini 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 401 with WWW-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/authorize with code_challenge_method=S256 and resource set to the MCP URL.
  • Token: POST /api/public/v1/oauth/token with grant_type=authorization_code or refresh_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.