Skip to content
For AI agents

Developer docs

One standard MCP server. Values not final yet are marked TBD.

Overview

The caller is the passenger's own AI assistant. Booking on behalf of others is not supported yet.

Endpoints

NameURL
MCP (Streamable HTTP)https://api.don.taxi/mcp
Protected resource metadata (RFC 9728)https://api.don.taxi/.well-known/oauth-protected-resource/mcp
Authorization server metadata (RFC 8414)https://api.don.taxi/.well-known/oauth-authorization-server

Staging endpoints are not published.

Authentication

Follows the MCP authorization spec (OAuth 2.1). Sign-in is the user's phone number and an SMS code.

AI assistantClientMCP serverapi.don.taxi/mcpAuth serverDON (OAuth 2.1)UserUser1. POST /mcp (no token)2. 401 + resource_metadata3. GET protected resource metadata (RFC 9728)4. GET authorization server metadata (RFC 8414)5. Client registration · CIMD / DCR6. authorize (PKCE S256, resource)7. Phone number → SMS code → consent8. code + iss (RFC 9207)9. token (code_verifier)10. access · refresh token11. POST /mcp + Bearer → tool calls
Authentication flow. Solid lines are requests, dashed lines are responses.
  1. Call POST /mcp without a token → 401 + WWW-Authenticate: Bearer resource_metadata=…
  2. Fetch the protected resource metadata, then the authorization server metadata
  3. Client registration: CIMD preferred, DCR allowed — supported clients only
  4. authorize (PKCE S256, resource) → DON Taxi sign-in: phone number → SMS code → consent (client name and redirect host shown, consent to provide personal information to a third party and to transfer it abroad)
  5. code + iss (RFC 9207) → token. Access and refresh lifetimes: Planned · TBD
  6. Disconnect: when the user asks, call the disconnect tool. All connections of this AI company end and tokens issued before get 401. To use it again, the user signs in and consents anew
scopes
  ride:request   request a ride
  ride:read      read ride status
  ride:cancel    cancel a ride

Tools

ToolInputWhat it does
request_ridepickup (required, up to 200 characters), destination (optional, up to 200 characters)Requests a ride; if one is active, returns it instead
get_ride_statusrideId (defaults to the active ride)Status, driver, plate, ETA, tracking link
cancel_riderideId (defaults to the active ride)Cancels; not possible after pickup
list_my_rideslimit (1-30, default 10), cursor (to continue)Past rides (completed, cancelled, failed) of the last 12 months, newest first, SMS rides included. Driver name and plate only for completed rides, for 3 days after the ride ends
disconnectNo inputEnds every connection of the calling AI company (ChatGPT and Codex count as one company) and records the consent withdrawal. Tokens issued before get 401 afterwards. A ride in progress continues
McpRideStatus { rideId, status, message, driver, etaMinutes, trackUrl }
status:   confirming → dispatching → accepted → arrived → onboard → completed
terminal: completed · cancelled · failed

McpRideList { message, rides[], nextCursor }
rides[]:  { requestedAt, requestedAtLocal, status, statusText, pickup, destination, driver }

McpDisconnectResult { disconnected, connectionsEnded, message }

message is a one-line Korean sentence to relay as is. Do not promise arrival times; use etaMinutes.

With list_my_rides, pass nextCursor back as cursor to read on. It returns no rideId and no driver contact.

Call disconnect only when the user asked to disconnect. With nothing to end, disconnected is false and message says why.

request_ride sends a real taxi. Confirm the pickup with the user first and do not retry it automatically.

Tool schemas (JSON): Planned · TBD

Examples

  • Happy path: request → assigned → arrived
  • A ride is already active
  • Ambiguous pickup (one confirmation)
  • Cancel

[Not final] Filled with real responses after the server is built.

Limits and errors

CaseResponse
One active ride per phone (SMS and MCP)request_ride returns the active ride
Missing, expired or wrong-audience token401
Insufficient scope403 insufficient_scope
No driver foundstatus = failed
SMS code rate limitPlanned · TBD

Supported clients

ClientHow to connectCheckedStatus
ClaudeSettings → Connectors → add URL—Testing
ChatGPTAdd the URL in developer mode—Testing
Claude Codeclaude mcp add --transport http don https://api.don.taxi/mcp—Testing

Clients not on this list cannot connect. We add clients after updating the privacy policy with 7 days' notice. Only clients we have tested are marked supported.

Data and privacy

  • We receive: phone number, pickup and destination text
  • Sent to the agent platform: tool responses (status, driver name, plate, ETA, tracking link; for past rides, request time, pickup and destination)
  • Stored in Korea (AWS Seoul)
  • Map results kept as long as the ride records
  • Disconnecting withdraws consent

Directory listings

Not listed yet.

Changelog · Contact

Changelog: none yet (before first release).

Contact: support@don.taxi · llms.txt