@dangahagan/weather-mcp 1.36.8 → 1.36.9
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 +3 -3
- package/dist/utils/timezone.d.ts +3 -3
- package/dist/utils/timezone.js +3 -3
- package/dist/utils/timezoneOverrides.d.ts +12 -2
- package/dist/utils/timezoneOverrides.d.ts.map +1 -1
- package/dist/utils/timezoneOverrides.js +13 -2
- package/dist/utils/timezoneOverrides.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
9
|
**Give your AI assistant real weather data — 17 tools, zero API keys, zero signup, zero cost.**
|
|
@@ -58,7 +58,7 @@ 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, 6,
|
|
61
|
+
- **Fully open source** — MIT licensed, readable TypeScript, 6,351 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
63
|
- **Breadth** — 17 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
|
|
|
@@ -400,7 +400,7 @@ npm run build # Compile TypeScript
|
|
|
400
400
|
npm run dev # Run in development mode
|
|
401
401
|
npm test # Offline tests: unit + integration (what CI runs)
|
|
402
402
|
npm run test:live # Live-network tests against the real upstreams, by hand
|
|
403
|
-
npm test && npm run test:live # Run all 6,
|
|
403
|
+
npm test && npm run test:live # Run all 6,351 tests
|
|
404
404
|
npm run test:coverage # Coverage report
|
|
405
405
|
npm run audit # Dependency vulnerability scan
|
|
406
406
|
```
|
package/dist/utils/timezone.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ export declare function getTimezoneAbbreviation(timezone: string, datetime?: Dat
|
|
|
39
39
|
* back to a coarse US longitude heuristic and finally UTC if the lookup fails
|
|
40
40
|
* (e.g. invalid coordinates).
|
|
41
41
|
*
|
|
42
|
-
* A handful of
|
|
43
|
-
* Samoa, Tokelau, St Lawrence Island)
|
|
44
|
-
* `./timezoneOverrides.ts`.
|
|
42
|
+
* A handful of areas where `tz-lookup` is wrong — a calendar day at the date line
|
|
43
|
+
* (American Samoa, Tokelau, St Lawrence Island), an hour at Umnak (Adak/Nome line) —
|
|
44
|
+
* are answered first by the override boxes in `./timezoneOverrides.ts`.
|
|
45
45
|
*
|
|
46
46
|
* @param latitude - Latitude
|
|
47
47
|
* @param longitude - Longitude
|
package/dist/utils/timezone.js
CHANGED
|
@@ -114,9 +114,9 @@ export function getTimezoneAbbreviation(timezone, datetime) {
|
|
|
114
114
|
* back to a coarse US longitude heuristic and finally UTC if the lookup fails
|
|
115
115
|
* (e.g. invalid coordinates).
|
|
116
116
|
*
|
|
117
|
-
* A handful of
|
|
118
|
-
* Samoa, Tokelau, St Lawrence Island)
|
|
119
|
-
* `./timezoneOverrides.ts`.
|
|
117
|
+
* A handful of areas where `tz-lookup` is wrong — a calendar day at the date line
|
|
118
|
+
* (American Samoa, Tokelau, St Lawrence Island), an hour at Umnak (Adak/Nome line) —
|
|
119
|
+
* are answered first by the override boxes in `./timezoneOverrides.ts`.
|
|
120
120
|
*
|
|
121
121
|
* @param latitude - Latitude
|
|
122
122
|
* @param longitude - Longitude
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong
|
|
2
|
+
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong, and
|
|
3
|
+
* for one place where it is an hour wrong: the Adak/Nome line at Umnak, which
|
|
4
|
+
* `tz-lookup` draws on a meridian near −168.75 while the real line runs diagonally
|
|
5
|
+
* through Samalga Pass, so Nikolski reads `America/Adak` instead of `America/Nome`.
|
|
3
6
|
*
|
|
4
7
|
* `tz-lookup` 6.1.25 (pinned in `package.json`) stores coarse polygons, and at the
|
|
5
8
|
* date line coarse is not an hour off but a whole day: Tutuila resolves to
|
|
@@ -14,7 +17,8 @@
|
|
|
14
17
|
* were measured on 2026-11-27 against `geo-tz` 8.1.10 (full-resolution
|
|
15
18
|
* timezone-boundary-builder polygons) at 0.01°: every non-`Etc/` zone `geo-tz`
|
|
16
19
|
* reports inside a box is that box's zone, and the neighbours that must stay out
|
|
17
|
-
* (Apia, Upolu's east tip, Big Diomede, Swains
|
|
20
|
+
* (Apia, Upolu's east tip, Big Diomede, Swains, Atka and the Hawaii–Aleutian side of
|
|
21
|
+
* Samalga Pass) do. Re-measure before editing an
|
|
18
22
|
* edge — see the GOTCHAS entry for the sweep method.
|
|
19
23
|
*
|
|
20
24
|
* **They are owned by the zone question.** Never derive them from, or merge them
|
|
@@ -27,6 +31,12 @@
|
|
|
27
31
|
* −168.978 between the two Diomedes; `geo-tz` reads `Asia/Anadyr` at −168.980 and
|
|
28
32
|
* `America/Nome` at −168.975 across the whole box latitude.
|
|
29
33
|
*
|
|
34
|
+
* **Why the Umnak west edge is −169.34.** It is 0.01° east of the furthest-east
|
|
35
|
+
* `America/Adak` point `geo-tz` holds in the area (−169.35), so no Adak point is inside
|
|
36
|
+
* the box. The cost is an open-water wedge in Samalga Pass (lat 52.57–53.08, lon
|
|
37
|
+
* −169.49 to −169.34; 462 points at 0.01°) that keeps `tz-lookup`'s Adak answer. A
|
|
38
|
+
* west edge at −169.5 would put 504 Adak points inside the box.
|
|
39
|
+
*
|
|
30
40
|
* Open sea inside a box gets the box's zone rather than a nautical `Etc/GMT±n`
|
|
31
41
|
* zone, deliberately — a caller asking about the water off Tutuila wants Samoa
|
|
32
42
|
* local time, which is also what Open-Meteo answers there.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezoneOverrides.d.ts","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"timezoneOverrides.d.ts","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAaD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,mBAAmB,EAOhE,CAAC;AAEH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO3F"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong
|
|
2
|
+
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong, and
|
|
3
|
+
* for one place where it is an hour wrong: the Adak/Nome line at Umnak, which
|
|
4
|
+
* `tz-lookup` draws on a meridian near −168.75 while the real line runs diagonally
|
|
5
|
+
* through Samalga Pass, so Nikolski reads `America/Adak` instead of `America/Nome`.
|
|
3
6
|
*
|
|
4
7
|
* `tz-lookup` 6.1.25 (pinned in `package.json`) stores coarse polygons, and at the
|
|
5
8
|
* date line coarse is not an hour off but a whole day: Tutuila resolves to
|
|
@@ -14,7 +17,8 @@
|
|
|
14
17
|
* were measured on 2026-11-27 against `geo-tz` 8.1.10 (full-resolution
|
|
15
18
|
* timezone-boundary-builder polygons) at 0.01°: every non-`Etc/` zone `geo-tz`
|
|
16
19
|
* reports inside a box is that box's zone, and the neighbours that must stay out
|
|
17
|
-
* (Apia, Upolu's east tip, Big Diomede, Swains
|
|
20
|
+
* (Apia, Upolu's east tip, Big Diomede, Swains, Atka and the Hawaii–Aleutian side of
|
|
21
|
+
* Samalga Pass) do. Re-measure before editing an
|
|
18
22
|
* edge — see the GOTCHAS entry for the sweep method.
|
|
19
23
|
*
|
|
20
24
|
* **They are owned by the zone question.** Never derive them from, or merge them
|
|
@@ -27,6 +31,12 @@
|
|
|
27
31
|
* −168.978 between the two Diomedes; `geo-tz` reads `Asia/Anadyr` at −168.980 and
|
|
28
32
|
* `America/Nome` at −168.975 across the whole box latitude.
|
|
29
33
|
*
|
|
34
|
+
* **Why the Umnak west edge is −169.34.** It is 0.01° east of the furthest-east
|
|
35
|
+
* `America/Adak` point `geo-tz` holds in the area (−169.35), so no Adak point is inside
|
|
36
|
+
* the box. The cost is an open-water wedge in Samalga Pass (lat 52.57–53.08, lon
|
|
37
|
+
* −169.49 to −169.34; 462 points at 0.01°) that keeps `tz-lookup`'s Adak answer. A
|
|
38
|
+
* west edge at −169.5 would put 504 Adak points inside the box.
|
|
39
|
+
*
|
|
30
40
|
* Open sea inside a box gets the box's zone rather than a nautical `Etc/GMT±n`
|
|
31
41
|
* zone, deliberately — a caller asking about the water off Tutuila wants Samoa
|
|
32
42
|
* local time, which is also what Open-Meteo answers there.
|
|
@@ -50,6 +60,7 @@ export const TIMEZONE_OVERRIDE_BOXES = Object.freeze([
|
|
|
50
60
|
box('St Lawrence Island', 62.8, 64.0, -172.25, -168.4, 'America/Nome'),
|
|
51
61
|
box('Little Diomede and US waters north of it', 65.6, 66.0, -168.975, -168.7, 'America/Nome'),
|
|
52
62
|
box('Russian waters south of Big Diomede', 65.36, 65.64, -170.65, -168.98, 'Asia/Anadyr'),
|
|
63
|
+
box('Umnak, Samalga and Nikolski (Alaska time east of Samalga Pass)', 52.5, 53.5, -169.34, -168.7, 'America/Nome'),
|
|
53
64
|
]);
|
|
54
65
|
/**
|
|
55
66
|
* The override zone for a coordinate, or `undefined` when no box contains it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezoneOverrides.js","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"timezoneOverrides.js","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAaH,SAAS,GAAG,CACV,KAAa,EACb,MAAc,EACd,MAAc,EACd,MAAc,EACd,MAAc,EACd,IAAY;IAEZ,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAmC,MAAM,CAAC,MAAM,CAAC;IACnF,GAAG,CAAC,sDAAsD,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC;IAC9G,GAAG,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC7D,GAAG,CAAC,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IACtE,GAAG,CAAC,0CAA0C,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;IAC7F,GAAG,CAAC,qCAAqC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;IACzF,GAAG,CAAC,gEAAgE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC;CACnH,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,SAAiB;IACrE,KAAK,MAAM,CAAC,IAAI,uBAAuB,EAAE,CAAC;QACxC,IAAI,QAAQ,IAAI,CAAC,CAAC,MAAM,IAAI,QAAQ,IAAI,CAAC,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;YACnG,OAAO,CAAC,CAAC,IAAI,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dangahagan/weather-mcp",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.9",
|
|
4
4
|
"description": "MCP server giving AI assistants 17 weather tools with zero API keys: global forecasts, current conditions, alerts, air quality, marine conditions, lightning detection, radar imagery, river levels, wildfire tracking, and historical weather back to 1940. Built entirely on free public data sources (NOAA, Open-Meteo, USGS, NIFC).",
|
|
5
5
|
"mcpName": "io.github.dgahagan/weather-mcp",
|
|
6
6
|
"main": "dist/index.js",
|