Skip to content

✨ flight-tool: mcp server#91

Merged
mrsabath merged 10 commits intokagenti:mainfrom
SiennaChien:flight-tool
Nov 19, 2025
Merged

✨ flight-tool: mcp server#91
mrsabath merged 10 commits intokagenti:mainfrom
SiennaChien:flight-tool

Conversation

@SiennaChien
Copy link
Copy Markdown
Contributor

@SiennaChien SiennaChien commented Oct 28, 2025

Summary

This PR contains a simple MCP server that uses the fast-flights python library. It has been tested with the current weather demo agent (see image below)

The MCP server contains 2 tools

  • search_airports(): returns the airport code of airport(s) around a given city
  • search_flights(): returns future flights matching the given parameters

Demo Screenshot:
Screenshot 2025-10-27 at 8 08 58 PM

Edit (11/2): Additional testing completed with Peter's generic agent (will link his PR when he creates it, link to his fork). See image below:
Screenshot 2025-11-02 at 9 28 37 PM

Related issue(s)

Issue #78

@mrsabath mrsabath requested a review from Copilot October 28, 2025 14:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new MCP (Model Context Protocol) server for flight search functionality using the fast-flights Python library. The server provides two tools for searching airports and flights, enabling AI agents to help users find flight information.

Key Changes:

  • Added a new flight_tool MCP server with airport and flight search capabilities
  • Integrated the server into the sample environments configuration
  • Includes proper validation for dates, passenger counts, and search parameters

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sample-environments.yaml Added mcp-flight configuration entry with MCP_URL endpoint
mcp/flight_tool/pyproject.toml Project configuration with dependencies for fastmcp, fast_flights, and playwright
mcp/flight_tool/inspector.config.json MCP Inspector configuration for local testing
mcp/flight_tool/flight_tool.py Main server implementation with search_airports and search_flights tools
mcp/flight_tool/init.py Package initialization with Apache 2.0 license header
mcp/flight_tool/README.md Documentation for the MCP server, tools, parameters, and usage
mcp/flight_tool/Dockerfile Container configuration using uv and Python 3.12

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.

Comments suppressed due to low confidence (1)

mcp/flight_tool/flight_tool.py:274

  • Except block directly handles BaseException.
    except:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sienna Chien added 8 commits November 5, 2025 11:44
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
@kellyaa
Copy link
Copy Markdown
Contributor

kellyaa commented Nov 5, 2025

Made one comment/question in the code, but otherwise LGTM

Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Signed-off-by: Sienna Chien <siennac@Siennas-MacBook-Air.local>
Copy link
Copy Markdown
Contributor

@mrsabath mrsabath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Sienna for this useful contributions.
LGTM

@mrsabath mrsabath merged commit 1975b62 into kagenti:main Nov 19, 2025
2 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.

5 participants