From d2470e0023f2a3509d101b676b6d3eca30c82c80 Mon Sep 17 00:00:00 2001 From: YC Date: Thu, 12 Nov 2026 09:40:33 +0000 Subject: [PATCH 01/10] feat(skill): route to the Wego MCP tools when the CLI is not usable PET-429: support agents with the CLI or connected public MCP tools. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/README.md | 16 +++++++++++----- plugin/plugin.json | 2 +- skills/wego/SKILL.md | 36 +++++++++++++++++++++++++++++++----- src/skill-embed.ts | 2 +- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/plugin/README.md b/plugin/README.md index bc97104..5194893 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -22,13 +22,18 @@ authorization, credential storage, API access, one JSON envelope, and metering. ## Works with -Any agent that supports [skills](https://agentskills.io/) and a machine or -sandbox to run [our CLI](https://docs.wego.com/cli). Claude Code, Codex, Cursor, -OpenClaw, Hermes and Pi, to name a few. +Any agent that supports [skills](https://agentskills.io/). On a machine or sandbox +that can run commands, the skill drives [our CLI](https://docs.wego.com/cli): +Claude Code, Codex, Cursor, OpenClaw, Hermes and Pi, to name a few. Without one, +it uses the Wego MCP server the plugin declares, at +`https://mcp.wego.com/public-app/v1/mcp`, which needs no sign-in. ## Install -The skill drives the `wego` CLI, so both need to be present. Either order works. +On an agent that can run commands, the skill drives the `wego` CLI, so both need +to be present, in either order. On an agent that cannot, the skill uses the Wego +MCP server instead: install this plugin, or connect +`https://mcp.wego.com/public-app/v1/mcp` in the agent's MCP settings. Add the skill to your agent from this repository: @@ -38,7 +43,8 @@ npx --yes skills add https://github.com/wego/skills --skill wego Install the CLI by following [docs.wego.com/cli](https://docs.wego.com/cli#install). The skill never installs -it for you: when the command is missing, it links those instructions and waits. +it for you. When the command is missing it uses the Wego MCP tools if they are +connected, and otherwise links those instructions and waits. The CLI's source is at [github.com/wego/cli](https://github.com/wego/cli). diff --git a/plugin/plugin.json b/plugin/plugin.json index ae084bf..817356f 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "wego", - "description": "Search and compare flights and hotels, resolve places, and generate checkout links through the wego CLI.", + "description": "Search and compare flights and hotels, resolve places, and generate checkout links, through the wego CLI where the agent can run commands and the Wego MCP server where it cannot.", "homepage": "https://docs.wego.com", "repository": "https://github.com/wego/skills", "license": "Apache-2.0" diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 4494c24..ea35238 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -1,7 +1,7 @@ --- name: wego -description: Use the Wego CLI to authenticate, resolve travel locations, look up visa-free destinations for a passport, public holidays in a market, published flight timetables and nearby airports, search and compare flights and hotels, inspect trips and room rates, refine existing searches, and generate Wego or provider checkout links. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, requests to continue a selected option to checkout, and travel reference questions such as where a passport can go without a visa, when the next long weekend falls, what an airline flies on a route, or which airports are near a city, all through the installed `wego` command. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. -compatibility: Requires the wego CLI on PATH (check with `wego version`) and network access to api.wego.com. Designed for Claude Code and similar agent products. +description: Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions: where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. +compatibility: Needs one of two environments: the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. --- # Wego CLI @@ -11,6 +11,7 @@ Translate the user's travel request into `wego ` commands, parse their JSON **Where things are.** Read the operating contract first, then jump to the vertical the request needs: - **Operating contract** – preflight, metering, currency, the rules that bind every command. Always applies. +- **Without the CLI (Wego MCP tools)** – what changes when Operating contract item 2 picks the MCP tools, and which tasks need the CLI. - **Gather inputs** / **Resolve places** – turning a request into codes and dates. - **Reference lookups (`wego info`)** – holidays, visa-free, timetables, nearby airports, and which backend this binary resolved. No search, no price, no expiring id. - **Settled snapshots and empty pages** – what an empty result means, and what it never means. Both funnels depend on it; read it before you report a no-match. @@ -25,8 +26,11 @@ Translate the user's travel request into `wego ` commands, parse their JSON ## Operating contract -1. Every command here is `wego `, the Wego CLI documented at https://docs.wego.com/cli. Keep that one command for the whole workflow. It reads live inventory and prices, so quote what it returns rather than estimating, and never invent a figure it did not give you. -2. Check availability with `wego version`. If it is missing, the user installs it, not you: tell them the `wego` CLI is not installed, link the install instructions at https://docs.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. +1. Every command here is `wego `, the Wego CLI documented at https://docs.wego.com/cli. Keep to the path item 2 picks for the whole workflow. It reads live inventory and prices, so quote what it returns rather than estimating, and never invent a figure it did not give you. +2. Pick the path before the first travel call, with `wego version`: + - **It works:** use the CLI. The rest of this file applies as written. + - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)**. If you can run commands, tell the user once that the `wego` CLI does more, with a link to https://docs.wego.com/cli#install. + - **Neither:** if you can run commands, the user installs the CLI, not you: tell them the `wego` CLI is not installed, link the install instructions at https://docs.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If you cannot run commands, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. When the CLI is already present but the user wants the latest, or its syntax looks out of date, `wego update --check` reports whether a newer build exists @@ -77,6 +81,28 @@ Translate the user's travel request into `wego ` commands, parse their JSON **`wego --help` is the authority on a flag.** It lists every flag of the installed binary with its allowed values. Read it before you guess a value, and before you drop a user's request because you cannot see a flag for it here: a flag this file omits and a flag the CLI lacks look the same from here. `wego --help` lists the commands. +## Without the CLI (Wego MCP tools) + +Use this section only when Operating contract item 2 picked the MCP tools. Each tool describes its own arguments, polling and paging, so read the tool rather than mapping `wego` flags onto it. + +- **Still applies:** contract items 6, 7, 8, 11 and 12. Quote only what a tool returned, keep the ids it returned for follow-ups, present a ranked comparison, never claim a booking, and plan inside the search limits. +- **Does not apply:** login, `whoami`, `update`, `skill`, the exit codes, and every `wego` command line in this file. The tools need no sign-in. +- **No stored preferences.** Ask contract item 9's one question when the user has not named a currency or market, then pass the same `currencyCode`, `siteCode` and `locale` on every call of a funnel. +- **Links:** a `flights_search` trip carries a `handoffUrl`, its search carries a `resultUrl` that opens the same search on wego.com, and a `hotels_get_rooms` rate carries a `bookingUrl`. Hand them over as returned. + +These tasks need the CLI, because no MCP tool covers them: + +| Task | CLI command | +|---|---| +| Visa-free destinations for a passport | `info visa-free` | +| One flight's fare options, baggage and refundability | `flights trip`, `flights fares` | +| What a journey is like to sit through | `flights experience` | +| A hotel's description and amenities, and its guest reviews | `hotels details`, `hotels reviews` | +| Stored currency, market and language | `config` | +| Feedback to the Wego team | `feedback` | + +For one of these, tell the user this connection cannot do it. If you can run commands, add that the `wego` CLI can, with a link to https://docs.wego.com/cli#install. If you cannot, give the wego.com link from the last result (`resultUrl`, `handoffUrl` or `bookingUrl`) where they can read it themselves. Never fill the gap from memory. + ## Gather inputs Resolve relative dates against today's date and send `YYYY-MM-DD`. Ask a concise question when dates, destination, or route are genuinely missing or ambiguous. Let the CLI apply its occupancy defaults when the user gives no occupancy; pass explicit adults, children, infants, and rooms when supplied. @@ -590,7 +616,7 @@ final answer rather than only in the transcript behind it. | Situation | Action | |---|---| -| CLI missing | Operating contract item 2: link the install instructions for the user to follow, and wait for them to confirm before continuing. | +| CLI missing, or you cannot run commands | Operating contract item 2: if the Wego MCP tools are present, use them now and do not wait. If they are not, link the install instructions when you can run commands and wait for the user to confirm, or tell the user how to connect the Wego MCP server when you cannot. | | CLI outdated, or a stderr line says a new version is available | Operating contract item 2 covers both: `update --check` is read-only, the self-replacing `update -y` needs the user's approval, and a from-source run prints a reinstall hint instead. The stderr notice is not an error and not a cue to stop, so finish the request first, then offer the update once. | | This skill itself looks stale, or the user wants it in another agent | `wego skill list` shows what is installable (offline, no auth) and `wego skill install` refreshes this file in place – it fetches the current published body, checksum-verifies it, and falls back to the copy baked into the binary when the network is unavailable, so it never fails on a down remote. Writing files needs the user's approval first, like an update. To set the skill up for another coding agent, that same subcommand takes `--agent ` (repeatable, `'*'` for all) and `-g` for a user-wide install; omitted, it targets the agents already present. | | Not authenticated | Run `wego login`, wait for the browser flow, verify with `wego whoami`, then resume. If stderr says no browser is on this machine, or that this terminal cannot read a paste, see Login environments below – that login needs the user's own terminal. | diff --git a/src/skill-embed.ts b/src/skill-embed.ts index 1541657..07067ac 100644 --- a/src/skill-embed.ts +++ b/src/skill-embed.ts @@ -32,7 +32,7 @@ export const SKILLS: readonly SkillEntry[] = [ id: "wego", // Kept in sync with the SKILL.md frontmatter `description:` by a drift test. description: - "Use the Wego CLI to authenticate, resolve travel locations, look up visa-free destinations for a passport, public holidays in a market, published flight timetables and nearby airports, search and compare flights and hotels, inspect trips and room rates, refine existing searches, and generate Wego or provider checkout links. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, requests to continue a selected option to checkout, and travel reference questions such as where a passport can go without a visa, when the next long weekend falls, what an airline flies on a route, or which airports are near a city, all through the installed `wego` command. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", + "Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions: where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", read: () => Bun.file(wegoSkill).text(), }, ]; From 87d835f4e2f4caccef746072113de65cdc21a9f7 Mon Sep 17 00:00:00 2001 From: YC Date: Thu, 12 Nov 2026 09:55:52 +0000 Subject: [PATCH 02/10] fix(skill): respect MCP schemas and clarify connection setup PET-429: verify live tool parameters and use agents.wego.com links. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/README.md | 16 ++++++++-------- plugin/plugin.json | 2 +- scripts/plugin-conformance.test.ts | 2 +- skills/wego/SKILL.md | 16 ++++++++-------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/plugin/README.md b/plugin/README.md index 5194893..aeda376 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -6,9 +6,9 @@ source. Made by [Wego](https://www.wego.com), the travel search engine and online travel agency for the Middle East, North Africa and beyond. Docs, quickstart and use cases -live at [docs.wego.com](https://docs.wego.com); the CLI reference is at -[docs.wego.com/cli](https://docs.wego.com/cli) and the HTTP contract at -[docs.wego.com/api](https://docs.wego.com/api). +live at [agents.wego.com](https://agents.wego.com); the CLI reference is at +[agents.wego.com/cli](https://agents.wego.com/cli) and the HTTP contract at +[agents.wego.com/api](https://agents.wego.com/api). The skill takes a travel request in plain language and works it against live inventory. It resolves places, searches and compares flights and hotels, reads @@ -23,7 +23,7 @@ authorization, credential storage, API access, one JSON envelope, and metering. ## Works with Any agent that supports [skills](https://agentskills.io/). On a machine or sandbox -that can run commands, the skill drives [our CLI](https://docs.wego.com/cli): +that can run commands, the skill drives [our CLI](https://agents.wego.com/cli): Claude Code, Codex, Cursor, OpenClaw, Hermes and Pi, to name a few. Without one, it uses the Wego MCP server the plugin declares, at `https://mcp.wego.com/public-app/v1/mcp`, which needs no sign-in. @@ -32,17 +32,17 @@ it uses the Wego MCP server the plugin declares, at On an agent that can run commands, the skill drives the `wego` CLI, so both need to be present, in either order. On an agent that cannot, the skill uses the Wego -MCP server instead: install this plugin, or connect -`https://mcp.wego.com/public-app/v1/mcp` in the agent's MCP settings. +MCP server instead: connect `https://mcp.wego.com/public-app/v1/mcp` in the +agent's connector or MCP settings. No sign-in is needed. -Add the skill to your agent from this repository: +The following command adds the skill only; it does not connect an MCP server: ```bash npx --yes skills add https://github.com/wego/skills --skill wego ``` Install the CLI by following -[docs.wego.com/cli](https://docs.wego.com/cli#install). The skill never installs +[agents.wego.com/cli](https://agents.wego.com/cli#install). The skill never installs it for you. When the command is missing it uses the Wego MCP tools if they are connected, and otherwise links those instructions and waits. diff --git a/plugin/plugin.json b/plugin/plugin.json index 817356f..2f268b5 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -2,7 +2,7 @@ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "wego", "description": "Search and compare flights and hotels, resolve places, and generate checkout links, through the wego CLI where the agent can run commands and the Wego MCP server where it cannot.", - "homepage": "https://docs.wego.com", + "homepage": "https://agents.wego.com", "repository": "https://github.com/wego/skills", "license": "Apache-2.0" } diff --git a/scripts/plugin-conformance.test.ts b/scripts/plugin-conformance.test.ts index 2439da0..9eda5a1 100644 --- a/scripts/plugin-conformance.test.ts +++ b/scripts/plugin-conformance.test.ts @@ -71,7 +71,7 @@ describe("plugin.json conformance (Agent Plugins §5.2)", () => { }); it("points at the docs site and the published repo", () => { - expect(manifest.homepage).toBe("https://docs.wego.com"); + expect(manifest.homepage).toBe("https://agents.wego.com"); expect(manifest.repository).toBe("https://github.com/wego/skills"); }); diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index ea35238..68d778c 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -4,9 +4,9 @@ description: Search and compare flights and hotels on live Wego inventory, resol compatibility: Needs one of two environments: the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. --- -# Wego CLI +# Wego CLI and MCP tools -Translate the user's travel request into `wego ` commands, parse their JSON output, retain the identifiers needed by later commands, and present human-readable choices. Drive the complete flight or hotel funnel from prompting; do not make the user learn CLI syntax or copy internal IDs. +Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their results, retain the identifiers needed for follow-ups, and present human-readable choices. Drive the complete flight or hotel funnel from prompting; do not make the user learn command or tool syntax or copy internal IDs. **Where things are.** Read the operating contract first, then jump to the vertical the request needs: @@ -26,11 +26,11 @@ Translate the user's travel request into `wego ` commands, parse their JSON ## Operating contract -1. Every command here is `wego `, the Wego CLI documented at https://docs.wego.com/cli. Keep to the path item 2 picks for the whole workflow. It reads live inventory and prices, so quote what it returns rather than estimating, and never invent a figure it did not give you. +1. Every command here is `wego `, the Wego CLI documented at https://agents.wego.com/cli. Keep to the path item 2 picks for the whole workflow. Both the CLI and the MCP tools read live inventory and prices. On either path, quote what it returns rather than estimating, and never invent a figure it did not give you. 2. Pick the path before the first travel call, with `wego version`: - **It works:** use the CLI. The rest of this file applies as written. - - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)**. If you can run commands, tell the user once that the `wego` CLI does more, with a link to https://docs.wego.com/cli#install. - - **Neither:** if you can run commands, the user installs the CLI, not you: tell them the `wego` CLI is not installed, link the install instructions at https://docs.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If you cannot run commands, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. + - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)**. If you can run commands, tell the user once that the `wego` CLI does more, with a link to https://agents.wego.com/cli#install. + - **Neither:** if you can run commands, the user installs the CLI, not you: tell them the `wego` CLI is not installed, link the install instructions at https://agents.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If you cannot run commands, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. When the CLI is already present but the user wants the latest, or its syntax looks out of date, `wego update --check` reports whether a newer build exists @@ -77,7 +77,7 @@ Translate the user's travel request into `wego ` commands, parse their JSON `wego config set` writes to the user's own machine, so it needs their word – the same rule as updating the CLI. If they decline, say "just this once", or do not answer, write nothing and pass `--currency` / `--site` / `--locale` on each command for that session instead. Once the values are stored, later sessions read them from `wego config list` and ask nothing. 10. Preserve currency, market and locale throughout a funnel. With a stored setting, every command inherits it, so a read no longer reverts to USD – but an explicit flag still wins for that one command, and mixing the two inside one funnel is how a riyal price ends up compared against a dollar price. **A `searchId` remembers no currency.** So a search created with an explicit `--currency` must carry that same `--currency` on every later `results` / `trip` / `fares` read of it: omit it and the read is repriced into the stored preference, or into the API's USD when nothing is stored, and the two snapshots stop being comparable. Every read echoes the `currencyCode` it priced in – compare it against the one the search reported before you quote a number. **Every priced read echoes a `currencyCodeSource` beside that `currencyCode`** – both `search`es, both `results` reads, `trip`, `fares`, and both `rooms` forms – naming the layer that decided the unit: `explicit` (a `--currency` on that command), `setting` (the user's stored currency), or `default` (nobody chose one, so the API priced in USD). Read it before you quote the first number: on `default`, state the currency instead of letting the digits imply it, and offer contract item 9's one question; on `setting`, name the stored currency rather than presenting it as a choice made for this trip. It names the unit the command **asked** for, so when the top-level `currencyCode` differs from `metadata.currencyCode`, the price was not converted into the currency asked for: say that, rather than quoting the number as if it were in the requested currency. Every `*Source` field is **top level and there is exactly one per knob** – the CLI strips the API's own request-scoped copies from `metadata` before printing, so a payload never carries two answers to "who decided". There is no locale equivalent, by design: locale changes the language of the text, not the number, so no CLI output carries a `localeSource`. It still has to be asked for. When the user asks for their answers in another language, pass `--locale` on the reads whose text you will quote back to them, because the names in a Wego answer, the airlines, cities, airports, countries and holidays, come back in the language the read asked for. Translating them yourself puts your wording in front of someone who may be matching it against a booking page. Codes and keys do not move with the locale, so nothing you thread through the funnel changes: an English query still resolves `RUH` under `--locale ar`, and `results[].key` stays the same slug. Report the market when it was not explicit: `flights search` and `hotels search` echo a top-level `siteCode` beside a top-level `siteCodeSource` of `explicit`, `setting`, `account`, or `default`; `info schedules` reports the same top-level `siteCodeSource`, while its market value stays at `metadata.siteCode` – an echo only, since a published timetable does not vary by market. Confirm with the user when it reads `default`, or when the account market clearly mismatches the request (for example AED pricing against a `US` account). Do not infer a currency from the route, the destination, or a nationality. Market cannot change on `results` – a different market means a new search – and it must be re-supplied to the stateless `booking-link`. 11. Never claim that a booking, reservation, payment, cancellation, or modification occurred. This CLI searches and generates checkout links only. -12. Creating a search and reading a hotel's rooms are metered. This API is a research preview, so those limits are deliberate and fairly tight (the current figures are at https://docs.wego.com/api/rate-limits/) – say so whenever one is reached, including one you waited out and worked around (see Finish the answer). Plan inside that budget rather than discovering it: never open one search per airport, per date, or per hotel. When a request implies many, run a small first batch, present it, and ask the user which to expand – that is also a better conversation than a wall of options. Reads against an existing `searchId` (`results`, `trip`, `fares`) are far cheaper than a new search, so refine an existing search instead of creating another whenever the constraint can be expressed as a flag. `hotels rooms` is the one read that always mints a search of its own, one per hotel, so open it for the hotels the user actually picked rather than sweeping a results page with it. +12. Creating a search and reading a hotel's rooms are metered. This API is a research preview, so those limits are deliberate and fairly tight (the current figures are at https://agents.wego.com/api/rate-limits/) – say so whenever one is reached, including one you waited out and worked around (see Finish the answer). Plan inside that budget rather than discovering it: never open one search per airport, per date, or per hotel. When a request implies many, run a small first batch, present it, and ask the user which to expand – that is also a better conversation than a wall of options. Reads against an existing `searchId` (`results`, `trip`, `fares`) are far cheaper than a new search, so refine an existing search instead of creating another whenever the constraint can be expressed as a flag. `hotels rooms` is the one read that always mints a search of its own, one per hotel, so open it for the hotels the user actually picked rather than sweeping a results page with it. **`wego --help` is the authority on a flag.** It lists every flag of the installed binary with its allowed values. Read it before you guess a value, and before you drop a user's request because you cannot see a flag for it here: a flag this file omits and a flag the CLI lacks look the same from here. `wego --help` lists the commands. @@ -87,7 +87,7 @@ Use this section only when Operating contract item 2 picked the MCP tools. Each - **Still applies:** contract items 6, 7, 8, 11 and 12. Quote only what a tool returned, keep the ids it returned for follow-ups, present a ranked comparison, never claim a booking, and plan inside the search limits. - **Does not apply:** login, `whoami`, `update`, `skill`, the exit codes, and every `wego` command line in this file. The tools need no sign-in. -- **No stored preferences.** Ask contract item 9's one question when the user has not named a currency or market, then pass the same `currencyCode`, `siteCode` and `locale` on every call of a funnel. +- **No stored preferences.** Ask contract item 9's one question when the user has not named a currency or market. Pass `currencyCode`, `siteCode` and `locale` only to tools whose input schemas accept each value, and keep each value the same across those calls in a funnel. - **Links:** a `flights_search` trip carries a `handoffUrl`, its search carries a `resultUrl` that opens the same search on wego.com, and a `hotels_get_rooms` rate carries a `bookingUrl`. Hand them over as returned. These tasks need the CLI, because no MCP tool covers them: @@ -101,7 +101,7 @@ These tasks need the CLI, because no MCP tool covers them: | Stored currency, market and language | `config` | | Feedback to the Wego team | `feedback` | -For one of these, tell the user this connection cannot do it. If you can run commands, add that the `wego` CLI can, with a link to https://docs.wego.com/cli#install. If you cannot, give the wego.com link from the last result (`resultUrl`, `handoffUrl` or `bookingUrl`) where they can read it themselves. Never fill the gap from memory. +For one of these, tell the user this connection cannot do it. If you can run commands, add that the `wego` CLI can, with a link to https://agents.wego.com/cli#install. If you cannot, give the wego.com link from the last result (`resultUrl`, `handoffUrl` or `bookingUrl`) where they can read it themselves. Never fill the gap from memory. ## Gather inputs From d565d3d178e8b159dfa5945c74b6738d5d88bd9a Mon Sep 17 00:00:00 2001 From: YC Date: Thu, 12 Nov 2026 10:00:23 +0000 Subject: [PATCH 03/10] docs: move docs.wego.com links to agents.wego.com Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/config.yml | 2 +- README.md | 10 +++++----- docs/install-and-update.md | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 2fe85c6..097f587 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -5,7 +5,7 @@ blank_issues_enabled: true contact_links: - name: Using the CLI, or the Wego API - url: https://docs.wego.com/cli + url: https://agents.wego.com/cli about: Command reference, quickstart and the HTTP contract. Start here for how-to questions. - name: Proposing a change url: https://github.com/wego/cli/blob/main/CONTRIBUTING.md diff --git a/README.md b/README.md index 4bcc713..54538ef 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ are both open source. Made by [Wego](https://www.wego.com), the travel search engine and online travel agency for the Middle East, North Africa and beyond. Docs, quickstart and use cases -live at [docs.wego.com](https://docs.wego.com); the CLI reference is at -[docs.wego.com/cli](https://docs.wego.com/cli) and the HTTP contract at -[docs.wego.com/api](https://docs.wego.com/api). +live at [agents.wego.com](https://agents.wego.com); the CLI reference is at +[agents.wego.com/cli](https://agents.wego.com/cli) and the HTTP contract at +[agents.wego.com/api](https://agents.wego.com/api). The `wego` command is a public OAuth + PKCE client. It logs you in against `auth.wego.com` in your own browser, stores the token on your machine, and drives @@ -44,7 +44,7 @@ download. ## Install ```bash -curl -fsSL https://docs.wego.com/cli/install | bash +curl -fsSL https://agents.wego.com/cli/install | bash ``` To read the install script before you run it, leave off `| bash`. @@ -87,7 +87,7 @@ Install one by naming it, and you are done — the installer records the ring an `wego update` follows it from then on: ```bash -curl -fsSL 'https://docs.wego.com/cli/install?ring=next' | bash +curl -fsSL 'https://agents.wego.com/cli/install?ring=next' | bash ``` That is all most people ever need. diff --git a/docs/install-and-update.md b/docs/install-and-update.md index 5860239..071787a 100644 --- a/docs/install-and-update.md +++ b/docs/install-and-update.md @@ -46,7 +46,7 @@ The command's name on disk has nothing to do with it. ## 0 · Stable, the normal install ```bash -curl -fsSL https://docs.wego.com/cli/install | bash +curl -fsSL https://agents.wego.com/cli/install | bash wego login ``` @@ -75,7 +75,7 @@ For someone who wants the release candidate as their everyday CLI. Same command name, same directory, same login — only the ring differs: ```bash -curl -fsSL 'https://docs.wego.com/cli/install?ring=next' | bash +curl -fsSL 'https://agents.wego.com/cli/install?ring=next' | bash ``` Because the config directory does not depend on the ring, **you stay logged in and @@ -100,9 +100,9 @@ Reinstalling **is** the switch. It rewrites the binary and the ring record together, so they can never disagree: ```bash -curl -fsSL 'https://docs.wego.com/cli/install?ring=edge' | bash # onto edge -curl -fsSL 'https://docs.wego.com/cli/install?ring=next' | bash # onto next -curl -fsSL https://docs.wego.com/cli/install | bash # back to stable +curl -fsSL 'https://agents.wego.com/cli/install?ring=edge' | bash # onto edge +curl -fsSL 'https://agents.wego.com/cli/install?ring=next' | bash # onto next +curl -fsSL https://agents.wego.com/cli/install | bash # back to stable ``` There is deliberately no `wego ring` command: the record is written by the one @@ -127,7 +127,7 @@ for ring in next edge; do XDG_CONFIG_HOME="$root/config" \ WEGO_CLI_INSTALL_DIR="$root/bin" \ WEGO_CLI_INSTALL_SKILL=0 \ - sh -c "curl -fsSL 'https://docs.wego.com/cli/install?ring=$ring' | sh" + sh -c "curl -fsSL 'https://agents.wego.com/cli/install?ring=$ring' | sh" # A launcher on your PATH, so you never have to remember the variables. mkdir -p "$HOME/.local/bin" @@ -330,7 +330,7 @@ rules. ```bash WEGO_CLI_INSTALL_SKILL=0 \ - sh -c "curl -fsSL https://docs.wego.com/cli/install | sh" + sh -c "curl -fsSL https://agents.wego.com/cli/install | sh" ``` - `WEGO_CLI_INSTALL_SKILL=0` skips the agent-skill step, which has nothing to offer From 5dd6af742740bde76d2a9dc4379f15739a8b202c Mon Sep 17 00:00:00 2001 From: YC Date: Thu, 12 Nov 2026 10:19:30 +0000 Subject: [PATCH 04/10] fix(skill): make the skill frontmatter valid YAML Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- skills/wego/SKILL.md | 4 ++-- src/skill-embed.test.ts | 15 +++++++++++++++ src/skill-embed.ts | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 68d778c..6c8d0fe 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -1,7 +1,7 @@ --- name: wego -description: Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions: where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. -compatibility: Needs one of two environments: the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. +description: Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. +compatibility: Needs one of two environments, either the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. --- # Wego CLI and MCP tools diff --git a/src/skill-embed.test.ts b/src/skill-embed.test.ts index 963fb8e..0679493 100644 --- a/src/skill-embed.test.ts +++ b/src/skill-embed.test.ts @@ -42,6 +42,21 @@ describe("readEmbeddedSkill", () => { }); describe("SKILLS registry", () => { + it("parses frontmatter as three string fields matching the registry and scalar reader", () => { + const src = readFileSync(skillMd, "utf8"); + const parsed = Bun.YAML.parse(frontmatter(src)) as Record; + expect(Object.keys(parsed).sort()).toEqual([ + "compatibility", + "description", + "name", + ]); + for (const key of ["name", "description", "compatibility"]) { + expect(typeof parsed[key]).toBe("string"); + expect(parsed[key]).toBe(frontmatterField(src, key)); + } + expect(parsed.description).toBe(SKILLS[0].description); + }); + it("registers exactly one skill today, id `wego`", () => { expect(SKILLS.map((s) => s.id)).toEqual(["wego"]); }); diff --git a/src/skill-embed.ts b/src/skill-embed.ts index 07067ac..e25bc2f 100644 --- a/src/skill-embed.ts +++ b/src/skill-embed.ts @@ -32,7 +32,7 @@ export const SKILLS: readonly SkillEntry[] = [ id: "wego", // Kept in sync with the SKILL.md frontmatter `description:` by a drift test. description: - "Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions: where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", + "Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", read: () => Bun.file(wegoSkill).text(), }, ]; From 1bf703caf2ede77af2c383bc4fadb0dd628a4ba2 Mon Sep 17 00:00:00 2001 From: YC Date: Thu, 12 Nov 2026 10:25:50 +0000 Subject: [PATCH 05/10] refactor(skill): shorten the MCP section to what the tools do not say Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- skills/wego/SKILL.md | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 6c8d0fe..8b67c58 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -11,7 +11,7 @@ Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their res **Where things are.** Read the operating contract first, then jump to the vertical the request needs: - **Operating contract** – preflight, metering, currency, the rules that bind every command. Always applies. -- **Without the CLI (Wego MCP tools)** – what changes when Operating contract item 2 picks the MCP tools, and which tasks need the CLI. +- **Without the CLI (Wego MCP tools)** – what still applies when Operating contract item 2 picks the MCP tools, and what to do when no tool covers the task. - **Gather inputs** / **Resolve places** – turning a request into codes and dates. - **Reference lookups (`wego info`)** – holidays, visa-free, timetables, nearby airports, and which backend this binary resolved. No search, no price, no expiring id. - **Settled snapshots and empty pages** – what an empty result means, and what it never means. Both funnels depend on it; read it before you report a no-match. @@ -29,7 +29,7 @@ Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their res 1. Every command here is `wego `, the Wego CLI documented at https://agents.wego.com/cli. Keep to the path item 2 picks for the whole workflow. Both the CLI and the MCP tools read live inventory and prices. On either path, quote what it returns rather than estimating, and never invent a figure it did not give you. 2. Pick the path before the first travel call, with `wego version`: - **It works:** use the CLI. The rest of this file applies as written. - - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)**. If you can run commands, tell the user once that the `wego` CLI does more, with a link to https://agents.wego.com/cli#install. + - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)** for the rules that still apply and what to do when no tool covers the task. - **Neither:** if you can run commands, the user installs the CLI, not you: tell them the `wego` CLI is not installed, link the install instructions at https://agents.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If you cannot run commands, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. When the CLI is already present but the user wants the latest, or its syntax @@ -86,22 +86,8 @@ Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their res Use this section only when Operating contract item 2 picked the MCP tools. Each tool describes its own arguments, polling and paging, so read the tool rather than mapping `wego` flags onto it. - **Still applies:** contract items 6, 7, 8, 11 and 12. Quote only what a tool returned, keep the ids it returned for follow-ups, present a ranked comparison, never claim a booking, and plan inside the search limits. -- **Does not apply:** login, `whoami`, `update`, `skill`, the exit codes, and every `wego` command line in this file. The tools need no sign-in. -- **No stored preferences.** Ask contract item 9's one question when the user has not named a currency or market. Pass `currencyCode`, `siteCode` and `locale` only to tools whose input schemas accept each value, and keep each value the same across those calls in a funnel. -- **Links:** a `flights_search` trip carries a `handoffUrl`, its search carries a `resultUrl` that opens the same search on wego.com, and a `hotels_get_rooms` rate carries a `bookingUrl`. Hand them over as returned. -These tasks need the CLI, because no MCP tool covers them: - -| Task | CLI command | -|---|---| -| Visa-free destinations for a passport | `info visa-free` | -| One flight's fare options, baggage and refundability | `flights trip`, `flights fares` | -| What a journey is like to sit through | `flights experience` | -| A hotel's description and amenities, and its guest reviews | `hotels details`, `hotels reviews` | -| Stored currency, market and language | `config` | -| Feedback to the Wego team | `feedback` | - -For one of these, tell the user this connection cannot do it. If you can run commands, add that the `wego` CLI can, with a link to https://agents.wego.com/cli#install. If you cannot, give the wego.com link from the last result (`resultUrl`, `handoffUrl` or `bookingUrl`) where they can read it themselves. Never fill the gap from memory. +If no Wego MCP tool covers the task, tell the user this connection cannot do it, and never fill the gap from memory. If you can run commands, add that the `wego` CLI can, with a link to https://agents.wego.com/cli#install. ## Gather inputs @@ -616,7 +602,7 @@ final answer rather than only in the transcript behind it. | Situation | Action | |---|---| -| CLI missing, or you cannot run commands | Operating contract item 2: if the Wego MCP tools are present, use them now and do not wait. If they are not, link the install instructions when you can run commands and wait for the user to confirm, or tell the user how to connect the Wego MCP server when you cannot. | +| CLI missing, or you cannot run commands | Operating contract item 2: if the Wego MCP tools are present, use them now and do not wait; see Without the CLI (Wego MCP tools) when no tool covers the task. If they are not, link the install instructions when you can run commands and wait for the user to confirm, or tell the user how to connect the Wego MCP server when you cannot. | | CLI outdated, or a stderr line says a new version is available | Operating contract item 2 covers both: `update --check` is read-only, the self-replacing `update -y` needs the user's approval, and a from-source run prints a reinstall hint instead. The stderr notice is not an error and not a cue to stop, so finish the request first, then offer the update once. | | This skill itself looks stale, or the user wants it in another agent | `wego skill list` shows what is installable (offline, no auth) and `wego skill install` refreshes this file in place – it fetches the current published body, checksum-verifies it, and falls back to the copy baked into the binary when the network is unavailable, so it never fails on a down remote. Writing files needs the user's approval first, like an update. To set the skill up for another coding agent, that same subcommand takes `--agent ` (repeatable, `'*'` for all) and `-g` for a user-wide install; omitted, it targets the agents already present. | | Not authenticated | Run `wego login`, wait for the browser flow, verify with `wego whoami`, then resume. If stderr says no browser is on this machine, or that this terminal cannot read a paste, see Login environments below – that login needs the user's own terminal. | From fa7557eaaf2d1813dcc272be09efeea1185b1ee9 Mon Sep 17 00:00:00 2001 From: YC Date: Fri, 13 Nov 2026 07:56:34 +0000 Subject: [PATCH 06/10] docs(skill): use plain words in the skill and plugin descriptions Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/README.md | 6 +++--- plugin/plugin.json | 2 +- skills/wego/SKILL.md | 2 +- src/skill-embed.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/README.md b/plugin/README.md index aeda376..75849d7 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -23,14 +23,14 @@ authorization, credential storage, API access, one JSON envelope, and metering. ## Works with Any agent that supports [skills](https://agentskills.io/). On a machine or sandbox -that can run commands, the skill drives [our CLI](https://agents.wego.com/cli): +that can run commands, the skill uses [our CLI](https://agents.wego.com/cli): Claude Code, Codex, Cursor, OpenClaw, Hermes and Pi, to name a few. Without one, -it uses the Wego MCP server the plugin declares, at +it uses the Wego MCP server that comes with the plugin, at `https://mcp.wego.com/public-app/v1/mcp`, which needs no sign-in. ## Install -On an agent that can run commands, the skill drives the `wego` CLI, so both need +On an agent that can run commands, the skill uses the `wego` CLI, so both need to be present, in either order. On an agent that cannot, the skill uses the Wego MCP server instead: connect `https://mcp.wego.com/public-app/v1/mcp` in the agent's connector or MCP settings. No sign-in is needed. diff --git a/plugin/plugin.json b/plugin/plugin.json index 2f268b5..3ec9c7e 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "wego", - "description": "Search and compare flights and hotels, resolve places, and generate checkout links, through the wego CLI where the agent can run commands and the Wego MCP server where it cannot.", + "description": "Search and compare flights and hotels, find airports and cities, and generate checkout links, through the wego CLI where the agent can run commands and the Wego MCP server where it cannot.", "homepage": "https://agents.wego.com", "repository": "https://github.com/wego/skills", "license": "Apache-2.0" diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 8b67c58..6c2c408 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -1,6 +1,6 @@ --- name: wego -description: Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. +description: Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. compatibility: Needs one of two environments, either the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. --- diff --git a/src/skill-embed.ts b/src/skill-embed.ts index e25bc2f..972c51b 100644 --- a/src/skill-embed.ts +++ b/src/skill-embed.ts @@ -32,7 +32,7 @@ export const SKILLS: readonly SkillEntry[] = [ id: "wego", // Kept in sync with the SKILL.md frontmatter `description:` by a drift test. description: - "Search and compare flights and hotels on live Wego inventory, resolve places, read trips, fares and room rates, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a market, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", + "Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", read: () => Bun.file(wegoSkill).text(), }, ]; From 91ed5f334f13b76670ccce64029a25cb2fe94d46 Mon Sep 17 00:00:00 2001 From: YC Date: Mon, 16 Nov 2026 00:44:33 +0000 Subject: [PATCH 07/10] docs(plugin): name the CLI directly in the manifest description Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/plugin.json b/plugin/plugin.json index 3ec9c7e..42feb39 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "wego", - "description": "Search and compare flights and hotels, find airports and cities, and generate checkout links, through the wego CLI where the agent can run commands and the Wego MCP server where it cannot.", + "description": "Search and compare flights and hotels, find airports and cities, and generate checkout links, through the wego CLI where the agent can run it, or the Wego MCP server where it cannot.", "homepage": "https://agents.wego.com", "repository": "https://github.com/wego/skills", "license": "Apache-2.0" From 0a7688dbea94d7ae8226b185a55a0eba5b5618d0 Mon Sep 17 00:00:00 2001 From: YC Date: Mon, 16 Nov 2026 00:58:46 +0000 Subject: [PATCH 08/10] docs(plugin): drop the sign-in note from the MCP connect step Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/README.md b/plugin/README.md index 75849d7..368196b 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -33,7 +33,7 @@ it uses the Wego MCP server that comes with the plugin, at On an agent that can run commands, the skill uses the `wego` CLI, so both need to be present, in either order. On an agent that cannot, the skill uses the Wego MCP server instead: connect `https://mcp.wego.com/public-app/v1/mcp` in the -agent's connector or MCP settings. No sign-in is needed. +agent's connector or MCP settings. The following command adds the skill only; it does not connect an MCP server: From 1c67171de906b9cd034d0839faf19ab1b43618df Mon Sep 17 00:00:00 2001 From: YC Date: Mon, 16 Nov 2026 01:28:08 +0000 Subject: [PATCH 09/10] fix(skill): make the CLI the default and use MCP only when the CLI cannot run Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- plugin/README.md | 11 ++++++----- skills/wego/SKILL.md | 28 +++++++++++++++------------- src/skill-embed.ts | 2 +- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/plugin/README.md b/plugin/README.md index 368196b..e85c449 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -24,14 +24,15 @@ authorization, credential storage, API access, one JSON envelope, and metering. Any agent that supports [skills](https://agentskills.io/). On a machine or sandbox that can run commands, the skill uses [our CLI](https://agents.wego.com/cli): -Claude Code, Codex, Cursor, OpenClaw, Hermes and Pi, to name a few. Without one, -it uses the Wego MCP server that comes with the plugin, at +Claude Code, Codex, Cursor, OpenClaw, Hermes and Pi, to name a few. Where the +agent cannot run the CLI, it uses the Wego MCP server that comes with the plugin, at `https://mcp.wego.com/public-app/v1/mcp`, which needs no sign-in. ## Install On an agent that can run commands, the skill uses the `wego` CLI, so both need -to be present, in either order. On an agent that cannot, the skill uses the Wego +to be present, in either order. On an agent that cannot run commands, or that +cannot install the CLI or reach the network with it, the skill uses the Wego MCP server instead: connect `https://mcp.wego.com/public-app/v1/mcp` in the agent's connector or MCP settings. @@ -43,8 +44,8 @@ npx --yes skills add https://github.com/wego/skills --skill wego Install the CLI by following [agents.wego.com/cli](https://agents.wego.com/cli#install). The skill never installs -it for you. When the command is missing it uses the Wego MCP tools if they are -connected, and otherwise links those instructions and waits. +it for you. When the command is missing it links those instructions and waits, +and uses the Wego MCP tools only if you say you cannot install the CLI there. The CLI's source is at [github.com/wego/cli](https://github.com/wego/cli). diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 6c2c408..d78b923 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -1,17 +1,17 @@ --- name: wego -description: Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. -compatibility: Needs one of two environments, either the wego CLI on PATH (check with `wego version`) with network access to api.wego.com, or the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. +description: Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI, and through the Wego MCP tools only where the environment cannot run the CLI. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command. +compatibility: Needs the wego CLI on PATH (check with `wego version`) with network access to api.wego.com. Where the environment cannot run the CLI, needs the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp connected, with network access to mcp.wego.com. --- # Wego CLI and MCP tools -Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their results, retain the identifiers needed for follow-ups, and present human-readable choices. Drive the complete flight or hotel funnel from prompting; do not make the user learn command or tool syntax or copy internal IDs. +Use the CLI. Use the Wego MCP tools only in the cases Operating contract item 2 names. Read their results, retain the identifiers needed for follow-ups, and present human-readable choices. Drive the complete flight or hotel funnel from prompting; do not make the user learn command or tool syntax or copy internal IDs. **Where things are.** Read the operating contract first, then jump to the vertical the request needs: - **Operating contract** – preflight, metering, currency, the rules that bind every command. Always applies. -- **Without the CLI (Wego MCP tools)** – what still applies when Operating contract item 2 picks the MCP tools, and what to do when no tool covers the task. +- **Without the CLI (Wego MCP tools)** – what still applies when Operating contract item 2 sends you to the MCP tools, and what to do when no tool covers the task. - **Gather inputs** / **Resolve places** – turning a request into codes and dates. - **Reference lookups (`wego info`)** – holidays, visa-free, timetables, nearby airports, and which backend this binary resolved. No search, no price, no expiring id. - **Settled snapshots and empty pages** – what an empty result means, and what it never means. Both funnels depend on it; read it before you report a no-match. @@ -27,10 +27,12 @@ Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their res ## Operating contract 1. Every command here is `wego `, the Wego CLI documented at https://agents.wego.com/cli. Keep to the path item 2 picks for the whole workflow. Both the CLI and the MCP tools read live inventory and prices. On either path, quote what it returns rather than estimating, and never invent a figure it did not give you. -2. Pick the path before the first travel call, with `wego version`: - - **It works:** use the CLI. The rest of this file applies as written. - - **The CLI is not usable** (you cannot run a command, or `wego` is missing) **and the Wego MCP tools are present** (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names): use the MCP tools now, and do not wait for an install. See **Without the CLI (Wego MCP tools)** for the rules that still apply and what to do when no tool covers the task. - - **Neither:** if you can run commands, the user installs the CLI, not you: tell them the `wego` CLI is not installed, link the install instructions at https://agents.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If you cannot run commands, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. +2. The CLI is the default, because it does more than the Wego MCP tools (`flights_search`, `hotels_search`, `places_find_location` and the rest; your client may add a prefix to the names). Use the MCP tools only in one of these three cases, never by preference: + - **You cannot run a command:** use the MCP tools. If they are not connected, tell the user to connect the Wego MCP server at https://mcp.wego.com/public-app/v1/mcp (no sign-in needed) in their agent's connector or MCP settings, then ask again. + - **You can run a command and `wego` is missing:** the user installs the CLI, not you. Tell them the `wego` CLI is not installed, link the install instructions at https://agents.wego.com/cli#install, and wait for them to confirm it is installed before you continue. Never download or run an installer yourself. If the user says they cannot install it in this environment, use the MCP tools. + - **`wego` is installed but cannot reach the network:** a command exits `7` and its stderr reads `Cannot reach the Wego API at `. Make the one bounded retry in Recover safely; if it fails the same way, use the MCP tools. + + In every other case `wego version` works: use the CLI, and the rest of this file applies as written. When a case sends you to the MCP tools and they are not connected, tell the user how to connect the Wego MCP server, as in the first case. See **Without the CLI (Wego MCP tools)** for the rules that still apply there. When the CLI is already present but the user wants the latest, or its syntax looks out of date, `wego update --check` reports whether a newer build exists @@ -83,11 +85,11 @@ Use the CLI or Wego MCP tools as Operating contract item 2 picks. Read their res ## Without the CLI (Wego MCP tools) -Use this section only when Operating contract item 2 picked the MCP tools. Each tool describes its own arguments, polling and paging, so read the tool rather than mapping `wego` flags onto it. +Use this section only when Operating contract item 2 sends you to the MCP tools. Each tool describes its own arguments, polling and paging, so read the tool rather than mapping `wego` flags onto it. - **Still applies:** contract items 6, 7, 8, 11 and 12. Quote only what a tool returned, keep the ids it returned for follow-ups, present a ranked comparison, never claim a booking, and plan inside the search limits. -If no Wego MCP tool covers the task, tell the user this connection cannot do it, and never fill the gap from memory. If you can run commands, add that the `wego` CLI can, with a link to https://agents.wego.com/cli#install. +If no Wego MCP tool covers the task, tell the user this connection cannot do it, and never fill the gap from memory. Name the `wego` CLI, with a link to https://agents.wego.com/cli#install, only when a `wego` command in this file covers the task. ## Gather inputs @@ -602,7 +604,7 @@ final answer rather than only in the transcript behind it. | Situation | Action | |---|---| -| CLI missing, or you cannot run commands | Operating contract item 2: if the Wego MCP tools are present, use them now and do not wait; see Without the CLI (Wego MCP tools) when no tool covers the task. If they are not, link the install instructions when you can run commands and wait for the user to confirm, or tell the user how to connect the Wego MCP server when you cannot. | +| CLI missing, or you cannot run commands | Operating contract item 2. If you cannot run commands, use the Wego MCP tools, or tell the user how to connect the Wego MCP server. If `wego` is missing, link the install instructions and wait for the user to confirm; use the MCP tools only if they say they cannot install it in this environment. See Without the CLI (Wego MCP tools) when no tool covers the task. | | CLI outdated, or a stderr line says a new version is available | Operating contract item 2 covers both: `update --check` is read-only, the self-replacing `update -y` needs the user's approval, and a from-source run prints a reinstall hint instead. The stderr notice is not an error and not a cue to stop, so finish the request first, then offer the update once. | | This skill itself looks stale, or the user wants it in another agent | `wego skill list` shows what is installable (offline, no auth) and `wego skill install` refreshes this file in place – it fetches the current published body, checksum-verifies it, and falls back to the copy baked into the binary when the network is unavailable, so it never fails on a down remote. Writing files needs the user's approval first, like an update. To set the skill up for another coding agent, that same subcommand takes `--agent ` (repeatable, `'*'` for all) and `-g` for a user-wide install; omitted, it targets the agents already present. | | Not authenticated | Run `wego login`, wait for the browser flow, verify with `wego whoami`, then resume. If stderr says no browser is on this machine, or that this terminal cannot read a paste, see Login environments below – that login needs the user's own terminal. | @@ -613,7 +615,7 @@ final answer rather than only in the transcript behind it. | Search, trip, fare, or rate expired | Re-run the relevant search from saved human inputs and harvest fresh IDs. | | No results after several reads | Suggest broader filters, nearby airports or coordinates, or different dates. | | `429` (exit `5`) | The CLI auto-retries a read once, honoring `Retry-After` (capped at 60s). A read that still fails, or any failed create (POST is never auto-retried), exits `5`: wait out any `retry after Ns` hint, then make one more bounded retry and no more. Retrying is the wrong repair when you are working through a list of airports, dates or hotels, because the next call hits the same limit: narrow the work, say you are checking fewer options to stay inside the limit, and ask which ones matter. However much you recover, the limit is still named and still passed on in your final answer – see Finish the answer. | -| Cannot reach the API / timeout (exit `7`) | The API host was unreachable or the request timed out. Check network connectivity, then make one bounded retry; the CLI's stderr line names the host it tried. | +| Cannot reach the API / timeout (exit `7`) | The API host was unreachable or the request timed out. Check network connectivity, then make one bounded retry; the CLI's stderr line names the host it tried. If the retry fails with `Cannot reach the Wego API`, follow Operating contract item 2. | | Non-JSON or unexpected output | Stop and report the CLI/API contract error; do not guess fields. | | User changes selection | Return to the relevant results, trip, or rooms step; do not reuse the previous option's IDs. | @@ -647,7 +649,7 @@ The process exit code is a stable taxonomy – branch on it rather than parsing | `4` | Not found / expired – `404` | Re-run the relevant search from saved human inputs and harvest fresh IDs. | | `5` | Retryable – `429` / `503` | Honor any `Retry-After`, then make one bounded retry. | | `6` | Permanent – `validation_failed` / `bad_gateway` / `internal_error` / other 4xx-5xx | Stop and report; do not blindly retry. Branch on the `code`, and on `validation_failed` read the `detail` – it names the recovery (see above). | -| `7` | Timeout / network – host unreachable or deadline hit | Check the API is up/reachable, then retry. | +| `7` | Timeout / network – host unreachable or deadline hit | Check the API is up/reachable, then retry. If it still cannot reach the API, follow Operating contract item 2. | | `130` | Interrupted (Ctrl-C) | The run was cancelled; nothing to recover. | | `1` | Unclassified error | Report and stop. | diff --git a/src/skill-embed.ts b/src/skill-embed.ts index 972c51b..7898414 100644 --- a/src/skill-embed.ts +++ b/src/skill-embed.ts @@ -32,7 +32,7 @@ export const SKILLS: readonly SkillEntry[] = [ id: "wego", // Kept in sync with the SKILL.md frontmatter `description:` by a drift test. description: - "Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI when the agent can run it, and through the Wego MCP tools when it cannot. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", + "Search and compare flights and hotels with live prices from Wego, find airports and cities, show flight, fare and room details, refine searches, and generate Wego or provider checkout links. Also answers travel reference questions about where a passport can go without a visa, public holidays in a country, what an airline flies on a route, and which airports are near a city. Works through the `wego` CLI, and through the Wego MCP tools only where the environment cannot run the CLI. Use for natural-language flight and hotel searches, fare or room comparisons, combined trip planning, follow-up refinements, and requests to continue a selected option to checkout. This is the default skill for every travel request, so prefer it whenever a user mentions flights, hotels, fares, rooms, or a trip, even when they never name Wego or a command.", read: () => Bun.file(wegoSkill).text(), }, ]; From 7c607dd15216aafae2851db6be8dcec40cd626bf Mon Sep 17 00:00:00 2001 From: YC Date: Mon, 16 Nov 2026 01:34:03 +0000 Subject: [PATCH 10/10] test(plugin): check the manifest description names both the CLI and MCP Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- scripts/plugin-conformance.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/plugin-conformance.test.ts b/scripts/plugin-conformance.test.ts index 9eda5a1..2a1e877 100644 --- a/scripts/plugin-conformance.test.ts +++ b/scripts/plugin-conformance.test.ts @@ -82,6 +82,11 @@ describe("plugin.json conformance (Agent Plugins §5.2)", () => { ); }); + it("names both paths, the CLI and MCP, in the description", () => { + expect(manifest.description as string).toContain("CLI"); + expect(manifest.description as string).toContain("MCP"); + }); + it("declares Apache-2.0 as an SPDX identifier", () => { // §5.2 types `license` as a string and does not constrain it, so the // constraint is ours: an SPDX id is the only spelling a consumer can match