@dangahagan/weather-mcp 1.35.22 → 1.35.23
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
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, 5,
|
|
61
|
+
- **Fully open source** — MIT licensed, readable TypeScript, 5,580 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
|
|
|
@@ -396,7 +396,7 @@ npm run build # Compile TypeScript
|
|
|
396
396
|
npm run dev # Run in development mode
|
|
397
397
|
npm test # Offline tests: unit + integration (what CI runs)
|
|
398
398
|
npm run test:live # Live-network tests against the real upstreams, by hand
|
|
399
|
-
npm test && npm run test:live # Run all 5,
|
|
399
|
+
npm test && npm run test:live # Run all 5,580 tests
|
|
400
400
|
npm run test:coverage # Coverage report
|
|
401
401
|
npm run audit # Dependency vulnerability scan
|
|
402
402
|
```
|
|
@@ -90,12 +90,23 @@ export declare class GoogleWeatherService {
|
|
|
90
90
|
* - a region Google does not cover → HTTP 404 `NOT_FOUND` (not the
|
|
91
91
|
* `regionCode`-only 200 the documentation implied)
|
|
92
92
|
* → `{ alerts: [], covered: false }`.
|
|
93
|
+
* - any other 200 body (an HTML page, a gateway's error object, `''`,
|
|
94
|
+
* `null`, no `weatherAlerts` array, or an element that is not an object)
|
|
95
|
+
* throws `UNEXPECTED_RESPONSE_MESSAGE` and is **not** cached.
|
|
93
96
|
* **No retries.**
|
|
94
97
|
*
|
|
95
98
|
* @throws {GoogleWeatherKeyRejectedError} the configured key was rejected
|
|
96
|
-
* @throws {Error} no key configured, invalid coordinates,
|
|
99
|
+
* @throws {Error} no key configured, invalid coordinates, a 200 body that is
|
|
100
|
+
* not the alerts envelope, or any other failure
|
|
97
101
|
*/
|
|
98
102
|
getPublicAlerts(latitude: number, longitude: number): Promise<PublicAlertsResult>;
|
|
99
103
|
private fetchPublicAlerts;
|
|
104
|
+
/**
|
|
105
|
+
* The request alone: resolves the 200 body unread, resolves the
|
|
106
|
+
* uncovered-region 404 to `{ covered: false }`, and maps every other failure
|
|
107
|
+
* to a fixed message. The body is checked by the caller, outside this
|
|
108
|
+
* `catch`.
|
|
109
|
+
*/
|
|
110
|
+
private requestPublicAlerts;
|
|
100
111
|
}
|
|
101
112
|
//# sourceMappingURL=googleWeather.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"googleWeather.d.ts","sourceRoot":"","sources":["../../src/services/googleWeather.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAUH,OAAO,KAAK,EAAE,kBAAkB,EAA+B,MAAM,2BAA2B,CAAC;AAEjG;;;;;;;;;;;GAWG;AACH,qBAAa,6BAA8B,SAAQ,KAAK;IACtD,cAQC;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,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
|
|
@@ -74,6 +74,27 @@ const KEY_REJECTION_MARKERS = ['API_KEY_INVALID', 'API key not valid', 'PERMISSI
|
|
|
74
74
|
// (Directly mirrors the pollen service's LOCATION_UNAVAILABLE_MARKER, which
|
|
75
75
|
// was found the same way at that feature's live-verification task.)
|
|
76
76
|
const LOCATION_UNSUPPORTED_MARKER = 'Information is not supported for this location';
|
|
77
|
+
/**
|
|
78
|
+
* The one message for a 200 whose body is not the alerts envelope. Fixed text:
|
|
79
|
+
* nothing from the body, the URL or the key ever reaches it.
|
|
80
|
+
*/
|
|
81
|
+
const UNEXPECTED_RESPONSE_MESSAGE = 'Google Weather API returned an unexpected response.';
|
|
82
|
+
/** A JSON object — not `null`, not an array, not a string (G4, G111: `''` is the real empty body). */
|
|
83
|
+
function isPlainObject(value) {
|
|
84
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The verified alerts envelope: a plain object whose `weatherAlerts` is an
|
|
88
|
+
* array of plain objects. A quiet covered point sends `weatherAlerts: []`
|
|
89
|
+
* (live-verified 2026-08-18 and 2026-11-23), so a `regionCode`-only body is
|
|
90
|
+
* refused rather than read as quiet. **Revisit trigger:** a live 200 from
|
|
91
|
+
* `publicAlerts:lookup` that carries `regionCode` and no `weatherAlerts`.
|
|
92
|
+
*/
|
|
93
|
+
function isPublicAlertsEnvelope(body) {
|
|
94
|
+
return isPlainObject(body)
|
|
95
|
+
&& Array.isArray(body.weatherAlerts)
|
|
96
|
+
&& body.weatherAlerts.every(isPlainObject);
|
|
97
|
+
}
|
|
77
98
|
export class GoogleWeatherService {
|
|
78
99
|
client;
|
|
79
100
|
cache;
|
|
@@ -119,10 +140,14 @@ export class GoogleWeatherService {
|
|
|
119
140
|
* - a region Google does not cover → HTTP 404 `NOT_FOUND` (not the
|
|
120
141
|
* `regionCode`-only 200 the documentation implied)
|
|
121
142
|
* → `{ alerts: [], covered: false }`.
|
|
143
|
+
* - any other 200 body (an HTML page, a gateway's error object, `''`,
|
|
144
|
+
* `null`, no `weatherAlerts` array, or an element that is not an object)
|
|
145
|
+
* throws `UNEXPECTED_RESPONSE_MESSAGE` and is **not** cached.
|
|
122
146
|
* **No retries.**
|
|
123
147
|
*
|
|
124
148
|
* @throws {GoogleWeatherKeyRejectedError} the configured key was rejected
|
|
125
|
-
* @throws {Error} no key configured, invalid coordinates,
|
|
149
|
+
* @throws {Error} no key configured, invalid coordinates, a 200 body that is
|
|
150
|
+
* not the alerts envelope, or any other failure
|
|
126
151
|
*/
|
|
127
152
|
async getPublicAlerts(latitude, longitude) {
|
|
128
153
|
validateLatitude(latitude);
|
|
@@ -148,12 +173,48 @@ export class GoogleWeatherService {
|
|
|
148
173
|
return result;
|
|
149
174
|
}
|
|
150
175
|
async fetchPublicAlerts(latitude, longitude) {
|
|
176
|
+
const redacted = redactCoordinatesForLogging(latitude, longitude);
|
|
177
|
+
logger.info('Querying Google Weather public alerts', { lat: redacted.lat, lon: redacted.lon });
|
|
178
|
+
const answer = await this.requestPublicAlerts(latitude, longitude);
|
|
179
|
+
if (!answer.covered) {
|
|
180
|
+
return { alerts: [], covered: false };
|
|
181
|
+
}
|
|
182
|
+
// A 200 whose body is not the verified envelope is an error, never an
|
|
183
|
+
// empty list (G4): printing "no alerts" for a shape this code has never
|
|
184
|
+
// seen is a fabricated all-clear on safety data. It is thrown here,
|
|
185
|
+
// outside the request's `catch`, so it is never mapped to the generic
|
|
186
|
+
// failure text, never retried and never cached. Nothing from the body is
|
|
187
|
+
// logged.
|
|
188
|
+
if (!isPublicAlertsEnvelope(answer.body)) {
|
|
189
|
+
logger.warn('Google Weather API returned an unexpected response', {
|
|
190
|
+
lat: redacted.lat,
|
|
191
|
+
lon: redacted.lon,
|
|
192
|
+
securityEvent: true
|
|
193
|
+
});
|
|
194
|
+
throw new Error(UNEXPECTED_RESPONSE_MESSAGE);
|
|
195
|
+
}
|
|
196
|
+
if (answer.body.weatherAlerts.length === 0) {
|
|
197
|
+
// A 200 with an empty list means Google served this location — it simply
|
|
198
|
+
// has nothing active. That is a real all-clear, unlike the 404 below.
|
|
199
|
+
logger.info('Google Weather API returned no active alerts for this location');
|
|
200
|
+
return { alerts: [], covered: true };
|
|
201
|
+
}
|
|
202
|
+
return { alerts: answer.body.weatherAlerts, covered: true };
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The request alone: resolves the 200 body unread, resolves the
|
|
206
|
+
* uncovered-region 404 to `{ covered: false }`, and maps every other failure
|
|
207
|
+
* to a fixed message. The body is checked by the caller, outside this
|
|
208
|
+
* `catch`.
|
|
209
|
+
*/
|
|
210
|
+
async requestPublicAlerts(latitude, longitude) {
|
|
151
211
|
// The key rides in the request params, not the logged metadata below —
|
|
152
212
|
// never log or throw this value (see module doc comment).
|
|
153
213
|
const key = this.apiKey; // isKeyAvailable() already checked by the caller
|
|
154
|
-
const redacted = redactCoordinatesForLogging(latitude, longitude);
|
|
155
|
-
logger.info('Querying Google Weather public alerts', { lat: redacted.lat, lon: redacted.lon });
|
|
156
214
|
try {
|
|
215
|
+
// **Live-verified 2026-08-18:** the array field is `weatherAlerts`, not
|
|
216
|
+
// the `alerts` the design plan's web-verified shape claimed. Reading the
|
|
217
|
+
// documented name returned an empty array for every location on Earth.
|
|
157
218
|
const response = await this.client.get(PUBLIC_ALERTS_URL, {
|
|
158
219
|
params: {
|
|
159
220
|
key,
|
|
@@ -162,17 +223,7 @@ export class GoogleWeatherService {
|
|
|
162
223
|
languageCode: 'en'
|
|
163
224
|
}
|
|
164
225
|
});
|
|
165
|
-
|
|
166
|
-
// the `alerts` the design plan's web-verified shape claimed. Reading the
|
|
167
|
-
// documented name returned an empty array for every location on Earth.
|
|
168
|
-
const alerts = response.data?.weatherAlerts;
|
|
169
|
-
if (!alerts || alerts.length === 0) {
|
|
170
|
-
// A 200 means Google served this location — it simply has nothing
|
|
171
|
-
// active. That is a real all-clear, unlike the 404 below.
|
|
172
|
-
logger.info('Google Weather API returned no active alerts for this location');
|
|
173
|
-
return { alerts: [], covered: true };
|
|
174
|
-
}
|
|
175
|
-
return { alerts, covered: true };
|
|
226
|
+
return { covered: true, body: response.data };
|
|
176
227
|
}
|
|
177
228
|
catch (error) {
|
|
178
229
|
// Deliberately do not pass the raw axios error object to the logger —
|
|
@@ -184,7 +235,7 @@ export class GoogleWeatherService {
|
|
|
184
235
|
// so the caller caches it and stops re-probing.
|
|
185
236
|
if (isLocationUnsupported(error)) {
|
|
186
237
|
logger.info('Google Weather has no alert coverage for this location', { status });
|
|
187
|
-
return {
|
|
238
|
+
return { covered: false };
|
|
188
239
|
}
|
|
189
240
|
logger.error('Google Weather API request failed', undefined, { status, code });
|
|
190
241
|
throw mapPublicAlertsError(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"googleWeather.js","sourceRoot":"","sources":["../../src/services/googleWeather.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,6BAA8B,SAAQ,KAAK;IACtD;QACE,KAAK,CACH,iFAAiF;YAC/E,kFAAkF;YAClF,iFAAiF;YACjF,gCAAgC,CACnC,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,+BAA+B,CAAC;IAC9C,CAAC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AC,EAAE,CAAC;QAC9B,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;YAClC,OAAO,IAAI,KAAK,CACd,mFAAmF,CACpF,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;QACtC,IAAI,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;YACrC,MAAM,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;YAEzC,IAAI,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;gBACpE,OAAO,IAAI,6BAA6B,EAAE,CAAC;YAC7C,CAAC;YACD,OAAO,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACvE,CAAC;QACD,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;YACnB,OAAO,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACjF,CAAC;QACD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACrE,CAAC;QAED,OAAO,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;IAChG,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;AAC9E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dangahagan/weather-mcp",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.23",
|
|
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",
|