跳到正文
连接AI代理 · For AI agents

开发者文档

Developer docs

通过一个标准MCP服务器连接。服务器实现前的值标为“计划中”。
One standard MCP server. Values not final yet are marked TBD.

概述 · Overview

使用者是乘客本人的AI助手。目前还不支持替他人叫车。

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

端点 · Endpoints

名称 · Name地址 · URL
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

遵循MCP授权规范(OAuth 2.1)。登录方式是用户的手机号和短信验证码。

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

AI助手ClientMCP服务器api.don.taxi/mcp授权服务器DON (OAuth 2.1)用户User1. POST /mcp(无令牌 · no token)2. 401 + resource_metadata3. GET 受保护资源元数据 (RFC 9728)4. GET 授权服务器元数据 (RFC 8414)5. 客户端注册 · CIMD / DCR6. authorize (PKCE S256, resource)7. 手机号 → 短信验证码 → 同意8. code + iss (RFC 9207)9. token (code_verifier)10. access · refresh token11. POST /mcp + Bearer → 调用工具
授权流程。实线是请求,虚线是响应。 Authentication flow. Solid lines are requests, dashed lines are responses.
  1. 不带令牌 POST /mcp → 401 + WWW-Authenticate: Bearer resource_metadata=…Call without a token → 401 pointing to resource metadata
  2. 受保护资源元数据 → 授权服务器元数据Fetch protected resource metadata, then authorization server metadata
  3. 客户端注册:优先CIMD,允许DCR — 仅限支持的客户端列表Client registration: CIMD preferred, DCR allowed — supported clients only
  4. authorize(PKCE S256,resource)→ DON Taxi登录:手机号 → 短信验证码 → 同意(显示客户端名称和redirect主机,并同意向第三方提供及境外转移个人信息)Sign in with phone number and SMS code, then consent (client name and redirect host shown, plus consent to provide data to the AI company abroad)
  5. code + iss(RFC 9207)→ token。access·refresh有效期:计划中 · TBDExchange the code (check iss) for tokens. Access and refresh lifetimes: TBD
  6. 断开连接:用户要求时调用 disconnect 工具。该AI公司的所有连接都会结束,之前发放的令牌返回401。如需再次使用,需重新登录并同意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

工具 · Tool输入 · Input作用 · What it does
request_ridepickup(必填,200字以内),destination(选填,200字以内)pickup required, destination optional, up to 200 characters each叫车。如有进行中的叫车,不会新建,而是返回其状态Requests a ride; if one is active, returns it instead
get_ride_statusrideId(省略时为进行中的叫车)rideId, defaults to the active ride状态·司机·车牌号·预计到达·位置链接Status, driver, plate, ETA, tracking link
cancel_riderideId(省略时为进行中的叫车)rideId, defaults to the active ride取消。上车后不可取消Cancels; not possible after pickup
list_my_rideslimit(1~30,默认10),cursor(继续读取时)limit 1-30 (default 10); cursor continues from the previous nextCursor最近12个月内的过去行程(完成·取消·失败),按请求时间从新到旧。包括用短信叫的行程。司机姓名·车牌号仅限已完成的行程,行程结束后3天内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
disconnect无输入No input断开该AI公司与DON Taxi的所有连接,并记录为撤回同意。之前发放的令牌此后返回401。进行中的叫车照常继续Ends 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 是要原样转告乘客的一句韩文。不要承诺到达时间,请使用 etaMinutes。

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

list_my_rides 如果有 nextCursor,把它放进 cursor 继续读取。不返回行程编号(rideId)和司机联系方式。

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

只有用户要求断开连接时才调用 disconnect。没有可断开的连接时,disconnected 为 false,原因在 message 中。

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

request_ride 会派出真实的出租车。叫车前请先向用户确认出发地,不要自动重试。

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

工具JSON模式文件 · Tool schemas (JSON): 计划中 · TBD

对话示例 · Examples

  • 正常:叫车 → 派车 → 到达Happy path: request → assigned → arrived
  • 已有进行中的叫车时A ride is already active
  • 出发地不明确时(确认1次)Ambiguous pickup (one confirmation)
  • 取消Cancel

[待确定] 服务器实现后用真实响应补充。 / Filled with real responses after the server is built.

限制与错误 · Limits and errors

情况 · Case响应 · Response
进行中的叫车1单(短信·MCP共用)One active ride per phone (SMS and MCP)request_ride返回现有叫车的状态request_ride returns the active ride
无令牌·已过期·audience不同Missing, expired or wrong-audience token401
权限不足Insufficient scope403 insufficient_scope
派车失败No driver foundstatus = failed
验证码发送限制SMS code rate limit计划中 · TBD

支持的客户端 · Supported clients

客户端 · Client连接方法 · How to connect确认日期 · Checked状态 · Status
Claude设置 → 连接器 → 添加URLSettings → Connectors → add URL—确认中Testing
ChatGPT在开发者模式中添加URLAdd the URL in developer mode—确认中Testing
Claude Codeclaude mcp add --transport http don https://api.don.taxi/mcp—确认中Testing

不在此列表中的客户端无法连接。接收数据的公司必须先写入隐私政策,所以增加时会修改隐私政策并提前7天通知。只有实际连接测试过的才会改为“支持”。

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
隐私政策Privacy policy

上架情况 · Directory listings

目前还没有上架任何目录。

Not listed yet.

变更记录 · 咨询 · Changelog · Contact

变更记录:暂无(首次公开前)。

Changelog: none yet (before first release).

咨询 · Contact: support@don.taxi · llms.txt