@dangahagan/weather-mcp 1.36.4 → 1.36.5

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
  [![npm version](https://badge.fury.io/js/@dangahagan%2Fweather-mcp.svg)](https://www.npmjs.com/package/@dangahagan/weather-mcp)
4
4
  [![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.dgahagan/weather-mcp)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
- [![Tests](https://img.shields.io/badge/tests-6%2C173%20passing-brightgreen)](./docs/testing/TEST_SUITE_README.md)
6
+ [![Tests](https://img.shields.io/badge/tests-6%2C190%20passing-brightgreen)](./docs/testing/TEST_SUITE_README.md)
7
7
  [![Node](https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white)](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,173 tests. Audit it, fork it, fix it.
61
+ - **Fully open source** — MIT licensed, readable TypeScript, 6,190 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
 
@@ -277,7 +277,7 @@ Supported on `get_forecast`, `get_current_conditions`, and `get_historical_weath
277
277
  | `WEATHER_TEMPERATURE_UNIT` … | — | Per-unit overrides: `_TEMPERATURE_`(F/C), `_WIND_SPEED_`(mph/kmh/ms/kn), `_PRECIPITATION_`(inch/mm), `_PRESSURE_`(inHg/hPa), `_DISTANCE_`(mi/km), `_TIME_FORMAT`(12h/24h) |
278
278
  | `CACHE_ENABLED` | `true` | Enable/disable response caching: `true`/`false`/`1`/`0`, any case. Any other value warns on stderr and leaves caching on |
279
279
  | `CACHE_MAX_SIZE` | `1000` | Max entries per cache (100–10000; a whole number — anything else warns and uses the default). When a cache is full, expired entries are dropped before the least recently used live one. The composite-map cache has its own fixed bound of 32 entries, and base-map tiles above 32 KiB are used but not cached |
280
- | `API_TIMEOUT_MS` | `30000` | Upstream request timeout, end to end on a wall clock — connect, proxy and response body (5000–120000; a whole number — anything else warns and uses the default). A few clients keep a timeout of their own, such as geocoding at 10 s. The requests of one tool call share a budget of `max(API_TIMEOUT_MS, 55 s)`, so a tool that makes several never outlives a 60 s client; a request that starts after the budget is spent fails at once with that service's timed-out message |
280
+ | `API_TIMEOUT_MS` | `30000` | Upstream request timeout, end to end on a wall clock — connect, proxy and response body (5000–120000; a whole number — anything else warns and uses the default). A few clients keep a timeout of their own, such as geocoding at 10 s. The requests of one tool call share a budget of `max(API_TIMEOUT_MS, 55 s)`, so a tool that makes several never outlives a 60 s client; a request that starts after the budget is spent fails at once with that service's timed-out message. On the keyless alert feeds for India, the Philippines, Indonesia and Japan, Great Britain's river gauges, the MET Norway forecast fallback, US climate normals, and radar and base-map imagery, a connection that does not open within 5 s fails at 5 s; once connected, the request gets this timeout |
281
281
  | `HTTPS_PROXY` / `NO_PROXY` | — | Send the weather API requests through an HTTP CONNECT proxy (`ALL_PROXY` and lowercase names also work). Credentials go in the URL, percent-encoded: `http://user:p%40ss@proxy:3128` sends the password `p@ss`, so write a literal `%` as `%25` |
282
282
  | `WEATHER_LIGHTNING_PREWARM` | `true` | Subscribe saved locations' geohashes at startup so lightning has coverage before the first query, and keep them subscribed for as long as they stay saved. The saved list is re-read every 30 minutes: a location saved from another client is picked up, and a removed one stops being watched within about an hour, with no restart. Follows the lightning tool (`get_lightning_activity`), not `get_weather_summary`: no effect when the lightning tool is disabled, as it is in the default `basic` preset — use `ENABLED_TOOLS=basic,+lightning` to opt in. A saved location that does not fit the 50-subscription limit is skipped rather than displacing an area you queried. Set `false` (or `0`, any case) to skip pre-warm and the persistent MQTT connection it opens. An unrecognized value warns on stderr and pre-warms. |
283
283
  | `LOG_LEVEL` | `1` | `0`/`DEBUG`, `1`/`INFO`, `2`/`WARN`, `3`/`ERROR` — number or name, names case-insensitive. An unrecognized value warns on stderr and falls back to `INFO`. Logs go to stderr. `0`/`DEBUG` adds detail, never location text |
@@ -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,173 tests
403
+ npm test && npm run test:live # Run all 6,190 tests
404
404
  npm run test:coverage # Coverage report
405
405
  npm run audit # Dependency vulnerability scan
406
406
  ```
@@ -23,6 +23,14 @@
23
23
  * `proxy: false` is load-bearing: without it axios's `setProxy` (`lib/adapters/http.js`) swaps
24
24
  * any non-https-proxy-agent `httpsAgent` for its own tunnel. A request with no timeout has no
25
25
  * signal and keeps axios's own tunnel; every client in `src/` sets a timeout.
26
+ * - A non-tunnelled `maxRedirects: 0` request whose caller set no agent for the target's protocol
27
+ * gets a shared, lazily built keep-alive agent with `timeout: CONNECT_TIMEOUT_MS`. Node's native
28
+ * `ClientRequest` replaces the agent's socket timeout with axios's `req.setTimeout` once the
29
+ * socket connects, so the 5 s bounds the connect phase only: a dead host fails at 5 s, a slow but
30
+ * connected one still gets the request's own timeout. follow-redirects (any other `maxRedirects`)
31
+ * arms its own socket timer on `socket`, so those requests are left alone. The cut ends as axios's
32
+ * own `ECONNABORTED`, so no mapper changes (G138). Node 19+'s global agent carries the same 5 s;
33
+ * pinning it here means a Node default cannot move it.
26
34
  * - A caller's own `signal` is chained in, and a caller's cancel stays axios's `ERR_CANCELED`.
27
35
  * - The deadline timer is ref'd (G114) and cleared on every settle path, with the caller-signal
28
36
  * listener, so the timer itself holds a process for at most `timeout`.
@@ -40,6 +48,12 @@
40
48
  * Node 18 compatible: no `AbortSignal.any`, no `AbortSignal.timeout`.
41
49
  */
42
50
  import type { AxiosAdapter } from 'axios';
51
+ /**
52
+ * How long a native-transport (`maxRedirects: 0`) request may wait for its connection to open.
53
+ * Node 19+'s global-agent value, pinned so a Node default cannot move it. It cuts a connection that
54
+ * has not opened, on the native transport only; once connected, the request's own timeout applies.
55
+ */
56
+ export declare const CONNECT_TIMEOUT_MS = 5000;
43
57
  /**
44
58
  * Wrap an axios adapter with a wall-clock deadline of the merged config's `timeout`. With no
45
59
  * `inner`, the adapter resolves axios's default on the first request and memoises it.
@@ -1 +1 @@
1
- {"version":3,"file":"httpDeadline.d.ts","sourceRoot":"","sources":["../../src/utils/httpDeadline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAGH,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,OAAO,CAAC;AAsCrF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,CA+FtE"}
1
+ {"version":3,"file":"httpDeadline.d.ts","sourceRoot":"","sources":["../../src/utils/httpDeadline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAKH,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,OAAO,CAAC;AAYrF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AA2EvC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,CA+FtE"}
@@ -23,6 +23,14 @@
23
23
  * `proxy: false` is load-bearing: without it axios's `setProxy` (`lib/adapters/http.js`) swaps
24
24
  * any non-https-proxy-agent `httpsAgent` for its own tunnel. A request with no timeout has no
25
25
  * signal and keeps axios's own tunnel; every client in `src/` sets a timeout.
26
+ * - A non-tunnelled `maxRedirects: 0` request whose caller set no agent for the target's protocol
27
+ * gets a shared, lazily built keep-alive agent with `timeout: CONNECT_TIMEOUT_MS`. Node's native
28
+ * `ClientRequest` replaces the agent's socket timeout with axios's `req.setTimeout` once the
29
+ * socket connects, so the 5 s bounds the connect phase only: a dead host fails at 5 s, a slow but
30
+ * connected one still gets the request's own timeout. follow-redirects (any other `maxRedirects`)
31
+ * arms its own socket timer on `socket`, so those requests are left alone. The cut ends as axios's
32
+ * own `ECONNABORTED`, so no mapper changes (G138). Node 19+'s global agent carries the same 5 s;
33
+ * pinning it here means a Node default cannot move it.
26
34
  * - A caller's own `signal` is chained in, and a caller's cancel stays axios's `ERR_CANCELED`.
27
35
  * - The deadline timer is ref'd (G114) and cleared on every settle path, with the caller-signal
28
36
  * listener, so the timer itself holds a process for at most `timeout`.
@@ -39,11 +47,40 @@
39
47
  *
40
48
  * Node 18 compatible: no `AbortSignal.any`, no `AbortSignal.timeout`.
41
49
  */
50
+ import http from 'node:http';
51
+ import https from 'node:https';
42
52
  import axios from 'axios';
43
53
  import { createTunnelAgent, tunnelProxyFor } from './proxyTunnel.js';
44
54
  import { remainingToolBudgetMs } from './toolBudget.js';
45
55
  /** The abort reason that marks our own deadline, as distinct from a caller's cancel. */
46
56
  const DEADLINE = Symbol('httpDeadline.deadline');
57
+ /**
58
+ * How long a native-transport (`maxRedirects: 0`) request may wait for its connection to open.
59
+ * Node 19+'s global-agent value, pinned so a Node default cannot move it. It cuts a connection that
60
+ * has not opened, on the native transport only; once connected, the request's own timeout applies.
61
+ */
62
+ export const CONNECT_TIMEOUT_MS = 5000;
63
+ let nativeHttpAgent;
64
+ let nativeHttpsAgent;
65
+ /** The shared native-transport `https:` agent, built on first use. */
66
+ function nativeHttpsAgentShared() {
67
+ nativeHttpsAgent ??= new https.Agent({ keepAlive: true, timeout: CONNECT_TIMEOUT_MS });
68
+ return nativeHttpsAgent;
69
+ }
70
+ /** The shared native-transport `http:` agent, built on first use. */
71
+ function nativeHttpAgentShared() {
72
+ nativeHttpAgent ??= new http.Agent({ keepAlive: true, timeout: CONNECT_TIMEOUT_MS });
73
+ return nativeHttpAgent;
74
+ }
75
+ /** The request's resolved URL, or undefined when it does not parse. */
76
+ function resolvedHref(config) {
77
+ try {
78
+ return new URL(config.url ?? '', config.baseURL).href;
79
+ }
80
+ catch {
81
+ return undefined;
82
+ }
83
+ }
47
84
  /**
48
85
  * The proxy to tunnel `config` through: an `https:` target, no caller `proxy`, and a proxy that
49
86
  * `proxy-from-env` selects. Anything else, including a URL that does not parse, is no tunnel.
@@ -52,14 +89,33 @@ function tunnelProxy(config) {
52
89
  if (config.proxy !== undefined) {
53
90
  return undefined;
54
91
  }
55
- let href;
56
- try {
57
- href = new URL(config.url ?? '', config.baseURL).href;
92
+ const href = resolvedHref(config);
93
+ return href !== undefined && href.startsWith('https:') ? tunnelProxyFor(href) : undefined;
94
+ }
95
+ /**
96
+ * The agent key and agent to inject for a non-tunnelled native-transport request, or undefined:
97
+ * only `maxRedirects === 0`, no caller `proxy` (`false` is direct and counts as none), an
98
+ * `http:`/`https:` target, and no caller agent for that protocol.
99
+ */
100
+ function nativeAgentInjection(config) {
101
+ if (config.maxRedirects !== 0) {
102
+ return undefined;
58
103
  }
59
- catch {
104
+ if (config.proxy !== undefined && config.proxy !== false) {
105
+ // A caller-chosen proxy is tunnelled by axios with its own agent; never second-guess it.
106
+ return undefined;
107
+ }
108
+ const href = resolvedHref(config);
109
+ if (href === undefined) {
60
110
  return undefined;
61
111
  }
62
- return href.startsWith('https:') ? tunnelProxyFor(href) : undefined;
112
+ if (href.startsWith('https:')) {
113
+ return config.httpsAgent == null ? { httpsAgent: nativeHttpsAgentShared() } : undefined;
114
+ }
115
+ if (href.startsWith('http:')) {
116
+ return config.httpAgent == null ? { httpAgent: nativeHttpAgentShared() } : undefined;
117
+ }
118
+ return undefined;
63
119
  }
64
120
  function deadlineError(timeout, config, request) {
65
121
  return new axios.AxiosError('timeout of ' + timeout + 'ms exceeded', 'ECONNABORTED', config, request);
@@ -125,7 +181,7 @@ export function withRequestDeadline(inner) {
125
181
  const proxy = tunnelProxy(config);
126
182
  pending =
127
183
  proxy === undefined
128
- ? adapter({ ...config, signal: controller.signal })
184
+ ? adapter({ ...config, signal: controller.signal, ...nativeAgentInjection(config) })
129
185
  : adapter({
130
186
  ...config,
131
187
  signal: controller.signal,
@@ -1 +1 @@
1
- {"version":3,"file":"httpDeadline.js","sourceRoot":"","sources":["../../src/utils/httpDeadline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAOxD,wFAAwF;AACxF,MAAM,QAAQ,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAEjD;;;GAGG;AACH,SAAS,WAAW,CAAC,MAAkC;IACrD,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;IACxD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,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AAC;4BACN,GAAG,MAAM;4BACT,MAAM,EAAE,UAAU,CAAC,MAAM;4BACzB,KAAK,EAAE,KAAK;4BACZ,UAAU,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC;yBACxD,CAAC,CAAC;YACX,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,CAAC;YAED,OAAO,CAAC,IAAI,CACV,CAAC,QAAQ,EAAE,EAAE;gBACX,IAAI,OAAO;oBAAE,OAAO;gBACpB,OAAO,GAAG,IAAI,CAAC;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpB,CAAC,EACD,CAAC,GAAY,EAAE,EAAE;gBACf,IAAI,OAAO;oBAAE,OAAO;gBACpB,OAAO,GAAG,IAAI,CAAC;gBACf,OAAO,EAAE,CAAC;gBACV,qFAAqF;gBACrF,kDAAkD;gBAClD,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;oBACjE,MAAM,OAAO,GAAI,GAA6B,CAAC,OAAO,CAAC;oBACvD,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;oBAChD,OAAO;gBACT,CAAC;gBACD,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangahagan/weather-mcp",
3
- "version": "1.36.4",
3
+ "version": "1.36.5",
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",