@dangahagan/weather-mcp 1.37.1 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -15
- package/dist/config/cache.d.ts +2 -0
- package/dist/config/cache.d.ts.map +1 -1
- package/dist/config/cache.js +11 -0
- package/dist/config/cache.js.map +1 -1
- package/dist/config/tools.d.ts +6 -3
- package/dist/config/tools.d.ts.map +1 -1
- package/dist/config/tools.js +11 -3
- package/dist/config/tools.js.map +1 -1
- package/dist/handlers/aviationWeatherHandler.d.ts +183 -0
- package/dist/handlers/aviationWeatherHandler.d.ts.map +1 -0
- package/dist/handlers/aviationWeatherHandler.js +817 -0
- package/dist/handlers/aviationWeatherHandler.js.map +1 -0
- package/dist/server/weatherServer.d.ts +38 -0
- package/dist/server/weatherServer.d.ts.map +1 -1
- package/dist/server/weatherServer.js +25 -3
- package/dist/server/weatherServer.js.map +1 -1
- package/dist/services/aviationWeather.d.ts +82 -9
- package/dist/services/aviationWeather.d.ts.map +1 -1
- package/dist/services/aviationWeather.js +269 -19
- package/dist/services/aviationWeather.js.map +1 -1
- package/dist/types/aviationWeather.d.ts +148 -3
- package/dist/types/aviationWeather.d.ts.map +1 -1
- package/dist/types/aviationWeather.js +10 -3
- package/dist/types/aviationWeather.js.map +1 -1
- package/dist/utils/aviationHazards.d.ts +204 -0
- package/dist/utils/aviationHazards.d.ts.map +1 -0
- package/dist/utils/aviationHazards.js +590 -0
- package/dist/utils/aviationHazards.js.map +1 -0
- package/dist/utils/pilotReports.d.ts +67 -0
- package/dist/utils/pilotReports.d.ts.map +1 -0
- package/dist/utils/pilotReports.js +112 -0
- package/dist/utils/pilotReports.js.map +1 -0
- package/dist/utils/tafForecast.d.ts +110 -0
- package/dist/utils/tafForecast.d.ts.map +1 -0
- package/dist/utils/tafForecast.js +222 -0
- package/dist/utils/tafForecast.js.map +1 -0
- package/dist/utils/validation.d.ts +15 -0
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +30 -0
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/zuluTime.d.ts +16 -0
- package/dist/utils/zuluTime.d.ts.map +1 -0
- package/dist/utils/zuluTime.js +45 -0
- package/dist/utils/zuluTime.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@dangahagan/weather-mcp)
|
|
4
4
|
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.dgahagan/weather-mcp)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](./docs/testing/TEST_SUITE_README.md)
|
|
7
7
|
[](https://nodejs.org)
|
|
8
8
|
|
|
9
|
-
**Give your AI assistant real weather data —
|
|
9
|
+
**Give your AI assistant real weather data — 18 tools, zero API keys, zero signup, zero cost.**
|
|
10
10
|
|
|
11
|
-
Weather MCP is a [Model Context Protocol](https://modelcontextprotocol.io) server that connects AI assistants (Claude, Cursor, Cline, Zed, and any other MCP client) to live weather data: forecasts, current conditions, alerts, air quality, marine conditions, lightning, radar, rivers, wildfires, and 85+ years of historical weather. It's built entirely on free public data sources — NOAA, Open-Meteo, MET Norway, USGS, NIFC, NASA FIRMS, RainViewer, and Blitzortung.org — so there is nothing to sign up for and no key to paste in. (A few optional keys unlock extras — see [Optional API keys](#optional-api-keys) — but no tool ever requires one.)
|
|
11
|
+
Weather MCP is a [Model Context Protocol](https://modelcontextprotocol.io) server that connects AI assistants (Claude, Cursor, Cline, Zed, and any other MCP client) to live weather data: forecasts, current conditions, alerts, air quality, marine conditions, lightning, radar, rivers, wildfires, aviation weather, and 85+ years of historical weather. It's built entirely on free public data sources — NOAA, the NOAA Aviation Weather Center, Open-Meteo, MET Norway, USGS, NIFC, NASA FIRMS, RainViewer, and Blitzortung.org — so there is nothing to sign up for and no key to paste in. (A few optional keys unlock extras — see [Optional API keys](#optional-api-keys) — but no tool ever requires one.)
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
claude mcp add weather -- npx -y @dangahagan/weather-mcp@latest
|
|
@@ -58,15 +58,15 @@ Choose this one if you want:
|
|
|
58
58
|
|
|
59
59
|
- **Genuinely free** — every data source is a free public API. No trial that expires, no credit card, no rate-limited "free tier" bait.
|
|
60
60
|
- **No API keys** — install to first forecast in under a minute. Nothing to configure, nothing to leak into a repo. ([Four optional keys](#optional-api-keys) add extras if you want them; the default configuration needs none.)
|
|
61
|
-
- **Fully open source** — MIT licensed, readable TypeScript,
|
|
61
|
+
- **Fully open source** — MIT licensed, readable TypeScript, 7,003 tests. Audit it, fork it, fix it.
|
|
62
62
|
- **Privacy-respecting** — your queries go directly from your machine to public weather APIs. No middleman server, and no telemetry unless you opt in.
|
|
63
|
-
- **Breadth** —
|
|
63
|
+
- **Breadth** — 18 tools covering weather, safety hazards (lightning, floods, wildfires), marine conditions, air quality, and historical data back to 1940. Most weather MCPs stop at forecasts.
|
|
64
64
|
|
|
65
65
|
The tradeoff is honest: US data (NOAA) is richer than international data (Open-Meteo), some tools are US-only, and free APIs come with fair-use rate limits. See [Coverage & Limitations](#coverage--limitations).
|
|
66
66
|
|
|
67
67
|
## Tools
|
|
68
68
|
|
|
69
|
-
All
|
|
69
|
+
All 18 tools, documented in detail in **[docs/TOOLS.md](./docs/TOOLS.md)**:
|
|
70
70
|
|
|
71
71
|
| Tool | What it does | Coverage |
|
|
72
72
|
|------|-------------|----------|
|
|
@@ -82,6 +82,7 @@ All 17 tools, documented in detail in **[docs/TOOLS.md](./docs/TOOLS.md)**:
|
|
|
82
82
|
| `get_lightning_activity` | Real-time strike detection with 4-level proximity safety assessment | 🌍 Global |
|
|
83
83
|
| `get_river_conditions` | US: NWPS gauge levels, flood stages, streamflow, rise/fall trends, forecast series. Great Britain: Environment Agency observed river levels against each gauge's published typical range. Elsewhere: GloFAS modeled discharge snapped to the nearest river channel, with ensemble forecast | 🌍 Global |
|
|
84
84
|
| `get_wildfire_info` | US: named incidents with containment, size, and safety guidance from the nearest *uncontained* fire. Elsewhere: NASA FIRMS satellite heat detections (VIIRS, near real-time), clustered with distance, bearing, and intensity | 🌍 Global |
|
|
85
|
+
| `get_aviation_weather` | For an airport (ICAO `station`, e.g. `KJFK`) or a point: SIGMETs and G-AIRMETs whose area contains the point, the TAF (the airport's own, or the nearest TAF airport's) raw and decoded, that airport's raw METAR, and pilot reports within 100 nm from the last 3 hours. Always aviation units and UTC; an empty or failed hazard feed is never shown as an all-clear. Not an official flight briefing | 🌍 Global (G-AIRMETs: contiguous US) |
|
|
85
86
|
| `check_service_status` | Checks that NOAA and Open-Meteo are reachable, lists the upstreams it does not check, plus cache statistics | — |
|
|
86
87
|
| `save_location` | Save places as aliases ("home", "cabin") with optional activity tags | — |
|
|
87
88
|
| `list_saved_locations` | List all saved locations | — |
|
|
@@ -99,6 +100,7 @@ All 17 tools, documented in detail in **[docs/TOOLS.md](./docs/TOOLS.md)**:
|
|
|
99
100
|
- **Smart source selection** — US queries use NOAA (detailed, includes forecaster narratives); everywhere else uses Open-Meteo. You never have to pick — and on a US *hourly* forecast the answer tells you which product you got and when NOAA last published it, so reaching for `source="openmeteo"` is a choice you can make rather than one made silently for you. If Open-Meteo is having an outage, a forecast outside the US is answered by MET Norway rather than failing, and says so.
|
|
100
101
|
- **International weather alerts** — `get_alerts` routes by country: NOAA in the US, Environment and Climate Change Canada alerts in Canada, the official national warnings of 38 European countries via EUMETNET MeteoAlarm, the national CAP feeds of India (NDMA SACHET), the Philippines (PAGASA) and Indonesia (BMKG), and the Japan Meteorological Agency's own disaster-prevention feed in Japan — shown unmodified, with the issuing service credited. Where a feed publishes geometry inline, warnings are matched to your exact point by the alert's own polygon rather than to the whole country (the Philippines and Indonesia today; Europe remains country-level). Japanese warnings are matched to your point by JMA warning area, with the Japanese name shown as published and an English gloss beside it. Border cities like Toronto get the right country's alerts, not the nearest bounding box's.
|
|
101
102
|
- **Real observations worldwide** — ask for what a station is *actually reporting* and `get_current_conditions` will read the nearest airport's METAR (`source="metar"`): a genuine instrument reading anywhere on earth, with the station, its distance, and the observation age always stated. Outside the US this is the difference between a measurement and a model estimate.
|
|
103
|
+
- **Aviation weather** — ask *"what's the TAF for JFK, and is anyone reporting turbulence?"* and `get_aviation_weather` answers for an airport or any point: SIGMETs and G-AIRMETs whose area contains it, the TAF in raw and decoded form, the airport's METAR, and nearby pilot reports, in knots, statute miles, feet and UTC whatever your unit setting. A hazard feed that failed or could not be checked says so; it is never shown as "none". In the `full` preset. Not an official flight briefing.
|
|
102
104
|
- **Model agreement** — ask *"how confident is this forecast?"* and `compare_models=true` compares five global models (GFS, ECMWF, ICON, GEM, UKMO) in one request, summarizing where they agree and where they split rather than dumping five forecasts. Spread across models is a proxy for uncertainty, not a guarantee — a tight spread can still be wrong, and the output says so.
|
|
103
105
|
- **Ensemble spread** — the sibling question: *"how confident is the model itself?"* `ensemble_spread=true` summarizes ECMWF ENS's 50 perturbed members — per-day High/Moderate/Low confidence, interquartile temperature bands, and how many members produce rain — instead of one deterministic forecast. Member fractions are raw model output, **not calibrated probabilities**: a confident ensemble can still be wrong, and the output says so. Mutually exclusive with `compare_models`; the two answer different questions.
|
|
104
106
|
- **Saved locations** — save "home", "work", or "cabin" once, then ask *"what's the weather at home?"* Locations persist in `~/.weather-mcp/locations.json` and can be tagged with activities ("boating", "skiing") so the AI highlights what matters to you.
|
|
@@ -121,6 +123,7 @@ All free, all public, no authentication required:
|
|
|
121
123
|
| [NOAA Weather API](https://www.weather.gov/documentation/services-web-api) | US forecasts, current conditions, alerts, fire weather | US |
|
|
122
124
|
| [Open-Meteo](https://open-meteo.com/) | Global forecasts, historical data (1940+), air quality, marine, geocoding, climate normals, fire-weather inputs | Global |
|
|
123
125
|
| [MET Norway](https://api.met.no/weatherapi/locationforecast/2.0/documentation) | Global forecasts, used only when Open-Meteo fails transiently outside the US (about a nine-day horizon, daily only) — CC BY 4.0 | Global |
|
|
126
|
+
| [NOAA Aviation Weather Center](https://aviationweather.gov/data/api/) | METAR airport observations, TAFs, SIGMETs, G-AIRMETs and pilot reports | Global (G-AIRMETs: contiguous US) |
|
|
124
127
|
| [NOAA NWPS](https://water.noaa.gov/) | River levels, streamflow, flood stages | US |
|
|
125
128
|
| [Environment Agency](https://environment.data.gov.uk/flood-monitoring/doc/reference) | Observed river levels from the real-time gauge network, with published typical ranges — Open Government Licence v3 | Great Britain |
|
|
126
129
|
| [RCC ACIS](https://www.rcc-acis.org/) | Daily record high/low temperatures | US |
|
|
@@ -229,16 +232,16 @@ Control which tools are exposed to reduce context overhead:
|
|
|
229
232
|
|--------|-------|
|
|
230
233
|
| `basic` (default) | weather_summary, forecast, current_conditions, alerts, search_location, check_service_status |
|
|
231
234
|
| `standard` | basic + historical_weather, air_quality, and saved-location tools |
|
|
232
|
-
| `full` | everything — standard + marine, imagery, lightning, rivers, wildfire (same as `all`) |
|
|
233
|
-
| `all` | all
|
|
235
|
+
| `full` | everything — standard + marine, imagery, lightning, rivers, wildfire, aviation (same as `all`) |
|
|
236
|
+
| `all` | all 18 tools |
|
|
234
237
|
|
|
235
238
|
**Context cost.** Every MCP client puts the `tools/list` result into model context on
|
|
236
239
|
every turn, so the preset you choose is a standing cost on every request. Measured on
|
|
237
240
|
the built server: `basic` **13,861 bytes** (~3.5k tokens), `standard` **22,682** (~5.7k),
|
|
238
|
-
`full`/`all` **
|
|
241
|
+
`full`/`all` **34,617** (~8.7k). It scales with the number of **tools**, not the number of
|
|
239
242
|
data sources — adding Japan and India as alert authorities added zero tools and zero bytes.
|
|
240
243
|
|
|
241
|
-
Each tool also carries a display title ("Weather Forecast") and MCP behaviour hints:
|
|
244
|
+
Each tool also carries a display title ("Weather Forecast") and MCP behaviour hints: 16 tools
|
|
242
245
|
are marked read-only, and the two that change saved locations are marked destructive. Clients
|
|
243
246
|
use these to label tools and to decide when to ask before a call.
|
|
244
247
|
|
|
@@ -296,7 +299,7 @@ For caching architecture details, see [.github/CACHING.md](./.github/CACHING.md)
|
|
|
296
299
|
|
|
297
300
|
## Optional API keys
|
|
298
301
|
|
|
299
|
-
**The default is the product.** Every one of the
|
|
302
|
+
**The default is the product.** Every one of the 18 tools works with zero keys,
|
|
300
303
|
zero signup, and zero cost — that is the configuration this project is built
|
|
301
304
|
around and the one most people should use. If that's you, you can skip this
|
|
302
305
|
section entirely.
|
|
@@ -356,7 +359,7 @@ That installs **121 packages instead of 163** — 42 fewer, `mqtt` and its trans
|
|
|
356
359
|
- `get_weather_summary` still works, but its optional `lightning` section renders as
|
|
357
360
|
`## lightning (unavailable)` with the same message. Every other section is unaffected.
|
|
358
361
|
|
|
359
|
-
Nothing else changes: all
|
|
362
|
+
Nothing else changes: all 17 remaining tools behave identically, and `get_lightning_activity` still
|
|
360
363
|
appears in `tools/list`.
|
|
361
364
|
|
|
362
365
|
To get lightning back, reinstall without the flag.
|
|
@@ -380,6 +383,7 @@ Being honest about what free public data can and can't do:
|
|
|
380
383
|
| River conditions | ✅ (GloFAS modeled discharge; Environment Agency gauge observations in Great Britain) | Gauge observations + official flood stages via NWPS |
|
|
381
384
|
| Wildfires | ✅ (FIRMS satellite detections) | Named incidents with acreage + containment via NIFC |
|
|
382
385
|
| Fire weather | ✅ (computed Fosberg index + dryness context) | NOAA-published Haines, grassland, red-flag indices |
|
|
386
|
+
| Aviation weather (TAF, METAR, SIGMETs, pilot reports) | ✅ (international SIGMETs as received by the Aviation Weather Center) | G-AIRMETs (contiguous US only) |
|
|
383
387
|
| Pollen | 🇪🇺 Europe keyless (CAMS, grains/m³); elsewhere needs an optional key | Universal Pollen Index with `GOOGLE_POLLEN_API_KEY` |
|
|
384
388
|
|
|
385
389
|
- **A US hourly forecast and a US daily forecast come from the same NOAA product, and that product is human-adjusted.** Its precipitation probability is a chance over the whole grid box, republished on the forecaster's cadence rather than a model run's, so at hourly resolution it can legitimately disagree with `source="openmeteo"`'s faster model view — neither is wrong. `source="auto"` picks NOAA on geography alone and now says so on every hourly response, with the `**Updated:**` header line showing when NOAA last published the grid. Daily forecasts are unaffected.
|
|
@@ -404,7 +408,7 @@ npm run build # Compile TypeScript
|
|
|
404
408
|
npm run dev # Run in development mode
|
|
405
409
|
npm test # Offline tests: unit + integration (what CI runs)
|
|
406
410
|
npm run test:live # Live-network tests against the real upstreams, by hand
|
|
407
|
-
npm test && npm run test:live # Run all
|
|
411
|
+
npm test && npm run test:live # Run all 7,003 tests
|
|
408
412
|
npm run test:coverage # Coverage report
|
|
409
413
|
npm run audit # Dependency vulnerability scan
|
|
410
414
|
```
|
|
@@ -429,7 +433,7 @@ To report a vulnerability, see [SECURITY.md](./SECURITY.md).
|
|
|
429
433
|
## Documentation
|
|
430
434
|
|
|
431
435
|
- **[Examples](./examples/)** — realistic sessions in cities around the world: prompt → assistant answer → verbatim server output
|
|
432
|
-
- **[Tool Reference](./docs/TOOLS.md)** — all
|
|
436
|
+
- **[Tool Reference](./docs/TOOLS.md)** — all 18 tools: parameters, examples, sample output
|
|
433
437
|
- **[Client Setup](./docs/CLIENT_SETUP.md)** — step-by-step for 8 MCP clients
|
|
434
438
|
- **[Remote Hosting](./docs/REMOTE_HOSTING.md)** — run `weather-mcp-http` behind your own OAuth authorization server
|
|
435
439
|
- **[Error Handling](./docs/ERROR_HANDLING.md)** — how failures are reported
|
|
@@ -447,4 +451,4 @@ Contributions are welcome — this is a single-maintainer project and issues, PR
|
|
|
447
451
|
|
|
448
452
|
---
|
|
449
453
|
|
|
450
|
-
*Weather data provided by NOAA, Open-Meteo, MET Norway, USGS, NIFC, RainViewer, and Blitzortung.org. This project is not affiliated with or endorsed by any of these providers. Do not rely on this server as your sole source for safety-critical decisions — always consult official warnings and forecasts.*
|
|
454
|
+
*Weather data provided by NOAA (including the Aviation Weather Center), Open-Meteo, MET Norway, USGS, NIFC, RainViewer, and Blitzortung.org. This project is not affiliated with or endorsed by any of these providers. Do not rely on this server as your sole source for safety-critical decisions — always consult official warnings and forecasts.*
|
package/dist/config/cache.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const CacheConfig: {
|
|
|
34
34
|
readonly records: number;
|
|
35
35
|
readonly recordsStation: number;
|
|
36
36
|
readonly metarObservations: number;
|
|
37
|
+
readonly aviationTaf: number;
|
|
38
|
+
readonly aviationStationInfo: number;
|
|
37
39
|
readonly basemapTiles: number;
|
|
38
40
|
readonly compositeImage: number;
|
|
39
41
|
readonly reverseCountry: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAgEH,eAAO,MAAM,WAAW;aAEtB,OAAO;aAIP,OAAO;aAIP,YAAY;aAOZ,0BAA0B;aAG1B,GAAG;iBAGD,eAAe;iBAIf,SAAS;iBAIT,QAAQ;iBAIR,QAAQ;iBAIR,iBAAiB;iBAIjB,MAAM;iBAIN,gBAAgB;iBAIhB,cAAc;iBAKd,OAAO;iBAIP,UAAU;iBAIV,MAAM;iBAIN,aAAa;iBAMb,cAAc;iBAOd,eAAe;iBAMf,eAAe;iBAMf,YAAY;iBAMZ,OAAO;iBAIP,cAAc;iBAMd,iBAAiB;
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAgEH,eAAO,MAAM,WAAW;aAEtB,OAAO;aAIP,OAAO;aAIP,YAAY;aAOZ,0BAA0B;aAG1B,GAAG;iBAGD,eAAe;iBAIf,SAAS;iBAIT,QAAQ;iBAIR,QAAQ;iBAIR,iBAAiB;iBAIjB,MAAM;iBAIN,gBAAgB;iBAIhB,cAAc;iBAKd,OAAO;iBAIP,UAAU;iBAIV,MAAM;iBAIN,aAAa;iBAMb,cAAc;iBAOd,eAAe;iBAMf,eAAe;iBAMf,YAAY;iBAMZ,OAAO;iBAIP,cAAc;iBAMd,iBAAiB;iBAOjB,WAAW;iBAMX,mBAAmB;iBAQnB,YAAY;iBAQZ,cAAc;iBAKd,cAAc;iBAId,cAAc;iBAKd,cAAc;iBAKd,iBAAiB;iBAKjB,qBAAqB;iBAOrB,WAAW;iBAgBX,QAAQ;iBAMR,gBAAgB;iBAYhB,eAAe;iBAef,aAAa;iBAQb,eAAe;;CAET,CAAC;AAIX;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CA2BpE"}
|
package/dist/config/cache.js
CHANGED
|
@@ -152,6 +152,17 @@ export const CacheConfig = {
|
|
|
152
152
|
// burst of calls into one fetch without ever serving a response across a
|
|
153
153
|
// reporting cycle.
|
|
154
154
|
metarObservations: 10 * MINUTE,
|
|
155
|
+
// Aviation TAFs (aviationweather.gov), by station and by bounding box.
|
|
156
|
+
// Routine TAFs are issued every six hours and amended at any time, so
|
|
157
|
+
// the entry is short: 10 minutes collapses a burst of calls without
|
|
158
|
+
// holding an amendment back for long. A "this station has no TAF"
|
|
159
|
+
// answer is cached for the same time.
|
|
160
|
+
aviationTaf: 10 * MINUTE,
|
|
161
|
+
// Aviation station metadata (aviationweather.gov stationinfo): name,
|
|
162
|
+
// coordinates and the products a station issues. It carries no reading,
|
|
163
|
+
// so a day freezes nothing that changes per refresh (G7). A station that
|
|
164
|
+
// is not found is never cached.
|
|
165
|
+
aviationStationInfo: 24 * HOUR,
|
|
155
166
|
// NASA GIBS basemap tiles (OSM_Land_Water_Map, Reference_Features_15m),
|
|
156
167
|
// cached individually by raw tile buffer. These are near-static
|
|
157
168
|
// reference layers — land/water boundaries and coastline/border outlines
|
package/dist/config/cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,iCAAiC;AACjC,MAAM,MAAM,GAAG,EAAE,GAAG,IAAI,CAAC;AACzB,MAAM,IAAI,GAAG,E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ACjD,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB;QAClC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC;AACrC,CAAC"}
|
package/dist/config/tools.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
|
|
|
17
17
|
/**
|
|
18
18
|
* Available tool names in the Weather MCP Server
|
|
19
19
|
*/
|
|
20
|
-
export declare const TOOL_NAMES: readonly ['get_forecast', 'get_current_conditions', 'get_alerts', 'get_historical_weather', 'get_weather_summary', 'check_service_status', 'search_location', 'get_air_quality', 'get_marine_conditions', 'get_weather_imagery', 'get_lightning_activity', 'get_river_conditions', 'get_wildfire_info', 'save_location', 'list_saved_locations', 'get_saved_location', 'remove_saved_location'];
|
|
20
|
+
export declare const TOOL_NAMES: readonly ['get_forecast', 'get_current_conditions', 'get_alerts', 'get_historical_weather', 'get_weather_summary', 'check_service_status', 'search_location', 'get_air_quality', 'get_marine_conditions', 'get_weather_imagery', 'get_lightning_activity', 'get_river_conditions', 'get_wildfire_info', 'get_aviation_weather', 'save_location', 'list_saved_locations', 'get_saved_location', 'remove_saved_location'];
|
|
21
21
|
export type ToolName = typeof TOOL_NAMES[number];
|
|
22
22
|
/**
|
|
23
23
|
* Per-tool display title and MCP behaviour annotations, spread into each entry of
|
|
@@ -50,7 +50,7 @@ declare class ToolConfig {
|
|
|
50
50
|
getEnabledTools(): ToolName[];
|
|
51
51
|
}
|
|
52
52
|
export declare const toolConfig: ToolConfig;
|
|
53
|
-
export declare const PRESETS: Record<string, ("check_service_status" | "get_air_quality" | "get_alerts" | "get_current_conditions" | "get_forecast" | "get_historical_weather" | "get_lightning_activity" | "get_marine_conditions" | "get_river_conditions" | "get_saved_location" | "get_weather_imagery" | "get_weather_summary" | "get_wildfire_info" | "list_saved_locations" | "remove_saved_location" | "save_location" | "search_location")[]>;
|
|
53
|
+
export declare const PRESETS: Record<string, ("check_service_status" | "get_air_quality" | "get_alerts" | "get_aviation_weather" | "get_current_conditions" | "get_forecast" | "get_historical_weather" | "get_lightning_activity" | "get_marine_conditions" | "get_river_conditions" | "get_saved_location" | "get_weather_imagery" | "get_weather_summary" | "get_wildfire_info" | "list_saved_locations" | "remove_saved_location" | "save_location" | "search_location")[]>;
|
|
54
54
|
/**
|
|
55
55
|
* Ceiling on the JSON size of the `tools/list` result, per preset, in bytes.
|
|
56
56
|
* Every MCP client puts this payload into model context on every turn, so it is
|
|
@@ -60,7 +60,10 @@ export declare const PRESETS: Record<string, ("check_service_status" | "get_air_
|
|
|
60
60
|
* (Buffer.byteLength, not String.length — the descriptions carry em-dashes, and
|
|
61
61
|
* a code-unit count under-reports): basic 13,861, full 32,970. `full` raised from
|
|
62
62
|
* 32,000 on purpose, for the per-tool `title` and `annotations` (TOOL_METADATA,
|
|
63
|
-
* plan-tool-annotations); `basic` stayed inside 14,000.
|
|
63
|
+
* plan-tool-annotations); `basic` stayed inside 14,000. Re-measured 2026-11-28 on the
|
|
64
|
+
* built dist: `full` 34,617 with get_aviation_weather (plan-aviation-weather-tool), so
|
|
65
|
+
* raised from 33,000 to 35,000 on purpose; `basic` 13,861 and `standard` 22,682 unchanged,
|
|
66
|
+
* because neither preset carries the tool.
|
|
64
67
|
*/
|
|
65
68
|
export declare const TOOLS_LIST_BYTE_BUDGET: Record<'basic' | 'full', number>;
|
|
66
69
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/config/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;GAEG;AAKH,eAAO,MAAM,UAAU,YACrB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,E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B,CAAC;AAG3C,eAAO,MAAM,OAAO,mbAAe,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAGnE,CAAC"}
|
package/dist/config/tools.js
CHANGED
|
@@ -34,6 +34,7 @@ export const TOOL_NAMES = [
|
|
|
34
34
|
'get_lightning_activity',
|
|
35
35
|
'get_river_conditions',
|
|
36
36
|
'get_wildfire_info',
|
|
37
|
+
'get_aviation_weather',
|
|
37
38
|
'save_location',
|
|
38
39
|
'list_saved_locations',
|
|
39
40
|
'get_saved_location',
|
|
@@ -64,6 +65,7 @@ export const TOOL_METADATA = {
|
|
|
64
65
|
get_lightning_activity: { title: 'Lightning Activity', annotations: { readOnlyHint: true, openWorldHint: true } },
|
|
65
66
|
get_river_conditions: { title: 'River Conditions', annotations: { readOnlyHint: true, openWorldHint: true } },
|
|
66
67
|
get_wildfire_info: { title: 'Wildfire Info', annotations: { readOnlyHint: true, openWorldHint: true } },
|
|
68
|
+
get_aviation_weather: { title: 'Aviation Weather', annotations: { readOnlyHint: true, openWorldHint: true } },
|
|
67
69
|
// Overwrites an existing alias and clears a field on an explicit "", so not additive-only;
|
|
68
70
|
// geocodes location_query against external services; a repeat call rewrites updated_at.
|
|
69
71
|
save_location: {
|
|
@@ -122,6 +124,7 @@ const TOOL_PRESETS = {
|
|
|
122
124
|
'get_lightning_activity',
|
|
123
125
|
'get_river_conditions',
|
|
124
126
|
'get_wildfire_info',
|
|
127
|
+
'get_aviation_weather',
|
|
125
128
|
'search_location',
|
|
126
129
|
'check_service_status',
|
|
127
130
|
'save_location',
|
|
@@ -144,6 +147,7 @@ const TOOL_PRESETS = {
|
|
|
144
147
|
'get_lightning_activity',
|
|
145
148
|
'get_river_conditions',
|
|
146
149
|
'get_wildfire_info',
|
|
150
|
+
'get_aviation_weather',
|
|
147
151
|
'save_location',
|
|
148
152
|
'list_saved_locations',
|
|
149
153
|
'get_saved_location',
|
|
@@ -186,7 +190,8 @@ const TOOL_ALIASES = {
|
|
|
186
190
|
'wildfires': 'get_wildfire_info',
|
|
187
191
|
'fire': 'get_wildfire_info',
|
|
188
192
|
'fires': 'get_wildfire_info',
|
|
189
|
-
'smoke': 'get_wildfire_info'
|
|
193
|
+
'smoke': 'get_wildfire_info',
|
|
194
|
+
'aviation': 'get_aviation_weather'
|
|
190
195
|
};
|
|
191
196
|
/**
|
|
192
197
|
* Parse the ENABLED_TOOLS environment variable
|
|
@@ -322,10 +327,13 @@ export const PRESETS = TOOL_PRESETS;
|
|
|
322
327
|
* (Buffer.byteLength, not String.length — the descriptions carry em-dashes, and
|
|
323
328
|
* a code-unit count under-reports): basic 13,861, full 32,970. `full` raised from
|
|
324
329
|
* 32,000 on purpose, for the per-tool `title` and `annotations` (TOOL_METADATA,
|
|
325
|
-
* plan-tool-annotations); `basic` stayed inside 14,000.
|
|
330
|
+
* plan-tool-annotations); `basic` stayed inside 14,000. Re-measured 2026-11-28 on the
|
|
331
|
+
* built dist: `full` 34,617 with get_aviation_weather (plan-aviation-weather-tool), so
|
|
332
|
+
* raised from 33,000 to 35,000 on purpose; `basic` 13,861 and `standard` 22,682 unchanged,
|
|
333
|
+
* because neither preset carries the tool.
|
|
326
334
|
*/
|
|
327
335
|
export const TOOLS_LIST_BYTE_BUDGET = {
|
|
328
336
|
basic: 14000,
|
|
329
|
-
full:
|
|
337
|
+
full: 35000,
|
|
330
338
|
};
|
|
331
339
|
//# sourceMappingURL=tools.js.map
|
package/dist/config/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/config/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;GAEG;AACH,6EAA6E;AAC7E,2FAA2F;AAC3F,4EAA4E;AAC5E,4CAA4C;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc;IACd,wBAAwB;IACxB,Y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AAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,IAAc;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;CACF;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAE3C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAqC;IACtE,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,KAAK;CACZ,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handler for get_aviation_weather — hazards at the point (SIGMETs, G-AIRMETs), the TAF, the TAF
|
|
3
|
+
* airport's METAR and nearby pilot reports, in that order.
|
|
4
|
+
*
|
|
5
|
+
* The reference point is an ICAO `station` (resolved through the AWC's station info) or a
|
|
6
|
+
* location (coordinates, a saved `location_name`, or a geocoded `city_name`), never both. Every
|
|
7
|
+
* source is then fetched at once.
|
|
8
|
+
*
|
|
9
|
+
* The TAF, SIGMET and G-AIRMET feeds are contract sources (plan GD4): a failed request renders a
|
|
10
|
+
* "could not be retrieved" line and is never read as "none" (G115). A feed that is empty, over its
|
|
11
|
+
* cap, stale, changing cycles, or holding advisories that cannot be tested never renders the
|
|
12
|
+
* categorical "No ... contains this point" sentence. The METAR and the PIREPs are garnish: one
|
|
13
|
+
* note on failure. `isError` is set only when TAF, SIGMET, G-AIRMET and PIREPs all failed.
|
|
14
|
+
*
|
|
15
|
+
* Every time is Zulu (`formatZulu`, `getUTC*` only, G162) and every quantity is in aviation
|
|
16
|
+
* units whatever the server's unit setting: this handler never reads the unit preferences.
|
|
17
|
+
* Upstream raw text renders verbatim inside a fence from `fenceRawText` (GD8), never through
|
|
18
|
+
* `escapeMarkdown` (G116).
|
|
19
|
+
*/
|
|
20
|
+
import type { AviationWeatherService } from '../services/aviationWeather.js';
|
|
21
|
+
import type { LocationStore } from '../services/locationStore.js';
|
|
22
|
+
import type { GeocodingService } from '../services/geocoding.js';
|
|
23
|
+
import type { AwcStationInfo, GAirmetAdvisory, MetarObservation, PilotReport, SigmetAdvisory, TafForecast } from '../types/aviationWeather.js';
|
|
24
|
+
import { resolveLocationAsync } from '../utils/locationResolver.js';
|
|
25
|
+
import { type TafPick } from '../utils/tafForecast.js';
|
|
26
|
+
export interface AviationHandlerResult {
|
|
27
|
+
content: Array<{
|
|
28
|
+
type: string;
|
|
29
|
+
text: string;
|
|
30
|
+
}>;
|
|
31
|
+
isError?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** The fixed not-a-briefing line (pinned whole by the tests). */
|
|
34
|
+
export declare const AVIATION_BRIEFING_DISCLAIMER = "*This is not an official flight briefing. For flight planning, get a briefing from an official source: Flight Service (1-800-WX-BRIEF, 1800wxbrief.com) in the United States, or your national aeronautical briefing service.*";
|
|
35
|
+
/** The fixed data-source line. */
|
|
36
|
+
export declare const AVIATION_SOURCE_LINE = "*Data source: NOAA Aviation Weather Center (aviationweather.gov)*";
|
|
37
|
+
/** The fixed units line. */
|
|
38
|
+
export declare const AVIATION_UNITS_LINE = "*Times are UTC (Z). Wind is in knots, visibility in statute miles and heights in feet, whatever this server's unit setting.*";
|
|
39
|
+
/** The fixed none-near sentence: a statement about distance, not weather. */
|
|
40
|
+
export declare const NO_TAF_NEAR_SENTENCE: string;
|
|
41
|
+
/**
|
|
42
|
+
* Upstream raw text inside a fenced code block, verbatim (GD8, review R6).
|
|
43
|
+
*
|
|
44
|
+
* The fence is `max(3, longest backtick run + 1)` backticks, so no run inside the text can close
|
|
45
|
+
* it and a text with no backtick still gets a real three-backtick fence rather than an inline
|
|
46
|
+
* span. Nothing inside is escaped or trimmed: CommonMark does not process escapes in code (G116).
|
|
47
|
+
*/
|
|
48
|
+
export declare function fenceRawText(text: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* An upstream single-line field (a site name, FIR, qualifier, series, aircraft type, weather
|
|
51
|
+
* string) with every whitespace run, newlines included, collapsed to one space; `undefined` when
|
|
52
|
+
* it is not a string or is blank. It renders outside a fence, where a newline could start a
|
|
53
|
+
* heading of its own (review claude-MINOR-3).
|
|
54
|
+
*/
|
|
55
|
+
export declare function singleLineText(value: unknown): string | undefined;
|
|
56
|
+
/** Kilometres as whole nautical miles, e.g. `64 nm`. */
|
|
57
|
+
export declare function formatNauticalMiles(km: number): string;
|
|
58
|
+
/** The flight level of a height, from 18,000 ft (GD9): `FL240`; `undefined` below that. */
|
|
59
|
+
export declare function flightLevelOf(ft: number): string | undefined;
|
|
60
|
+
/** Feet with a thousands separator: `3,500 ft`. */
|
|
61
|
+
export declare function formatFeet(ft: number): string;
|
|
62
|
+
/** Feet with the flight level beside it from 18,000 ft: `3,500 ft`, `24,000 ft (FL240)`. */
|
|
63
|
+
export declare function formatHeightFt(ft: number): string;
|
|
64
|
+
/** The footer every reply ends with. */
|
|
65
|
+
export declare function renderAviationFooter(): string;
|
|
66
|
+
/** The point every distance is measured from. */
|
|
67
|
+
export interface AviationReference {
|
|
68
|
+
latitude: number;
|
|
69
|
+
longitude: number;
|
|
70
|
+
/** The asked ICAO station, upper-cased; absent for a location request. */
|
|
71
|
+
station?: string;
|
|
72
|
+
/** The station's AWC record, when `station` is set. */
|
|
73
|
+
stationInfo?: AwcStationInfo;
|
|
74
|
+
/** Set for a location request, for `prependLocationLine`. */
|
|
75
|
+
resolved?: Awaited<ReturnType<typeof resolveLocationAsync>>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Validate the station, refuse a station beside a location, and resolve the reference point.
|
|
79
|
+
* The conflict is decided before any request or geocode.
|
|
80
|
+
*/
|
|
81
|
+
export declare function resolveAviationReference(args: unknown, aviationWeatherService: AviationWeatherService, locationStore: LocationStore, geocodingService: GeocodingService): Promise<AviationReference>;
|
|
82
|
+
/**
|
|
83
|
+
* What the TAF chain found:
|
|
84
|
+
* - `own`: the asked station's TAF;
|
|
85
|
+
* - `nearest`: the nearest TAF airport, because a point was asked or the station has none;
|
|
86
|
+
* - `none`: no TAF airport within `FAR_MAX_KM`;
|
|
87
|
+
* - `failed`: a request failed. Never read as `none` (G115).
|
|
88
|
+
*/
|
|
89
|
+
export type TafOutcome = {
|
|
90
|
+
kind: 'own';
|
|
91
|
+
taf: TafForecast;
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'nearest';
|
|
94
|
+
pick: TafPick;
|
|
95
|
+
} | {
|
|
96
|
+
kind: 'none';
|
|
97
|
+
} | {
|
|
98
|
+
kind: 'failed';
|
|
99
|
+
error: unknown;
|
|
100
|
+
};
|
|
101
|
+
/** Run the TAF chain for a reference point. Never throws: a failure is the `failed` outcome. */
|
|
102
|
+
export declare function runTafChain(aviationWeatherService: AviationWeatherService, reference: AviationReference, now: Date): Promise<TafOutcome>;
|
|
103
|
+
/** The ICAO of the chosen TAF airport, when one was chosen. */
|
|
104
|
+
export declare function tafAirport(outcome: TafOutcome): string | undefined;
|
|
105
|
+
/** The `## TAF` section for an outcome. */
|
|
106
|
+
export declare function renderTafSection(outcome: TafOutcome, reference: AviationReference): string;
|
|
107
|
+
export type MetarOutcome = {
|
|
108
|
+
kind: 'found';
|
|
109
|
+
icao: string;
|
|
110
|
+
metar: MetarObservation;
|
|
111
|
+
} | {
|
|
112
|
+
kind: 'none';
|
|
113
|
+
icao: string;
|
|
114
|
+
} | {
|
|
115
|
+
kind: 'failed';
|
|
116
|
+
icao: string;
|
|
117
|
+
};
|
|
118
|
+
/** The TAF airport's latest METAR. Garnish: never throws; a failure is one note. */
|
|
119
|
+
export declare function fetchStationMetar(aviationWeatherService: AviationWeatherService, icao: string): Promise<MetarOutcome>;
|
|
120
|
+
/** The `## Latest METAR` section. */
|
|
121
|
+
export declare function renderMetarSection(outcome: MetarOutcome): string;
|
|
122
|
+
/** The most untestable advisories named one per line; the rest are counted (review codex-R1). */
|
|
123
|
+
export declare const MAX_UNTESTABLE_LINES = 10;
|
|
124
|
+
/** The closing sentence under a list of advisories that could not be tested (pinned whole). */
|
|
125
|
+
export declare const UNTESTABLE_CLOSING_SENTENCE = "These could not be tested against this point. This is not an all-clear for them.";
|
|
126
|
+
/** GD5: true for any point, so it is safe beside every empty G-AIRMET result. */
|
|
127
|
+
export declare const GAIRMET_DOMAIN_SENTENCE = "G-AIRMETs cover the contiguous United States and its coastal waters only.";
|
|
128
|
+
/** GD5: only for a point outside `GAIRMET_DOMAIN_BOX`, a superset, so "outside" is certain (G53). */
|
|
129
|
+
export declare const GAIRMET_OUTSIDE_SENTENCE = "G-AIRMETs cover the contiguous United States and its coastal waters only. This point is outside that area, so this tool has no AIRMET information for it. This is not an all-clear. This tool reads no AIRMET product for Alaska, Hawaii or any other region.";
|
|
130
|
+
/**
|
|
131
|
+
* GD5, review claude-MAJOR-1: follows the none-line for a point inside `GAIRMET_DOMAIN_BOX`. The
|
|
132
|
+
* box is a superset, so an in-box point may still be outside the area (Juneau, San Juan, Mexico
|
|
133
|
+
* City); the none is conditional on coverage, never categorical.
|
|
134
|
+
*/
|
|
135
|
+
export declare const GAIRMET_IN_BOX_NONE_CAVEAT = "If this point is outside that area, this tool has no AIRMET information for it; that is not an all-clear.";
|
|
136
|
+
/** GD2 rule 0 (review R2). */
|
|
137
|
+
export declare const GAIRMET_CYCLE_CHANGE_SENTENCE = "The G-AIRMET feed is changing forecast cycles and its current snapshot is incomplete. Areas not listed here may still apply. This is not an all-clear; ask again in a few minutes.";
|
|
138
|
+
/** GD2 rule 5, review claude-MINOR-5: an empty pull beside non-empty ones. */
|
|
139
|
+
export declare const GAIRMET_EMPTY_PULL_SENTENCE = "One of the three G-AIRMET forecast pulls returned no advisories while the others did, so the current snapshot may be incomplete. Areas not listed here may still apply. This is not an all-clear; ask again in a few minutes.";
|
|
140
|
+
/** GD2 rule 5, review claude-MAJOR-4: an item with no numeric forecast hour hides its cycle. */
|
|
141
|
+
export declare const GAIRMET_NO_FORECAST_HOUR_SENTENCE = "Some G-AIRMET advisories carry no forecast hour, so this tool cannot confirm that the feed is not changing forecast cycles. Areas not listed here may still apply. This is not an all-clear.";
|
|
142
|
+
export declare const SIGMET_SOURCE_SENTENCE = "The feed holds international SIGMETs as received by the US Aviation Weather Center, and not every flight information region sends them.";
|
|
143
|
+
export declare const SIGMET_NO_CURRENT_SENTENCE = "The SIGMET feed returned no currently valid advisories. Treat this as unconfirmed, not as an all-clear.";
|
|
144
|
+
export declare const SIGMET_EMPTY_FEED_SENTENCE = "The SIGMET feed returned no advisories at all. Treat this as unconfirmed, not as an all-clear.";
|
|
145
|
+
export declare const SIGMET_OVERFLOW_SENTENCE = "The SIGMET feed returned more advisories than this server evaluates. None were evaluated. This is not an all-clear.";
|
|
146
|
+
export declare const GAIRMET_EMPTY_FEED_SENTENCE = "The G-AIRMET feed returned no advisories at all. Treat this as unconfirmed, not as an all-clear.";
|
|
147
|
+
export declare const GAIRMET_OVERFLOW_SENTENCE = "The G-AIRMET feed returned more advisories than this server evaluates. None were evaluated. This is not an all-clear.";
|
|
148
|
+
/** A feed pull: its rows, or the error it failed with. */
|
|
149
|
+
export type FeedOutcome<T> = {
|
|
150
|
+
kind: 'ok';
|
|
151
|
+
rows: T[];
|
|
152
|
+
} | {
|
|
153
|
+
kind: 'failed';
|
|
154
|
+
error: unknown;
|
|
155
|
+
};
|
|
156
|
+
/** The SIGMET part's body (contract): never a categorical "none" from a failed or untestable feed. */
|
|
157
|
+
export declare function renderSigmetPart(outcome: FeedOutcome<SigmetAdvisory>, latitude: number, longitude: number, now: Date): string;
|
|
158
|
+
/** The G-AIRMET part's body (contract). Any one of the three pulls failing fails the part. */
|
|
159
|
+
export declare function renderGAirmetPart(pulls: ReadonlyArray<FeedOutcome<GAirmetAdvisory>>, latitude: number, longitude: number, now: Date): string;
|
|
160
|
+
/** The `## Hazards at this point` section: SIGMETs, then G-AIRMETs. */
|
|
161
|
+
export declare function renderHazardsSection(sigmets: FeedOutcome<SigmetAdvisory>, gairmets: ReadonlyArray<FeedOutcome<GAirmetAdvisory>>, reference: AviationReference, now: Date): string;
|
|
162
|
+
export declare const PIREP_FAILURE_LINE = "Pilot reports could not be retrieved.";
|
|
163
|
+
export declare const PIREP_NONE_SENTENCE: string;
|
|
164
|
+
export declare const PIREP_CEILING_SENTENCE = "The pilot report feed returned its maximum of 400 reports for this area, so older reports may be missing.";
|
|
165
|
+
export type PirepOutcome = {
|
|
166
|
+
kind: 'ok';
|
|
167
|
+
rows: PilotReport[];
|
|
168
|
+
atCeiling: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
kind: 'failed';
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Pilot reports around the point: every slice of `pirepSearchBox` (two near +-180, codex-R2c),
|
|
174
|
+
* merged before selection. A failure of any slice is a failure of the part. The upstream ceiling
|
|
175
|
+
* is per request, so it is read per slice, not from the merged count.
|
|
176
|
+
*/
|
|
177
|
+
export declare function fetchPireps(aviationWeatherService: AviationWeatherService, latitude: number, longitude: number): Promise<PirepOutcome>;
|
|
178
|
+
/** The `## Pilot reports (PIREPs)` section. Garnish: a failure is one line. */
|
|
179
|
+
export declare function renderPirepSection(outcome: PirepOutcome, reference: AviationReference, now: Date): string;
|
|
180
|
+
/** `# Aviation Weather — <site> (<ICAO>)` for a station, `# Aviation Weather` otherwise. */
|
|
181
|
+
export declare function renderAviationHeader(reference: AviationReference): string;
|
|
182
|
+
export declare function handleGetAviationWeather(args: unknown, aviationWeatherService: AviationWeatherService, locationStore: LocationStore, geocodingService: GeocodingService, now?: () => Date): Promise<AviationHandlerResult>;
|
|
183
|
+
//# sourceMappingURL=aviationWeatherHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aviationWeatherHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/aviationWeatherHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAW,EACZ,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAA2C,MAAM,8BAA8B,CAAC;AAG7G,OAAO,EAML,KAAK,OAAO,EACb,MAAM,yBAAyB,CAAC;AAyBjC,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAQD,iEAAiE;AACjE,eAAO,MAAM,4BAA4B,mOACyL,CAAC;AAEnO,kCAAkC;AAClC,eAAO,MAAM,oBAAoB,sEAAsE,CAAC;AAExG,4BAA4B;AAC5B,eAAO,MAAM,mBAAmB,iIACiG,CAAC;AAElI,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,QAAwK,CAAC;AAW1M;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAUjD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMjE;AAED,wDAAwD;AACxD,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM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