Skip to content

Conversation

@punitarani
Copy link
Owner

This commit updates the CLI commands for flight searches, replacing the previous search and cheap commands with flights and dates. Key changes include:

  • CLI Command Updates:

    • Renamed commands to better reflect their functionality.
    • Updated documentation and examples to align with new command names.
  • New Command Implementations:

    • Introduced dates.py for searching the cheapest travel dates.
    • Implemented flights.py for searching specific flights with enhanced filtering options.
  • Testing Enhancements:

    • Added comprehensive tests for both new commands to ensure functionality and reliability.

These changes aim to improve user experience and streamline the flight search process.

This commit introduces significant updates to the MCP server and CLI for flight search:

- **MCP Server Enhancements**:
  - Added `search_dates` tool for finding cheapest travel dates.
  - Improved parameter handling in `FlightSearchParams` and `DateSearchParams` for better clarity and usability.
  - Refactored server to streamline request handling and improve error messaging.

- **CLI Updates**:
  - Updated command options to reflect new parameter names and improve user experience.
  - Enhanced validation and parsing utilities for better error handling.
  - Improved documentation and examples for MCP server integration.

- **Core Utilities**:
  - Introduced shared parsing and building utilities to reduce code duplication between CLI and MCP.

These changes aim to enhance the overall functionality and user experience of the flight search tools.
This commit updates the CLI commands for flight searches, replacing the previous `search` and `cheap` commands with `flights` and `dates`. Key changes include:

- **CLI Command Updates**:
  - Renamed commands to better reflect their functionality.
  - Updated documentation and examples to align with new command names.

- **New Command Implementations**:
  - Introduced `dates.py` for searching the cheapest travel dates.
  - Implemented `flights.py` for searching specific flights with enhanced filtering options.

- **Testing Enhancements**:
  - Added comprehensive tests for both new commands to ensure functionality and reliability.

These changes aim to improve user experience and streamline the flight search process.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Test Results

  4 files  ±0    4 suites  ±0   6m 52s ⏱️ -10s
195 tests ±0  195 ✅ ±0  0 💤 ±0  0 ❌ ±0 
780 runs  ±0  780 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c9b2570. ± Comparison against base commit 0db1663.

♻️ This comment has been updated with latest results.

…display

This commit introduces the `plotext` library as a new dependency for rendering sparkline charts. The `display_date_results` function is updated to visualize price trends over dates using a sparkline chart, enhancing the user experience by providing a graphical representation of data alongside the existing table format. The chart includes proper labeling and formatting for clarity.
This commit introduces a new `search_with_retry` function that implements retry logic for the flight search API, utilizing the `tenacity` library. The function attempts to search for flights up to three times with exponential backoff if the initial search returns empty results. This enhancement aims to improve the reliability of flight search results in the face of flaky API responses.
@punitarani punitarani merged commit 6c53304 into main Dec 22, 2025
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants