@cyanheads/noaa-spaceweather-mcp-server 0.5.0 → 0.6.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/AGENTS.md +6 -5
- package/CLAUDE.md +6 -5
- package/README.md +10 -9
- package/changelog/0.6.x/0.6.0.md +41 -0
- package/changelog/template.md +10 -8
- package/dist/mcp-server/tools/definitions/get-alerts.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/get-alerts.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-alerts.tool.js +31 -32
- package/dist/mcp-server/tools/definitions/get-alerts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.js +19 -22
- package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-conditions.tool.d.ts +16 -14
- package/dist/mcp-server/tools/definitions/get-conditions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-conditions.tool.js +56 -47
- package/dist/mcp-server/tools/definitions/get-conditions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-kp-index.tool.d.ts +8 -5
- package/dist/mcp-server/tools/definitions/get-kp-index.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-kp-index.tool.js +64 -42
- package/dist/mcp-server/tools/definitions/get-kp-index.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-solar-activity.tool.d.ts +23 -16
- package/dist/mcp-server/tools/definitions/get-solar-activity.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-solar-activity.tool.js +151 -64
- package/dist/mcp-server/tools/definitions/get-solar-activity.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-solar-wind.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/get-solar-wind.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-solar-wind.tool.js +5 -28
- package/dist/mcp-server/tools/definitions/get-solar-wind.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +105 -93
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/services/space-weather/kp-headline.d.ts +30 -0
- package/dist/services/space-weather/kp-headline.d.ts.map +1 -0
- package/dist/services/space-weather/kp-headline.js +39 -0
- package/dist/services/space-weather/kp-headline.js.map +1 -0
- package/dist/services/space-weather/space-weather-service.d.ts +36 -7
- package/dist/services/space-weather/space-weather-service.d.ts.map +1 -1
- package/dist/services/space-weather/space-weather-service.js +257 -98
- package/dist/services/space-weather/space-weather-service.js.map +1 -1
- package/dist/services/space-weather/types.d.ts +88 -32
- package/dist/services/space-weather/types.d.ts.map +1 -1
- package/package.json +8 -8
- package/server.json +3 -3
- package/skills/noaa-spaceweather-guide/SKILL.md +8 -8
package/AGENTS.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** noaa-spaceweather-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.6.0
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0 (protocol revisions 2026-07-28 and 2025-*)
|
|
8
8
|
**Zod:** ^4.6.7
|
|
@@ -131,7 +131,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
131
131
|
|
|
132
132
|
Handlers throw — the framework catches, classifies, and formats.
|
|
133
133
|
|
|
134
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
134
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. A declared `retryable` reaches the same failures the same way, as `data.retryable`, unless the throw sets its own. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
135
135
|
|
|
136
136
|
```ts
|
|
137
137
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -163,7 +163,7 @@ throw new Error('Item not found'); // → NotFound
|
|
|
163
163
|
throw new Error('Invalid query format'); // → ValidationError
|
|
164
164
|
|
|
165
165
|
// McpError — when no factory exists for the code
|
|
166
|
-
import {
|
|
166
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
167
167
|
throw new McpError(JsonRpcErrorCode.InitializationFailed, 'Connection failed', { pool: 'primary' });
|
|
168
168
|
```
|
|
169
169
|
|
|
@@ -180,6 +180,7 @@ src/
|
|
|
180
180
|
space-weather/
|
|
181
181
|
space-weather-service.ts # NOAA SWPC feed client + normalization
|
|
182
182
|
solar-position.ts # Solar elevation + darkness state (pure)
|
|
183
|
+
kp-headline.ts # Headline Kp + unavailable-bin split shared by the Kp tools (pure)
|
|
183
184
|
types.ts # Domain types (KpRecord, ScaleEntry, etc.)
|
|
184
185
|
mcp-server/
|
|
185
186
|
tools/definitions/
|
|
@@ -342,7 +343,7 @@ security: false # optional — true ONLY for a source
|
|
|
342
343
|
```ts
|
|
343
344
|
// Framework — z is re-exported, no separate zod import needed
|
|
344
345
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
345
|
-
import {
|
|
346
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
346
347
|
|
|
347
348
|
// Server's own code — via path alias
|
|
348
349
|
import { getMyService } from '@/services/my-domain/my-service.js';
|
package/CLAUDE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** noaa-spaceweather-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.6.0
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0 (protocol revisions 2026-07-28 and 2025-*)
|
|
8
8
|
**Zod:** ^4.6.7
|
|
@@ -131,7 +131,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
131
131
|
|
|
132
132
|
Handlers throw — the framework catches, classifies, and formats.
|
|
133
133
|
|
|
134
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
134
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. A declared `retryable` reaches the same failures the same way, as `data.retryable`, unless the throw sets its own. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
135
135
|
|
|
136
136
|
```ts
|
|
137
137
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -163,7 +163,7 @@ throw new Error('Item not found'); // → NotFound
|
|
|
163
163
|
throw new Error('Invalid query format'); // → ValidationError
|
|
164
164
|
|
|
165
165
|
// McpError — when no factory exists for the code
|
|
166
|
-
import {
|
|
166
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
167
167
|
throw new McpError(JsonRpcErrorCode.InitializationFailed, 'Connection failed', { pool: 'primary' });
|
|
168
168
|
```
|
|
169
169
|
|
|
@@ -180,6 +180,7 @@ src/
|
|
|
180
180
|
space-weather/
|
|
181
181
|
space-weather-service.ts # NOAA SWPC feed client + normalization
|
|
182
182
|
solar-position.ts # Solar elevation + darkness state (pure)
|
|
183
|
+
kp-headline.ts # Headline Kp + unavailable-bin split shared by the Kp tools (pure)
|
|
183
184
|
types.ts # Domain types (KpRecord, ScaleEntry, etc.)
|
|
184
185
|
mcp-server/
|
|
185
186
|
tools/definitions/
|
|
@@ -342,7 +343,7 @@ security: false # optional — true ONLY for a source
|
|
|
342
343
|
```ts
|
|
343
344
|
// Framework — z is re-exported, no separate zod import needed
|
|
344
345
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
345
|
-
import {
|
|
346
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
346
347
|
|
|
347
348
|
// Server's own code — via path alias
|
|
348
349
|
import { getMyService } from '@/services/my-domain/my-service.js';
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/noaa-spaceweather-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/noaa-spaceweather-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -47,15 +47,15 @@ Space weather from NOAA's Space Weather Prediction Center: geomagnetic storms, K
|
|
|
47
47
|
### `noaa_spaceweather_get_conditions` <sub>tool</sub>
|
|
48
48
|
|
|
49
49
|
- `include_discussion` (bool, default false) is the only input; one call composes the `noaa-scales.json` and `noaa-planetary-k-index.json` feeds, plus the `discussion.txt` product when the discussion is requested
|
|
50
|
-
- `today` holds the latest observed R/S/G levels. `yesterday` holds the rolling 24-hour observed maxima with SWPC’s date stamp, or null when
|
|
50
|
+
- `today` holds the latest observed R/S/G levels. `yesterday` holds the rolling 24-hour observed maxima with SWPC’s date stamp, or null when the period is absent or SWPC issued no level in it. Each maximum, like a latest level or forecast G, can be unissued, with null `scale`, `text`, and `label`; a forecast R/S level that is not a whole number 0–5 reads as unissued too. Forecast R/S can carry probabilities. The three-day forecast starts on the current UTC date. The latest observed Kp bin with a value comes with its G-scale equivalent, aurora-latitude guidance, and `currentKpTimeTag` (the bin's 3-hour start); all four are null when no bin has a value, and `kpUnavailableBins` lists the observed bins without one.
|
|
51
51
|
- With `include_discussion`, the forecaster-written Forecast Discussion split into its topic sections (Solar Activity, Energetic Particle, Solar Wind, Geospace), each with its 24-hour summary and 3-day forecast text
|
|
52
52
|
|
|
53
53
|
---
|
|
54
54
|
|
|
55
55
|
### `noaa_spaceweather_get_kp_index` <sub>tool</sub>
|
|
56
56
|
|
|
57
|
-
- `window_days` (1–7, default 1) bounds the observed series, and `observedCount`
|
|
58
|
-
- Each record carries Kp, its G level and label, and aurora-latitude guidance. G levels follow SWPC's minus-third band floors — G1 starts at Kp 4.67 (5−), and only Kp 9 is G5
|
|
57
|
+
- `window_days` (1–7, default 1) bounds the observed series, and `observedCount` counts the in-window bins with a value; the forecast is always SWPC's full 3-day series of forward-looking `estimated`/`predicted` rows
|
|
58
|
+
- Each record carries Kp, its G level and label, and aurora-latitude guidance. A bin without a value (absent, null, NaN, or fill) is not a record: its time tag goes to `kpUnavailableBins` (scoped to `window_days`), or to `forecastUnavailableBins` for a forward forecast row. The headline `currentKp` comes from the latest in-window bin with a value, and its fields are null together when none has one. G levels follow SWPC's minus-third band floors — G1 starts at Kp 4.67 (5−), and only Kp 9 is G5
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
@@ -77,15 +77,16 @@ Space weather from NOAA's Space Weather Prediction Center: geomagnetic storms, K
|
|
|
77
77
|
|
|
78
78
|
### `noaa_spaceweather_get_solar_activity` <sub>tool</sub>
|
|
79
79
|
|
|
80
|
-
- `flare_hours` (1–168, default 24) bounds the flare events returned by onset over the feed's rolling 7 days; `include_regions` (default true) toggles per-region detail to control response size
|
|
81
|
-
- Returns discrete flare events with onset, peak, and decay classes, peak flux, and the NOAA R level (0–5) it implies (decay is null while a flare is in progress; peak fields are null when SWPC recorded no peak); GOES X-ray flux with its flare class (`flareClassFull`); the daily F10.7 cm radio flux with its observation time; 3-day C/M/X flare and proton-event probabilities (`cClassProbability`, `mClassProbability`, `xClassProbability`, `protonEventProbability` — the deprecated `*1Day` names still carry them in `structuredContent`); and the S level from ≥10 MeV proton flux
|
|
82
|
-
- With `
|
|
80
|
+
- `flare_hours` (1–168, default 24) bounds the flare events returned by onset over the feed's rolling 7 days; `include_regions` (default true) toggles per-region detail to control response size; `include_source_region` (default false) tags each flare event with the NOAA region SWPC's edited events credit it to, at the cost of one more ~550 KB feed read
|
|
81
|
+
- Returns discrete flare events with onset, peak, and decay classes, peak flux, and the NOAA R level (0–5) it implies (decay is null while a flare is in progress; peak fields are null when SWPC recorded no peak); GOES X-ray flux with its flare class (`flareClassFull`); the daily F10.7 cm radio flux with its observation time; 3-day C/M/X flare and proton-event probabilities (`cClassProbability`, `mClassProbability`, `xClassProbability`, `protonEventProbability` — the deprecated `*1Day` names still carry them in `structuredContent`); and the S level from ≥10 MeV proton flux. The S level and its text are null, never S0, when no ≥10 MeV reading has a finite flux, and a probability SWPC left unpublished is null under both names and renders "unavailable"
|
|
82
|
+
- With `include_source_region`, each flare event also carries `sourceRegion` (the NOAA region number) and `sourceRegionStatus`: `assigned`, `unassigned` (SWPC's edited record names no region yet; SWPC may credit one later, most often for recent flares), or `not_yet_edited` (the edited feed lags the flare feed by hours). If the edited-events feed fails, the fields are omitted and a notice says why
|
|
83
|
+
- With `include_regions`, each active region's sunspot area, the C/M/X flare counts SWPC attributed to it on its observation day, and its next-day flare probabilities, each null when SWPC left it unpublished
|
|
83
84
|
|
|
84
85
|
---
|
|
85
86
|
|
|
86
87
|
### `noaa_spaceweather_get_alerts` <sub>tool</sub>
|
|
87
88
|
|
|
88
|
-
- `active_only` (default true) returns in-force Warnings, Watches, and Alerts. It drops cancellations and their targets, superseded Watches, older links in explicit Alert continuation chains, Summaries, and expired products. `max_age_hours` (1–720, default 48) bounds the lookback. An active product with a future validity end can survive that cutoff. Set `active_only: false` for the complete history within the window.
|
|
89
|
+
- `active_only` (default true) returns in-force Warnings, Watches, and Alerts. It drops cancellations and their targets, superseded Watches, older links in explicit Alert continuation and Warning extension chains, Summaries, and expired products. `max_age_hours` (1–720, default 48) bounds the lookback. An active product with a future validity end can survive that cutoff. Set `active_only: false` for the complete history within the window.
|
|
89
90
|
- Each record carries product type, NOAA scale and level (0 means "no scale stated," not zero severity), serial number, parsed validity window, `cancelled`, and full message text. Under `active_only` the response also counts what it excluded, by reason, so an empty result reads as "quiet" or "everything was filtered"
|
|
90
91
|
|
|
91
92
|
---
|
|
@@ -107,7 +108,7 @@ Agent-friendly output:
|
|
|
107
108
|
- Observed timestamps on every response so agents can reason about data freshness
|
|
108
109
|
- Plain-language summaries and verdicts alongside raw values — agents can display or reason without re-interpreting indices
|
|
109
110
|
- Bz component surfaced as a first-class field in solar wind output (southward Bz = primary storm driver)
|
|
110
|
-
- Typed error contracts with recovery hints, split on whether retrying can help: a transient feed failure is `feed_unavailable` → "Retry in 30–60 s"; a feed path SWPC no longer serves is `feed_moved` → "Retrying will not help", raised on the first attempt
|
|
111
|
+
- Typed error contracts with recovery hints, split on whether retrying can help: a transient feed failure is `feed_unavailable` → "Retry in 30–60 s"; a feed path SWPC no longer serves, or a redirect the client cannot follow, is `feed_moved` → "Retrying will not help", raised on the first attempt
|
|
111
112
|
|
|
112
113
|
---
|
|
113
114
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Missing Kp, proton, and probability readings report null instead of 0 and one unissued 24-hour scale no longer hides the rest (breaking output changes); a Warning replaced by its extension leaves the active alert list; flare events can carry SWPC's source region."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.6.0 — 2026-11-29
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`include_source_region` on `noaa_spaceweather_get_solar_activity`** ([#60](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/60)). Each flare event gains `sourceRegion` and `sourceRegionStatus` (`assigned`, `unassigned`, `not_yet_edited`) from SWPC's edited events, at the cost of one more ~550 KB feed read. If that feed fails, the fields are omitted and a notice says why.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **Feed-failure classification.** A redirect the client cannot follow (a loop, a 300 or 304, a redirect with no `Location` or a non-HTTP one) and a 501 now fail in one attempt as `feed_moved` with its "Retrying will not help" hint; before, a loop or non-HTTP `Location` was retried 4 times and the rest failed once, all as `feed_unavailable`. The six tools' `errors[]` `when` text says so.
|
|
16
|
+
- **`feed_unavailable` errors now carry `data.retryable: true`**, the value their contract entry declares (mcp-ts-core [#856](https://github.com/cyanheads/mcp-ts-core/issues/856)); 0.5.0 sent none. `feed_moved` already carried `data.retryable: false`.
|
|
17
|
+
- **With `MCP_LOG_LEVEL` unset, the server logs at `info` instead of `debug`** (mcp-ts-core [#705](https://github.com/cyanheads/mcp-ts-core/issues/705)). Set `MCP_LOG_LEVEL=debug` to keep the old volume.
|
|
18
|
+
- **Development tooling**: sync framework skills and scripts from mcp-ts-core 0.13.24, and exclude `.vitest/` from git and MCPB bundles.
|
|
19
|
+
|
|
20
|
+
## Fixed
|
|
21
|
+
|
|
22
|
+
- **Warning extensions in the active alert view** ([#53](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/53)). A Warning that names its predecessor on an `Extension to Serial Number:` line now replaces it, as a continued Alert does; the predecessor counts under `exclusions.continued`. `active_only: false` keeps both.
|
|
23
|
+
- **Aurora verdict below 40° geomagnetic** ([#54](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/54)). `noaa_spaceweather_get_aurora_forecast` now says the location is outside the typical G5 band instead of claiming no storm reaches it. `minKpRequired` and `minGScale` are unchanged.
|
|
24
|
+
- **Unavailable Kp reads as null, not Kp 0** ([#55](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/55)). Breaking output change on `noaa_spaceweather_get_kp_index` and `noaa_spaceweather_get_conditions`: `currentKp`, `currentGScale`, and `auroraLatitude` are nullable. A bin without a value leaves `observed` and `forecast` and is listed in the new `kpUnavailableBins` (and `forecastUnavailableBins` on the Kp tool); `currentKpTimeTag` dates the headline bin.
|
|
25
|
+
- **Missing proton and probability data reads as null, not 0** ([#56](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/56)). Breaking output change on `noaa_spaceweather_get_solar_activity`: `sScale`, `sScaleText`, and the flare and proton probability fields (`probabilities[]`, `activeRegions[]`, and the deprecated `cClass1Day` family) are nullable. A null ≥10 MeV flux no longer fails the call; the newest finite reading is used.
|
|
26
|
+
- **One unissued 24-hour maximum no longer hides the others** ([#57](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/57)). Breaking output change on `noaa_spaceweather_get_conditions`: `yesterday.G`, `.R`, and `.S` carry `scale`, `text`, and `label` as nullable, and `yesterday` is null only when none was issued.
|
|
27
|
+
- **DST transitions no longer change the X-ray and Kp lookbacks** ([#58](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/58)). Both windows are elapsed time from one clock read; tests run in `America/Los_Angeles`.
|
|
28
|
+
- **noaa-spaceweather-guide skill 1.2** ([#59](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/59)). Corrects which Kp bins are `estimated` and how to judge Bz persistence (`resolution: "full"` over a bounded window).
|
|
29
|
+
- **`noaa_spaceweather_get_conditions` text shows an issued `none` descriptor** ([#61](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/61)). `G0 (scale 0) none` renders as issued; before, it printed `—`.
|
|
30
|
+
- **Forecast R/S `Scale` outside whole numbers 0–5 reads as unissued.** `"2.5"`, `"7"`, `"6"`, `"1e1"`, and `"-1"` rendered as levels in 0.5.0; `"2.0"`, `" 2"`, and `"02"` are unchanged.
|
|
31
|
+
- **A null, NaN, or string X-ray flux no longer fails `noaa_spaceweather_get_solar_activity`, and a fill value no longer reads as a measurement.** 0.5.0 failed with `-32603` on a null, NaN, or numeric-string newest flux and rendered `-9999` as `-1.0e+4 W/m²`; non-finite and fill values are now skipped, a numeric string parses, and `latestXray` is null when none is finite.
|
|
32
|
+
|
|
33
|
+
## Dependencies
|
|
34
|
+
|
|
35
|
+
- `@cyanheads/mcp-ts-core` ^0.13.22 → ^0.13.24
|
|
36
|
+
- `@biomejs/biome` ^2.6.8 → ^2.6.9 (dev)
|
|
37
|
+
- `@types/node` ^26.6.6 → ^26.6.11 (dev)
|
|
38
|
+
- `@vitest/coverage-istanbul` ^5.1.1 → ^5.1.2 (dev)
|
|
39
|
+
- `ignore` ^7.0.16 → ^7.0.17 (dev)
|
|
40
|
+
- `tsc-alias` ^1.9.10 → ^1.9.12 (dev)
|
|
41
|
+
- `vitest` ^5.1.1 → ^5.1.2 (dev)
|
package/changelog/template.md
CHANGED
|
@@ -75,17 +75,19 @@ security: false
|
|
|
75
75
|
Example — same fact, right size:
|
|
76
76
|
|
|
77
77
|
TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
|
|
78
|
-
(#341). `fetch`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
the deadline when the body closes,
|
|
78
|
+
([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). `fetch`
|
|
79
|
+
resolves once headers arrive and the deadline was cleared as the helper
|
|
80
|
+
returned, so a peer that answered promptly and then stalled the stream
|
|
81
|
+
held the request open indefinitely. A 2xx carrying a body now comes back
|
|
82
|
+
as a passthrough wrapper that disarms the deadline when the body closes,
|
|
83
|
+
errors, or is cancelled; …
|
|
83
84
|
[+90 more words of mechanism and edge cases]
|
|
84
85
|
|
|
85
86
|
RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
|
|
86
|
-
exchange, not just the headers**
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
exchange, not just the headers**
|
|
88
|
+
([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). A stalled
|
|
89
|
+
body aborts with the same `Timeout` error; the returned `Response` is a
|
|
90
|
+
wrapper, so identity assertions (`toBe(response)`) no longer hold.
|
|
89
91
|
|
|
90
92
|
Narrative intro: skip by default. Add one short sentence only when the
|
|
91
93
|
release theme genuinely needs framing the bullets can't carry. When many
|
|
@@ -34,14 +34,14 @@ export declare const getAlerts: import("@cyanheads/mcp-ts-core").ToolDefinition<
|
|
|
34
34
|
}, z.core.$strip>, readonly [{
|
|
35
35
|
readonly reason: "feed_unavailable";
|
|
36
36
|
readonly code: JsonRpcErrorCode.ServiceUnavailable;
|
|
37
|
-
readonly when: "SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.";
|
|
37
|
+
readonly when: "SWPC feed returns a 5xx other than 501 or a 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.";
|
|
38
38
|
readonly retryable: true;
|
|
39
39
|
readonly thrownBy: "service";
|
|
40
40
|
readonly recovery: "Retry in 30–60 seconds; SWPC feeds occasionally lag during high-activity events.";
|
|
41
41
|
}, {
|
|
42
42
|
readonly reason: "feed_moved";
|
|
43
43
|
readonly code: JsonRpcErrorCode.ServiceUnavailable;
|
|
44
|
-
readonly when: "SWPC feed path returns a permanent 4xx (404, 410, 401, 403). Fails in one attempt.";
|
|
44
|
+
readonly when: "SWPC feed path returns a permanent 4xx (404, 410, 401, 403), a 501, or a redirect the client cannot follow. Fails in one attempt.";
|
|
45
45
|
readonly retryable: false;
|
|
46
46
|
readonly thrownBy: "service";
|
|
47
47
|
readonly recovery: "Retrying will not help — the SWPC feed path no longer resolves or no longer has the expected shape; the feed URL needs updating against SWPC current inventory.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-alerts.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-alerts.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-alerts.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-alerts.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA6PjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4NpB,CAAC"}
|
|
@@ -14,8 +14,8 @@ import { getSpaceWeatherService } from '../../../services/space-weather/space-we
|
|
|
14
14
|
* The window leads because it decides which records were candidates at all, and product
|
|
15
15
|
* type follows because a Summary is never in force whatever its body says. Then the
|
|
16
16
|
* reasons that name a *replacement* — this record is itself a cancellation, a later
|
|
17
|
-
* record cancelled it, a later record superseded or
|
|
18
|
-
* "its stated end passed".
|
|
17
|
+
* record cancelled it, a later record superseded, continued, or extended it — and only last
|
|
18
|
+
* the generic "its stated end passed".
|
|
19
19
|
*
|
|
20
20
|
* That ordering is deliberate: a superseded Watch has usually outlived its own forecast
|
|
21
21
|
* days too, so ranking elapsed validity higher would report the whole Watch chain as
|
|
@@ -55,9 +55,10 @@ function endMs(alert) {
|
|
|
55
55
|
* Serials are per-message-code counters, so the match is scoped to the cancelling
|
|
56
56
|
* record's own code — the same serial under another code is a different product. SWPC
|
|
57
57
|
* reuses a serial within a code on a corrected reissue, so "Original Issue Time:" picks
|
|
58
|
-
* between them when it names one of the candidates
|
|
59
|
-
*
|
|
60
|
-
*
|
|
58
|
+
* between them when it names one of the candidates. When it names none, the nearest
|
|
59
|
+
* preceding record under that code and serial is taken. That fallback is the normal path
|
|
60
|
+
* for a cancelled extension: SWPC restates the issue time of the chain's first record
|
|
61
|
+
* rather than the extension's, so no record carrying the cancelled serial matches it.
|
|
61
62
|
*
|
|
62
63
|
* Resolving one target per cancellation is what keeps a cancellation from clearing its
|
|
63
64
|
* whole message code: a single code cycles CONTINUED → CANCEL → CONTINUED within minutes,
|
|
@@ -125,23 +126,26 @@ function resolveSuperseded(all) {
|
|
|
125
126
|
return new Set(carriers.filter(({ index }) => index !== newest.index).map(({ index }) => index));
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
|
-
* Resolve explicit
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
129
|
+
* Resolve explicit serial links across the feed: an Alert continuation or a Warning
|
|
130
|
+
* extension replaces the predecessor it names. Each link names its direct predecessor, so
|
|
131
|
+
* a chain of links leaves only its newest record. A link resolves within its own product
|
|
132
|
+
* type and message code. The two earliest issue times per serial distinguish a unique
|
|
133
|
+
* earlier record from an ambiguous pair regardless of feed order. A newer record retaining
|
|
134
|
+
* the serial does not make an earlier link ambiguous.
|
|
132
135
|
*/
|
|
133
136
|
function resolveContinued(all) {
|
|
134
|
-
const
|
|
135
|
-
if (alert.productType !== 'Alert' || alert.cancelled)
|
|
137
|
+
const records = all.flatMap((alert, index) => {
|
|
138
|
+
if ((alert.productType !== 'Alert' && alert.productType !== 'Warning') || alert.cancelled) {
|
|
136
139
|
return [];
|
|
140
|
+
}
|
|
137
141
|
const issuedMs = Date.parse(alert.issueDatetime);
|
|
138
142
|
return Number.isFinite(issuedMs) ? [{ alert, index, issuedMs }] : [];
|
|
139
143
|
});
|
|
140
144
|
const bySerial = new Map();
|
|
141
|
-
for (const { alert, index, issuedMs } of
|
|
145
|
+
for (const { alert, index, issuedMs } of records) {
|
|
142
146
|
if (alert.serialNumber === null)
|
|
143
147
|
continue;
|
|
144
|
-
const key = JSON.stringify([alert.messageCode, alert.serialNumber]);
|
|
148
|
+
const key = JSON.stringify([alert.productType, alert.messageCode, alert.serialNumber]);
|
|
145
149
|
const existing = bySerial.get(key);
|
|
146
150
|
if (!existing || issuedMs < existing.firstMs) {
|
|
147
151
|
bySerial.set(key, { index, firstMs: issuedMs, secondMs: existing?.firstMs ?? Infinity });
|
|
@@ -151,10 +155,10 @@ function resolveContinued(all) {
|
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
const continued = new Set();
|
|
154
|
-
for (const { alert, issuedMs } of
|
|
158
|
+
for (const { alert, issuedMs } of records) {
|
|
155
159
|
if (alert.continuesSerialNumber === null)
|
|
156
160
|
continue;
|
|
157
|
-
const target = bySerial.get(JSON.stringify([alert.messageCode, alert.continuesSerialNumber]));
|
|
161
|
+
const target = bySerial.get(JSON.stringify([alert.productType, alert.messageCode, alert.continuesSerialNumber]));
|
|
158
162
|
if (target && target.firstMs < issuedMs && target.secondMs >= issuedMs) {
|
|
159
163
|
continued.add(target.index);
|
|
160
164
|
}
|
|
@@ -164,7 +168,8 @@ function resolveContinued(all) {
|
|
|
164
168
|
/**
|
|
165
169
|
* The first reason a record is not in force, or null when it is. A product is in force
|
|
166
170
|
* until something in the feed says otherwise — a stated end that has passed, a
|
|
167
|
-
* cancellation naming it, a superseding Watch, or an explicitly linked continuation
|
|
171
|
+
* cancellation naming it, a superseding Watch, or an explicitly linked continuation or
|
|
172
|
+
* extension.
|
|
168
173
|
*/
|
|
169
174
|
function exclusionReason(alert, index, ctx) {
|
|
170
175
|
const end = endMs(alert);
|
|
@@ -230,19 +235,13 @@ const AlertSchema = z
|
|
|
230
235
|
.describe('One SWPC product.');
|
|
231
236
|
export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
232
237
|
title: 'Get Space Weather Alerts',
|
|
233
|
-
description:
|
|
234
|
-
'NOAA scale and level, issue time, serial number, validity window, and plain text. Covers ' +
|
|
235
|
-
'geomagnetic storms, radio blackouts, and radiation storms. With active_only=false, also ' +
|
|
236
|
-
'returns informational summaries, expired notices, and cancellations. max_age_hours controls ' +
|
|
237
|
-
'how far back to look for candidates (default 48 h) — under active_only=true it does not cut ' +
|
|
238
|
-
'off a product whose validity end is still in the future, and under active_only=false it is a ' +
|
|
239
|
-
'literal age cutoff. The SWPC feed holds roughly the last 30 days of products.',
|
|
238
|
+
description: `Active SWPC alerts, watches, and warnings — parsed into structured records with product type, NOAA scale and level, issue time, serial number, validity window, and plain text. Covers geomagnetic storms, radio blackouts, and radiation storms. With active_only=false, also returns informational summaries, expired notices, and cancellations. max_age_hours controls how far back to look for candidates (default 48 h) — under active_only=true it does not cut off a product whose validity end is still in the future, and under active_only=false it is a literal age cutoff. The SWPC feed holds roughly the last 30 days of products.`,
|
|
240
239
|
annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
|
|
241
240
|
input: z.object({
|
|
242
241
|
active_only: z
|
|
243
242
|
.boolean()
|
|
244
243
|
.default(true)
|
|
245
|
-
.describe('When true (default), return only in-force Warnings, Watches, and Alerts. Excluded: Summaries and unrecognized products; products whose validity end has passed; cancellation notices; products a later cancellation names by serial; all but the newest record carrying the "THIS SUPERSEDES ANY/ALL PRIOR WATCHES IN EFFECT" line; and Alerts replaced by explicitly linked
|
|
244
|
+
.describe('When true (default), return only in-force Warnings, Watches, and Alerts. Excluded: Summaries and unrecognized products; products whose validity end has passed; cancellation notices; products a later cancellation names by serial; all but the newest record carrying the "THIS SUPERSEDES ANY/ALL PRIOR WATCHES IN EFFECT" line; and Alerts and Warnings replaced by an explicitly linked continuation or extension. Counts per reason ride in the exclusions enrichment field. Set false to return every product in the window, cancellations included (flagged by the cancelled field).'),
|
|
246
245
|
max_age_hours: z
|
|
247
246
|
.number()
|
|
248
247
|
.min(1)
|
|
@@ -262,7 +261,7 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
262
261
|
{
|
|
263
262
|
reason: 'feed_unavailable',
|
|
264
263
|
code: JsonRpcErrorCode.ServiceUnavailable,
|
|
265
|
-
when: 'SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.',
|
|
264
|
+
when: 'SWPC feed returns a 5xx other than 501 or a 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.',
|
|
266
265
|
retryable: true,
|
|
267
266
|
thrownBy: 'service',
|
|
268
267
|
recovery: 'Retry in 30–60 seconds; SWPC feeds occasionally lag during high-activity events.',
|
|
@@ -270,7 +269,7 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
270
269
|
{
|
|
271
270
|
reason: 'feed_moved',
|
|
272
271
|
code: JsonRpcErrorCode.ServiceUnavailable,
|
|
273
|
-
when: 'SWPC feed path returns a permanent 4xx (404, 410, 401, 403). Fails in one attempt.',
|
|
272
|
+
when: 'SWPC feed path returns a permanent 4xx (404, 410, 401, 403), a 501, or a redirect the client cannot follow. Fails in one attempt.',
|
|
274
273
|
retryable: false,
|
|
275
274
|
thrownBy: 'service',
|
|
276
275
|
recovery: 'Retrying will not help — the SWPC feed path no longer resolves or no longer has the expected shape; the feed URL needs updating against SWPC current inventory.',
|
|
@@ -289,8 +288,8 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
289
288
|
const cutoffMs = nowMs - input.max_age_hours * 60 * 60 * 1000;
|
|
290
289
|
let filtered;
|
|
291
290
|
if (input.active_only) {
|
|
292
|
-
// A cancellation, supersession, or
|
|
293
|
-
// can still replace a record that passed the lookback or validity check.
|
|
291
|
+
// A cancellation, supersession, continuation, or extension outside the caller's
|
|
292
|
+
// window can still replace a record that passed the lookback or validity check.
|
|
294
293
|
const filterCtx = {
|
|
295
294
|
nowMs,
|
|
296
295
|
cutoffMs,
|
|
@@ -367,7 +366,7 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
367
366
|
superseded: z.number().describe('Replaced by a newer superseding Watch.'),
|
|
368
367
|
continued: z
|
|
369
368
|
.number()
|
|
370
|
-
.describe('Replaced by an explicitly linked later Alert
|
|
369
|
+
.describe('Replaced by an explicitly linked later continuation (Alert) or extension (Warning).'),
|
|
371
370
|
validityElapsed: z.number().describe('Validity end already passed.'),
|
|
372
371
|
})
|
|
373
372
|
.optional()
|
|
@@ -414,9 +413,9 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
414
413
|
const scale = alert.noaaScale
|
|
415
414
|
? ` (${escapeMarkdownInline(alert.noaaScale)})`
|
|
416
415
|
: ' (no NOAA scale)';
|
|
417
|
-
// The serial is what makes the "Cancel Serial Number:"
|
|
418
|
-
// Serial Number:" chains in the body navigable, so
|
|
419
|
-
// that render only content[].
|
|
416
|
+
// The serial is what makes the "Cancel Serial Number:", "Extension to Serial
|
|
417
|
+
// Number:", and "Continuation of Serial Number:" chains in the body navigable, so
|
|
418
|
+
// it rides here for clients that render only content[].
|
|
420
419
|
const serial = escapeMarkdownInline(alert.serialNumber ?? 'not stated');
|
|
421
420
|
lines.push(`**Issued:** ${escapeMarkdownInline(alert.issueDatetime)} | **Level:** ${alert.level}${scale} | **Serial:** ${serial}`);
|
|
422
421
|
if (alert.validFrom)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-alerts.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-alerts.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAG3F;;;;;;;;;;;;;;;GAeG;AACH,MAAM,iBAAiB,GAAG;IACxB,SAAS;IACT,aAAa;IACb,oBAAoB;IACpB,mBAAmB;IACnB,YAAY;IACZ,WAAW;IACX,iBAAiB;CACT,CAAC;AAIX,wFAAwF;AACxF,MAAM,cAAc,GAAkD,IAAI,GAAG,CAAC;IAC5E,SAAS;IACT,OAAO;IACP,OAAO;CACR,CAAC,CAAC;AAEH;;;;;GAKG;AACH,SAAS,KAAK,CAAC,KAAwB;IACrC,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACxC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAS,wBAAwB,CAAC,GAAiC;IACjE,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,KAAK,MAAM,YAAY,IAAI,GAAG,EAAE,CAAC;QAC/B,IAA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AAe,oBAAoB,CAAC,KAAK,CAAC,aAAa,CAAC,iBAAiB,KAAK,CAAC,KAAK,GAAG,KAAK,kBAAkB,MAAM,EAAE,CACvH,CAAC;gBACF,IAAI,KAAK,CAAC,SAAS;oBAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,oBAAoB,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;gBAC5F,IAAI,KAAK,CAAC,OAAO;oBAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBACtF,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACf,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -37,14 +37,14 @@ export declare const getAuroraForecast: import("@cyanheads/mcp-ts-core").ToolDef
|
|
|
37
37
|
}, z.core.$strip>, readonly [{
|
|
38
38
|
readonly reason: "feed_unavailable";
|
|
39
39
|
readonly code: JsonRpcErrorCode.ServiceUnavailable;
|
|
40
|
-
readonly when: "SWPC feed returns 5xx or 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.";
|
|
40
|
+
readonly when: "SWPC feed returns a 5xx other than 501 or a 429, times out, or answers with a body that is not parseable JSON. Retried for up to 45 seconds in total before failing.";
|
|
41
41
|
readonly retryable: true;
|
|
42
42
|
readonly thrownBy: "service";
|
|
43
43
|
readonly recovery: "Retry in 30–60 seconds; SWPC feeds occasionally lag during high-activity events.";
|
|
44
44
|
}, {
|
|
45
45
|
readonly reason: "feed_moved";
|
|
46
46
|
readonly code: JsonRpcErrorCode.ServiceUnavailable;
|
|
47
|
-
readonly when: "SWPC feed path returns a permanent 4xx (404, 410, 401, 403), or a coordinate lookup finds no parseable Forecast Time in the feed. Fails in one attempt.";
|
|
47
|
+
readonly when: "SWPC feed path returns a permanent 4xx (404, 410, 401, 403), a 501, or a redirect the client cannot follow; or a coordinate lookup finds no parseable Forecast Time in the feed. Fails in one attempt.";
|
|
48
48
|
readonly retryable: false;
|
|
49
49
|
readonly recovery: "Retrying will not help — the SWPC feed path no longer resolves or no longer has the expected shape; the feed URL needs updating against SWPC current inventory.";
|
|
50
50
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-aurora-forecast.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-aurora-forecast.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-aurora-forecast.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-aurora-forecast.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2OjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuO5B,CAAC"}
|