@cyanheads/noaa-spaceweather-mcp-server 0.4.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.
Files changed (45) hide show
  1. package/AGENTS.md +9 -8
  2. package/CLAUDE.md +9 -8
  3. package/README.md +13 -12
  4. package/changelog/0.5.x/0.5.0.md +28 -0
  5. package/changelog/0.6.x/0.6.0.md +41 -0
  6. package/changelog/template.md +20 -11
  7. package/dist/mcp-server/tools/definitions/get-alerts.tool.d.ts +3 -2
  8. package/dist/mcp-server/tools/definitions/get-alerts.tool.d.ts.map +1 -1
  9. package/dist/mcp-server/tools/definitions/get-alerts.tool.js +69 -36
  10. package/dist/mcp-server/tools/definitions/get-alerts.tool.js.map +1 -1
  11. package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.d.ts +2 -2
  12. package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.d.ts.map +1 -1
  13. package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.js +19 -22
  14. package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/get-conditions.tool.d.ts +28 -26
  16. package/dist/mcp-server/tools/definitions/get-conditions.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-conditions.tool.js +108 -115
  18. package/dist/mcp-server/tools/definitions/get-conditions.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-kp-index.tool.d.ts +8 -5
  20. package/dist/mcp-server/tools/definitions/get-kp-index.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-kp-index.tool.js +64 -42
  22. package/dist/mcp-server/tools/definitions/get-kp-index.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-solar-activity.tool.d.ts +23 -16
  24. package/dist/mcp-server/tools/definitions/get-solar-activity.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-solar-activity.tool.js +151 -64
  26. package/dist/mcp-server/tools/definitions/get-solar-activity.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/get-solar-wind.tool.d.ts +2 -2
  28. package/dist/mcp-server/tools/definitions/get-solar-wind.tool.d.ts.map +1 -1
  29. package/dist/mcp-server/tools/definitions/get-solar-wind.tool.js +5 -28
  30. package/dist/mcp-server/tools/definitions/get-solar-wind.tool.js.map +1 -1
  31. package/dist/mcp-server/tools/definitions/index.d.ts +117 -104
  32. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  33. package/dist/services/space-weather/kp-headline.d.ts +30 -0
  34. package/dist/services/space-weather/kp-headline.d.ts.map +1 -0
  35. package/dist/services/space-weather/kp-headline.js +39 -0
  36. package/dist/services/space-weather/kp-headline.js.map +1 -0
  37. package/dist/services/space-weather/space-weather-service.d.ts +37 -8
  38. package/dist/services/space-weather/space-weather-service.d.ts.map +1 -1
  39. package/dist/services/space-weather/space-weather-service.js +277 -112
  40. package/dist/services/space-weather/space-weather-service.js.map +1 -1
  41. package/dist/services/space-weather/types.d.ts +97 -46
  42. package/dist/services/space-weather/types.d.ts.map +1 -1
  43. package/package.json +9 -9
  44. package/server.json +3 -3
  45. package/skills/noaa-spaceweather-guide/SKILL.md +8 -8
package/AGENTS.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** noaa-spaceweather-mcp-server
4
- **Version:** 0.4.0
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
- **Engines:** Bun ≥1.4.0, Node ≥24.0.0
4
+ **Version:** 0.6.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
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
9
9
 
@@ -50,7 +50,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
50
50
  import { tool, z } from '@cyanheads/mcp-ts-core';
51
51
 
52
52
  export const getConditions = tool('noaa_spaceweather_get_conditions', {
53
- description: 'Current space-weather snapshot: NOAA R/S/G storm scales (today + 3-day forecast), latest Kp index, and a plain-language status summary.',
53
+ description: 'Current space-weather snapshot: NOAA R/S/G storm scales (latest, rolling 24-hour maxima, and 3-day forecast), latest Kp index, and a plain-language status summary.',
54
54
  annotations: { readOnlyHint: true, openWorldHint: true },
55
55
  input: z.object({}),
56
56
  output: z.object({
@@ -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 { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
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/
@@ -296,7 +297,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
296
297
 
297
298
  ## Bundling
298
299
 
299
- `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/` at a package root, and `SKILL.md` — a deeper `skills/`, such as the MCP SDK's `dist/ext/skills/`, is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
300
+ `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package root, and `SKILL.md` anywhere — a deeper `skills/`, such as the MCP SDK's `dist/ext/skills/`, is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
300
301
 
301
302
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
302
303
 
@@ -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 { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
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,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** noaa-spaceweather-mcp-server
4
- **Version:** 0.4.0
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
- **Engines:** Bun ≥1.4.0, Node ≥24.0.0
4
+ **Version:** 0.6.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
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
9
9
 
@@ -50,7 +50,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
50
50
  import { tool, z } from '@cyanheads/mcp-ts-core';
51
51
 
52
52
  export const getConditions = tool('noaa_spaceweather_get_conditions', {
53
- description: 'Current space-weather snapshot: NOAA R/S/G storm scales (today + 3-day forecast), latest Kp index, and a plain-language status summary.',
53
+ description: 'Current space-weather snapshot: NOAA R/S/G storm scales (latest, rolling 24-hour maxima, and 3-day forecast), latest Kp index, and a plain-language status summary.',
54
54
  annotations: { readOnlyHint: true, openWorldHint: true },
55
55
  input: z.object({}),
56
56
  output: z.object({
@@ -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 { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
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/
@@ -296,7 +297,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
296
297
 
297
298
  ## Bundling
298
299
 
299
- `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/` at a package root, and `SKILL.md` — a deeper `skills/`, such as the MCP SDK's `dist/ext/skills/`, is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
300
+ `npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package root, and `SKILL.md` anywhere — a deeper `skills/`, such as the MCP SDK's `dist/ext/skills/`, is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
300
301
 
301
302
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
302
303
 
@@ -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 { McpError, JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
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
- [![Version](https://img.shields.io/badge/Version-0.4.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/noaa-spaceweather-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/noaa-spaceweather-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/noaa-spaceweather-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.6.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/noaa-spaceweather-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/noaa-spaceweather-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/noaa-spaceweather-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -35,7 +35,7 @@ Space weather from NOAA's Space Weather Prediction Center: geomagnetic storms, K
35
35
 
36
36
  | Tool | Description |
37
37
  |:-----|:------------|
38
- | `noaa_spaceweather_get_conditions` | Current space-weather snapshot: NOAA R/S/G storm scales for yesterday, today, and the 3-day forecast, latest Kp, a plain-language status summary, and optionally SWPC's forecast discussion explaining the forecast |
38
+ | `noaa_spaceweather_get_conditions` | Latest R/S/G observations, rolling 24-hour maxima, three-day forecast, latest Kp, and an optional SWPC forecast discussion |
39
39
  | `noaa_spaceweather_get_kp_index` | Planetary K-index (0–9) — recent observed 3-hour values with G-scale equivalents and aurora-latitude guidance, plus 3-day forecast |
40
40
  | `noaa_spaceweather_get_aurora_forecast` | OVATION model aurora forecast: global probability grid, optional local lookup by coordinates with a daylight-aware go/no-go verdict and a poleward horizon reading |
41
41
  | `noaa_spaceweather_get_solar_wind` | Real-time solar wind from the active L1 spacecraft: speed, proton density, temperature, and the critical Bz component with the window's most southward reading — explains why current geomagnetic conditions exist |
@@ -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
- - Returns current Kp with its G-scale equivalent and aurora-latitude guidance, today's observed R/S/G levels, `yesterday` (the previous UTC day's assessed levels, null when the feed carries none), and SWPC's 3-day forecast starting today — forecast R and S carry probabilities rather than levels, and a null level means none was forecast, not level 0
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` reports how many readings matched; 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. 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 `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
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) keeps in-force Warnings/Watches/Alerts, dropping cancelled and superseded products, Summaries, and products whose validity has ended. `max_age_hours` (1–720, default 48) bounds how far back candidates reach — under `active_only` a product whose validity end is still ahead survives it; otherwise it is a literal age cutoff
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
 
@@ -153,7 +154,7 @@ No API key is needed — every SWPC feed is public. For Docker or a source build
153
154
  | `MCP_SESSION_MODE` | HTTP session mode. This project explicitly uses `stateless`; `auto` resolves to `stateful`. | `stateless` |
154
155
  | `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |
155
156
  | `MCP_LOG_LEVEL` | Log level (RFC 5424). | `info` |
156
- | `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |
157
+ | `LOGS_DIR` | Directory for log files (Node.js only). Relative paths resolve from the server package. | `<server-package>/logs` |
157
158
  | `LOG_TOOL_FAILURE_PAYLOADS` | Log each failed tool call's arguments and result, redacted by key name and capped at `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES` (default `16384`). A secret inside a free-form value is not redacted. | `false` |
158
159
  | `STORAGE_PROVIDER_TYPE` | Storage backend. | `in-memory` |
159
160
  | `OTEL_ENABLED` | Enable [OpenTelemetry instrumentation](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
@@ -166,7 +167,7 @@ No domain-specific API keys are required. See [`.env.example`](./.env.example) f
166
167
 
167
168
  ### Local development
168
169
 
169
- Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
170
+ Requires [Bun v1.4.4](https://bun.sh/) or higher (or Node.js v24+).
170
171
 
171
172
  - **Clone and install:**
172
173
 
@@ -0,0 +1,28 @@
1
+ ---
2
+ summary: "Reports unissued NOAA scale levels and resolves continued alerts in the active view."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.0 — 2026-11-21
8
+
9
+ ## Changed
10
+
11
+ - **Development and packaging tooling**: sync framework skills and scripts, exclude the Vitest cache from MCPB bundles, and document the JWT audience and issuer settings.
12
+
13
+ ## Fixed
14
+
15
+ - **Unissued NOAA scale levels** ([#47](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/47)). Breaking output change: clients must accept null for `scale`, `text`, and `label` in `today.G`, `today.R`, `today.S`, and `forecast[].G` when SWPC issues no level. Known values and Kp remain available.
16
+ - **Observed periods** ([#49](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/49)). The existing `today` and `yesterday` keys represent latest observations and rolling 24-hour observed maxima. `yesterday.date` carries SWPC’s reported date stamp.
17
+ - **Continued alerts** ([#50](https://github.com/cyanheads/noaa-spaceweather-mcp-server/issues/50)). Active results exclude predecessors uniquely identified by a newer continuation and count them under `exclusions.continued`. History keeps all records in the requested window.
18
+
19
+ ## Dependencies
20
+
21
+ - `@cyanheads/mcp-ts-core` ^0.13.18 → ^0.13.22
22
+ - Bun minimum >=1.4.0 → >=1.4.4
23
+ - `@biomejs/biome` ^2.6.3 → ^2.6.8 (dev)
24
+ - `@types/node` ^26.6.5 → ^26.6.6 (dev)
25
+ - `@vitest/coverage-istanbul` ^5.0.5 → ^5.1.1 (dev)
26
+ - `ignore` ^7.0.14 → ^7.0.16 (dev)
27
+ - `tsc-alias` ^1.9.9 → ^1.9.10 (dev)
28
+ - `vitest` ^5.0.5 → ^5.1.1 (dev, uses threads on Bun)
@@ -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)
@@ -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` resolves once headers arrive and the deadline was
79
- cleared as the helper returned, so a peer that answered promptly and
80
- then stalled the stream held the request open indefinitely. A 2xx
81
- carrying a body now comes back as a passthrough wrapper that disarms
82
- the deadline when the body closes, errors, or is cancelled; …
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** (#341). A stalled body aborts with
87
- the same `Timeout` error; the returned `Response` is a wrapper, so
88
- identity assertions (`toBe(response)`) no longer hold.
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
@@ -116,14 +118,21 @@ security: false
116
118
  resolves to whatever real item already owns 42, and timeline previews pull
117
119
  in that unrelated item's metadata.
118
120
 
121
+ Outside reporters: when the issue or PR came from outside the project
122
+ (`git-wrapup` step 5 says how to tell), thank its author in the same
123
+ parenthetical, profile linked by full URL for the same reason:
124
+
125
+ ([#38](https://github.com/cyanheads/mcp-ts-core/issues/38), thanks [@octocat](https://github.com/octocat)!)
126
+
119
127
  TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
120
128
  via `gh release create --notes-from-tag`. It is a condensed digest of this
121
129
  entry, never a copy, and its format is owned by the `release-and-publish`
122
130
  skill (step 4, "Create the annotated tag"): a short subject line without the
123
131
  version, flat headline bullets — no Keep-a-Changelog section headers, no
124
- gates line — at most one deps line, issue backlinks, and the changelog link
125
- last. In release-PR mode the `git-wrapup` skill authors those bullets as the
126
- PR body's `## Changes` and the tag copies them.
132
+ gates line — at most one deps line, issue backlinks with any outside-reporter
133
+ thanks, and the changelog link last. In release-PR mode the `git-wrapup`
134
+ skill authors those bullets as the PR body's `## Changes` and the tag copies
135
+ them.
127
136
  -->
128
137
 
129
138
  ## Added
@@ -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.";
@@ -55,6 +55,7 @@ export declare const getAlerts: import("@cyanheads/mcp-ts-core").ToolDefinition<
55
55
  cancellationRecord: z.ZodNumber;
56
56
  cancelledBySerial: z.ZodNumber;
57
57
  superseded: z.ZodNumber;
58
+ continued: z.ZodNumber;
58
59
  validityElapsed: z.ZodNumber;
59
60
  }, z.core.$strip>>;
60
61
  }>;
@@ -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;AAgNjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsOpB,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"}