pricewin-flight-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRequires theMCP server. This skill issues no network calls of its own.pricewin
需依赖MCP服务器。本Skill自身不发起任何网络请求。pricewin
Setup (once per machine)
安装配置(每台机器仅需一次)
Without the MCP server registered this skill is inert — it tells you to call
and no such tool exists. only copies files, so run:
search_flights_liveskills addbash
bash install.sh # add --dry-run first to see what it would changeIt registers the hosted server (, Streamable HTTP, no
credentials) with every agent it finds — Claude Code, Cursor, Windsurf, Gemini CLI, VS Code,
Codex — writing a before touching any file and skipping configs it cannot parse.
Re-running it changes nothing. Restart the agent afterwards.
https://mcp.price.win/mcp.bak若未注册MCP服务器,本Skill将无法正常工作——它会提示调用,但该工具并不存在。仅会复制文件,因此请运行:
search_flights_liveskills addbash
bash install.sh # 可先添加--dry-run参数查看将会进行的更改该脚本会将托管服务器(,支持流式HTTP,无需凭证)注册到所有已找到的Agent中——包括Claude Code、Cursor、Windsurf、Gemini CLI、VS Code、Codex,修改文件前会创建备份,并跳过无法解析的配置文件。重复运行脚本不会产生任何变更。之后请重启Agent。
https://mcp.price.win/mcp.bakFlight Search (Live)
实时航班搜索
MCP server: . Tool starts an async crawl across Agoda,
Trip.com and Traveloka; returns the merged, cheapest-per-flight fares.
pricewinsearch_flights_livepoll_flight_resultsMCP服务器: 。工具会启动异步爬虫,在Agoda、Trip.com和Traveloka平台进行搜索;会返回合并后的、每个航班的最低价格。
pricewinsearch_flights_livepoll_flight_resultsCRITICAL: IATA codes only
重要提示:仅支持IATA代码
Both airports MUST be 3-letter IATA codes. There is no airport-lookup tool on this server —
resolve the city yourself: , , ,
(main international), , .
Sài Gòn / TP.HCM → SGNHà Nội → HANĐà Nẵng → DADBangkok → BKKTokyo → NRT or HNDSeoul → ICNWhen a city has several airports and the user did not say which, ask one short question —
never pick silently. Never invent a code.
出发地和目的地机场必须为3位IATA代码。本服务器无机场查询工具——请自行解析城市对应的代码:、、、(主国际机场)、、。
Sài Gòn / TP.HCM → SGNHà Nội → HANĐà Nẵng → DADBangkok → BKKTokyo → NRT或HNDSeoul → ICN若城市有多个机场且用户未指定,请简短询问用户——切勿自行选择,绝不能编造代码。
CRITICAL: Polling pattern (differs from hotel search)
重要提示:轮询模式(与酒店搜索不同)
search_flights_livesessionId- Call with origin, destination, departureDate (YYYY-MM-DD), and
search_flights_liveonly for a round trip. AddreturnDate,adults,cabinas needed.language="vi" - Call . This tool blocks internally up to ~30s and returns as soon as the first fares land — do NOT sleep before calling it.
poll_flight_results(sessionId) - is
status|pending|searching|completed. If it comes backfailedwith few or no flights, call again — up to 4 more times.searching - Present results as soon as flights arrive; keep polling only if the user wants more.
The session expires 15 minutes after the last poll. After that, start a new search —
the old is dead.
sessionIdis registered app-visible for the flight widget. If your host does not expose it to the model, let the widget do the polling and do not fabricate fares.poll_flight_results
search_flights_livesessionId- 调用时传入出发地、目的地、出发日期(YYYY-MM-DD),若为往返需额外传入
search_flights_live。可按需添加returnDate(成人数量)、adults(舱位)、cabin(语言)参数。language="vi" - 调用。该工具内部会阻塞最长约30秒,一旦有首批价格结果就会返回——调用前无需等待。
poll_flight_results(sessionId) - 状态值为
status(待处理)|pending(搜索中)|searching(完成)|completed(失败)。若返回failed且航班结果很少或为空,可再次调用——最多再调用4次。searching - 一旦有航班结果就立即展示;仅当用户需要更多结果时才继续轮询。
会话会在最后一次轮询后的15分钟过期。过期后需重新发起搜索——旧的将失效。
sessionId已注册为航班组件可见的工具。若你的宿主环境未将其暴露给模型,请让组件进行轮询,切勿编造价格信息。poll_flight_results
CRITICAL: price
is the party total, in USD
price重要提示:price
为总价,单位为美元
pricepriceadultsadultscurrency"USD""VND"currencypriceadultsadultscurrency"USD""VND"currencyResponse format (MUST follow exactly)
响应格式(必须严格遵循)
Present the TOP 5-7 flights per leg ONLY. For EACH flight:
✈️ *<airline> <flightNumber>* ← bold via markdown
🕐 <dep.time> <origin> → <arr.time> <destination> · <Xh Ym> · <bay thẳng | N điểm dừng>
💰 $<price> tổng cho <adults> khách (~$<price/adults>/khách)
🔗 <bookingUrl>Line break between flights, no bullet markers. Cheapest flight gets 🏆. is in
minutes — format it as . Flag an overnight arrival when differs
from .
duration2h 10marrival.datedeparture.date仅展示每个行程段的TOP 5-7个航班。每个航班需按以下格式展示:
✈️ *<航空公司> <航班号>* ← 用markdown加粗
🕐 <起飞时间> <出发地IATA> → <到达时间> <目的地IATA> · <Xh Ym> · <直飞 | N次经停>
💰 $<总价> 共<成人数量>位乘客 (~$<单人价格>/位)
🔗 <预订链接>航班之间需换行,无需项目符号。最便宜的航班需标注🏆。(时长)单位为分钟——请格式化为。若到达日期与出发日期不同,需标注为隔夜到达。
duration2h 10mRound trips
往返行程
outboundFlightsreturnFlightscheapest outbound + cheapest returnoutboundFlightsreturnFlights最便宜去程 + 最便宜返程Booking URLs — use verbatim
预订链接——请直接使用原文
bookingUrlbookingUrlhttps://www.price.win/Attribute the source only from the URL host (, , ) — the
result carries no explicit source field, so do not guess one.
agoda.comtrip.comtraveloka.combookingUrlbookingUrlhttps://www.price.win/仅从URL主机名(、、)标注来源——结果中无明确的来源字段,请勿猜测。
agoda.comtrip.comtraveloka.comFields that look useful but are not
看似有用但实际无效的字段
- — always empty; describe stops by count only
stopCities - /
departure.city— repeat the IATA code, not a real city namearrival.city - — usually absent on list results; don't promise a segment breakdown
legs
- ——始终为空;仅通过经停次数描述经停情况
stopCities - /
departure.city——重复的是IATA代码,并非真实城市名称arrival.city - ——列表结果中通常不存在;不要承诺提供分段详情
legs
Ranking
排序规则
Sort by . Cheapest first, but surface a non-stop or much shorter option when it costs
only marginally more — say so in one line rather than reordering silently.
price按(价格)排序。从最便宜的开始,但如果直飞或时长短很多的航班价格仅略高一点,可将其提前展示——需用一行文字说明原因,切勿静默调整顺序。
price