Claude Code guide

Book flights from Claude Code

Connect Claude to the same ten transaction-safe FlightSweeper tools and create a ready-to-complete hosted checkout without a second agent round trip.

Bearer-token connection available

Authorize with OAuth when supported, or create a revocable 30-day personal token and copy the generated client configuration. Two personal tokens may overlap during rotation.

Best for

Claude Code users who want careful comparison of flexible dates and trip rules.

Starter prompt

Use FlightSweeper to compare live flights from LAX to ORD for two adults. Preserve my flexibility rules and ask before creating a trip watch or hosted checkout link.

Setup flow

Every client uses the same Streamable HTTP endpoint and the same ten public tools. Checkout links return directly; persistent watch creation keeps hosted approval.

Personal-token secrets are shown once, expire after 30 days, and can be revoked from Account → Integrations. OAuth access tokens expire after 10 minutes and refresh tokens rotate.

1

Create a FlightSweeper account, then open Account → Integrations.

2

Create a Claude Code token and copy it once into the FLIGHTSWEEPER_AGENT_TOKEN environment variable.

3

Copy the generated Streamable HTTP configuration into your Claude Code MCP settings.

4

Confirm Claude Code discovers exactly ten FlightSweeper tools before the first live search.

5

Let Claude return the hosted checkout; review the refreshed total and enter passenger/card details only on FlightSweeper.

Tool permissions

Every client should keep the same transaction boundary: search can happen in the agent, but booking happens after the traveler confirms a hosted checkout page.

Fare-bearing results include all-in total, currency, quotedAt, expiresAt, and refresh state.
create_checkout_link returns an idempotent hosted handoff immediately; create_trip_watch still requires exact-payload owner approval.
Payment, ticketing, passenger details, cancellation, refunds, and support stay out of agent context.
Booking status, watches, and preference summaries are scoped to the authenticated owner.