Onward Flights
Search real flights and buy an onward ticket (proof of onward travel), paid in USDC over MPP
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"onward-flights": {
"url": "https://onward.flights/mcp"
}
}
}遠端端點
https://onward.flights/mcpstreamable-http它能做什麼
工具清單
工具(3)
🟢find_airports(query)
Look up 3 letter IATA airport codes by city, airport or country name.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "City, airport, country or code, e.g. \"Bangkok\""
}
},
"required": [
"query"
]
}🟢search_flights(origin, destination, date)
Find one-way flights to use as an onward ticket. Returns up to 10 flights, each with an id to buy and its price in USD.
輸入結構描述
{
"type": "object",
"properties": {
"origin": {
"type": "string",
"description": "IATA code of the airport leaving the country the traveller is entering, e.g. \"BKK\""
},
"destination": {
"type": "string",
"description": "IATA code of where the onward flight goes, e.g. \"SIN\""
},
"date": {
"type": "string",
"description": "Departure date, YYYY-MM-DD, within 9 months. Defaults to 14 days from now."
}
},
"required": [
"origin",
"destination"
]
}🟢buy_ticket(ticket_id, first_name, last_name, email, tx_hash, ...)
Buy the ticket for a flight from search_flights, paid in USDC. Call it first without payment to get the price, wallet address and MPP challenges. After sending the USDC, call it again with tx_hash and chain (or an MPP credential in _meta "org.paymentauth/credential"). x402 clients can instead sign one of the offers in error.data.x402 and retry with the PaymentPayload in _meta "x402/payment", with no gas needed. Returns the ticket link and PDF.
輸入結構描述
{
"type": "object",
"properties": {
"ticket_id": {
"type": "string",
"description": "The flight id from search_flights"
},
"first_name": {
"type": "string",
"description": "Passenger's first name, as on their passport"
},
"last_name": {
"type": "string",
"description": "Passenger's last name, as on their passport"
},
"email": {
"type": "string",
"description": "Optional, also emails the ticket here"
},
"tx_hash": {
"type": "string",
"description": "Hash of the USDC transfer that paid for it"
},
"chain": {
"type": "string",
"enum": [
"base",
"ethereum",
"optimism",
"polygon"
],
"description": "Chain the USDC was sent on, defaults to base"
}
},
"required": [
"ticket_id",
"first_name",
"last_name"
]
}社群
證據