Flywise Server
БесплатноНе проверенEnables searching for equivalent replacement flights ranked by practical equivalence to the original ticket, comparing fare conditions, and generating airline a
Описание
Enables searching for equivalent replacement flights ranked by practical equivalence to the original ticket, comparing fare conditions, and generating airline agent requests.
README
Live website: https://wuisabel-gif.github.io/Flywise/
Flywise is a TypeScript MVP for disruption recovery. It ranks replacement flights by practical equivalence to a traveler's original ticket instead of treating the current public fare as the whole answer. Live flight inventory is searched through Duffel, with a server-side integration that keeps the Duffel access token out of the browser.
The repository includes:
- A polished React/Vite passenger workspace.
- A transparent scoring engine for schedule, exchange cost, cabin, baggage, routing, and rebooking likelihood.
- Editable original-flight details, including route, date, airline, flight number, fare, baggage, and passengers.
- A secure Duffel adapter for real-time offers from its airline network, including American Airlines and hundreds of other carriers.
- Demo inventory that is clearly labeled and never substituted for another route after a live-search failure.
- An MCP Apps server with data-first search tools and a separate render tool for ChatGPT.
- Unit tests for ranking, flexibility filtering, and agent-request generation.
- A local Codex plugin that bundles the Flywise MCP connection with a reusable flight-recovery skill.
Architecture
Flywise keeps flight-search and equivalence logic in one API and MCP service, then exposes it through multiple passenger and agent experiences:
Flywise API + MCP
│
┌───────────┬───────┼─────────┬───────────┐
▼ ▼ ▼ ▼ ▼
Website ChatGPT Codex Cursor Claude
passenger UI app UI plugin plugin MCP
Codex plugin
The repo-local plugin lives in plugins/flywise-flight-recovery. It teaches Codex how to collect an original itinerary, search equivalent replacements, distinguish public price from exchange cost, compare fare conditions, and draft a request for an airline agent.
Start the local MCP server before using the plugin:
npm run build
npm run dev:server
The plugin connects to http://127.0.0.1:3000/mcp. Its marketplace catalog is stored in .agents/plugins/marketplace.json so the plugin can be installed and tested from this repository.
Local development
npm install
npm run dev
Open http://127.0.0.1:5173.
Enable live airline search
- Copy
.env.exampleto.envand add a Duffel test or live access token. - Run the API with
npm run dev:server. - Run the frontend with
VITE_FLYWISE_API_URL=http://127.0.0.1:3000 npm run dev.
The token is read only by the Express server and is never included in browser JavaScript. Flywise creates a Duffel offer request and normalizes the returned operating carrier, flights, routing, cabin, baggage, public price, and conditions before ranking the options.
Duffel integration
Flywise uses the Duffel Flights API as its first live inventory provider. The server sends the traveler's route, departure date, passenger count, cabin, and maximum connections to Duffel's Offer Requests API. Returned offers are converted into Flywise's normalized FlightOffer model before the equivalence engine ranks them.
Flywise website → Flywise Express API → Duffel → airline offers
↓
normalize and equivalence-rank
Required configuration:
| Variable | Used by | Purpose |
|---|---|---|
DUFFEL_ACCESS_TOKEN |
Express server | Authenticates private requests to Duffel. Never expose this through a VITE_ variable. |
VITE_FLYWISE_API_URL |
Browser build | Points the website to the deployed Flywise Express API. |
ALLOWED_ORIGINS |
Express server | Restricts which browser origins may call the API. |
Duffel results provide live public offers and prices. They do not by themselves confirm what an airline will charge to exchange an existing ticket. Flywise therefore labels the exchange cost as requiring airline confirmation while still comparing the offer's schedule, cabin, baggage, routing, and public price.
To build the widget and run the MCP server:
npm run build
npm run dev:server
The health route is http://127.0.0.1:3000/health and the MCP endpoint is http://127.0.0.1:3000/mcp.
Connect in ChatGPT Developer Mode
- Build and start the MCP server.
- Expose port 3000 through an HTTPS tunnel, such as
ngrok http 3000. - In ChatGPT, enable Developer Mode under Settings → Apps & Connectors → Advanced settings.
- Create a new app and use the public tunnel URL ending in
/mcp. - Refresh the app after changing tool descriptors, metadata, or the widget template.
MCP tools
search_equivalent_flights— data-only, ranked equivalent options.render_rebooking_results— renders the interactive Flywise widget after search.compare_fare_conditions— explains a selected offer's scoring and warnings.generate_airline_agent_request— produces a concise involuntary-reaccommodation request.
All tools are read-only and idempotent. Exchange costs are explicitly estimates until an airline confirms them.
Production boundary
GitHub Pages hosts only the frontend. Deploy render.yaml as a Render Blueprint (or deploy the same Node server elsewhere), set its DUFFEL_ACCESS_TOKEN, then add the backend URL as the GitHub repository variable FLYWISE_API_URL. The Pages workflow injects that URL at build time.
Duffel publicly lists American Airlines and 300+ other airlines. Delta does not appear in Duffel's current public airline directory; full Delta shopping requires a separate approved Delta/GDS partnership. The provider boundary in server/duffel.ts is intentionally isolated so another authorized provider can be added without changing the Flywise UI or scoring engine.
Flywise remains a decision assistant, not a universal ticket-exchange system. Search results are live public offers, but an existing ticket's exchange cost still depends on the issuing carrier, fare rules, waiver policy, booking-class inventory, interline agreements, and servicing authority. The UI therefore requires airline confirmation instead of presenting an unverified exchange price.
The visual specification is stored at design/flywise-concept.png.
Установка Flywise Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/wuisabel-gif/FlywiseFAQ
Flywise Server MCP бесплатный?
Да, Flywise Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Flywise Server?
Нет, Flywise Server работает без API-ключей и переменных окружения.
Flywise Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Flywise Server в Claude Desktop, Claude Code или Cursor?
Открой Flywise Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Flywise Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
