# muleaceacademy/flight-mcp-server architecture

> Architecture diagram of the GitHub repository muleaceacademy/flight-mcp-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muleaceacademy/flight-mcp-server
- Repository: https://github.com/muleaceacademy/flight-mcp-server

## Overview

This is a MuleSoft MCP server that exposes simulated flight-search and booking tools over Streamable HTTP. An agent resolves airports, searches offers, inspects a selected flight and its fare rules, checks seat availability, then may request a simulated hold. The README documents the tool workflow, mock-data design and health endpoint; the sampled source is only a smoke-test client, so implementation-level routing among Mule flows, transformations and data files is not verified.

Main entry points: [`src/main/mule/flight-mcp-server.xml`](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml) (Tool dispatch), [`src/main/resources/mock/flights.json`](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/flights.json) (Flight inventory), [`src/main/resources/dw/search-airports.dwl`](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-airports.dwl) (Airport transform), [`src/main/resources/dw/search-flights.dwl`](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-flights.dwl) (Search transform)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_protocol["MCP interface"]
  node_transport["Streamable HTTP"]
  node_tool_dispatch["Tool dispatch"]
end

subgraph group_flight["Flight tools"]
  node_airport_search["Airport search"]
  node_flight_search["Flight search"]
  node_flight_details["Flight details"]
  node_fare_rules["Fare rules"]
  node_seat_check["Seat check"]
  node_flight_hold["Flight hold"]
  node_airport_transform["Airport transform"]
  node_search_transform["Search transform<br/>[search-flights.dwl]"]
  node_details_transform["Details transform"]
  node_rules_transform["Rules transform<br/>[get-fare-rules.dwl]"]
  node_seat_transform["Seat transform"]
  node_hold_transform["Hold transform"]
end

subgraph group_data["Mock data"]
  node_airport_data[("Airport catalog<br/>[airports.json]")]
  node_flight_data[("Flight inventory<br/>[flights.json]")]
  node_rules_data[("Fare-rule catalog<br/>[fare-rules.json]")]
end

subgraph group_operations["Service operations"]
  node_health["Health endpoint"]
  node_config["Runtime configuration<br/>[config.yaml]"]
end

node_agent(("AI agent"))

node_agent -->|"sends MCP requests"| node_transport
node_transport -->|"routes tool calls"| node_tool_dispatch
node_tool_dispatch -->|"dispatches"| node_airport_search
node_tool_dispatch -->|"dispatches"| node_flight_search
node_tool_dispatch -->|"dispatches"| node_flight_details
node_tool_dispatch -->|"dispatches"| node_fare_rules
node_tool_dispatch -->|"dispatches"| node_seat_check
node_tool_dispatch -->|"dispatches"| node_flight_hold
node_airport_search -.->|"transforms"| node_airport_transform
node_airport_search -.->|"reads"| node_airport_data
node_flight_search -.->|"transforms"| node_search_transform
node_flight_search -.->|"reads"| node_flight_data
node_flight_details -.->|"transforms"| node_details_transform
node_flight_details -.->|"reads"| node_flight_data
node_fare_rules -.->|"transforms"| node_rules_transform
node_fare_rules -.->|"reads"| node_rules_data
node_seat_check -.->|"transforms"| node_seat_transform
node_seat_check -.->|"reads"| node_flight_data
node_flight_hold -.->|"transforms"| node_hold_transform
node_flight_hold -.->|"checks inventory"| node_flight_data
node_transport -->|"serves health route"| node_health
node_transport -.->|"uses settings"| node_config

click node_transport "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_tool_dispatch "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_airport_search "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_flight_search "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_flight_details "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_fare_rules "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_seat_check "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_flight_hold "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_airport_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-airports.dwl"
click node_search_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-flights.dwl"
click node_details_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/get-flight-details.dwl"
click node_rules_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/get-fare-rules.dwl"
click node_seat_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/check-seat-availability.dwl"
click node_hold_transform "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/create-flight-hold.dwl"
click node_airport_data "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/airports.json"
click node_flight_data "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/flights.json"
click node_rules_data "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/fare-rules.json"
click node_health "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml"
click node_config "https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/config.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_transport,node_tool_dispatch toneBlue
class node_airport_search,node_flight_search,node_flight_details,node_fare_rules,node_seat_check,node_flight_hold,node_airport_transform,node_search_transform,node_details_transform,node_rules_transform,node_seat_transform,node_hold_transform toneAmber
class node_airport_data,node_flight_data,node_rules_data toneMint
class node_health,node_config toneRose
class node_agent toneIndigo
```

## Components

### MCP interface

- [Streamable HTTP](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Tool dispatch](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`

### Flight tools

- [Airport search](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Flight search](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Flight details](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Fare rules](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Seat check](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Flight hold](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Airport transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-airports.dwl): `src/main/resources/dw/search-airports.dwl`
- [Search transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/search-flights.dwl): `src/main/resources/dw/search-flights.dwl`
- [Details transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/get-flight-details.dwl): `src/main/resources/dw/get-flight-details.dwl`
- [Rules transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/get-fare-rules.dwl): `src/main/resources/dw/get-fare-rules.dwl`
- [Seat transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/check-seat-availability.dwl): `src/main/resources/dw/check-seat-availability.dwl`
- [Hold transform](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/dw/create-flight-hold.dwl): `src/main/resources/dw/create-flight-hold.dwl`

### Mock data

- [Airport catalog](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/airports.json): `src/main/resources/mock/airports.json`
- [Flight inventory](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/flights.json): `src/main/resources/mock/flights.json`
- [Fare-rule catalog](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/mock/fare-rules.json): `src/main/resources/mock/fare-rules.json`

### Service operations

- [Health endpoint](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/mule/flight-mcp-server.xml): `src/main/mule/flight-mcp-server.xml`
- [Runtime configuration](https://github.com/muleaceacademy/flight-mcp-server/blob/main/src/main/resources/config.yaml): `src/main/resources/config.yaml`

### Other components

- **AI agent**

## Connections

- AI agent → Streamable HTTP: sends MCP requests (evidence: `README.md`)
- Streamable HTTP → Tool dispatch: routes tool calls (evidence: `README.md`)
- Tool dispatch → Airport search: dispatches (evidence: `README.md`)
- Tool dispatch → Flight search: dispatches (evidence: `README.md`)
- Tool dispatch → Flight details: dispatches (evidence: `README.md`)
- Tool dispatch → Fare rules: dispatches (evidence: `README.md`)
- Tool dispatch → Seat check: dispatches (evidence: `README.md`)
- Tool dispatch → Flight hold: dispatches (evidence: `README.md`)
- Airport search → Airport transform: transforms
- Airport search → Airport catalog: reads
- Flight search → Search transform: transforms
- Flight search → Flight inventory: reads
- Flight details → Details transform: transforms
- Flight details → Flight inventory: reads
- Fare rules → Rules transform: transforms
- Fare rules → Fare-rule catalog: reads
- Seat check → Seat transform: transforms
- Seat check → Flight inventory: reads
- Flight hold → Hold transform: transforms
- Flight hold → Flight inventory: checks inventory
- Streamable HTTP → Health endpoint: serves health route (evidence: `README.md`)
- Streamable HTTP → Runtime configuration: uses settings
