@cyanheads/noaa-spaceweather-mcp-server 0.3.3 → 0.4.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 +20 -7
- package/CLAUDE.md +20 -7
- package/Dockerfile +6 -0
- package/README.md +21 -117
- package/changelog/0.4.x/0.4.0.md +28 -0
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-alerts.tool.js +2 -2
- package/dist/mcp-server/tools/definitions/get-alerts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-aurora-forecast.tool.js +1 -1
- package/package.json +7 -6
- package/server.json +3 -3
- package/skills/noaa-spaceweather-guide/SKILL.md +72 -0
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.4.0
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0 (protocol revisions 2026-07-28 and 2025-*)
|
|
8
8
|
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -207,9 +207,18 @@ src/
|
|
|
207
207
|
|
|
208
208
|
## Skills
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
Two skill trees live at the project root, written for different readers:
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
| Tree | For | Written by |
|
|
213
|
+
|:-----|:----|:-----------|
|
|
214
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
215
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
216
|
+
|
|
217
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
218
|
+
|
|
219
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
220
|
+
|
|
221
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
213
222
|
|
|
214
223
|
Available skills:
|
|
215
224
|
|
|
@@ -221,6 +230,7 @@ Available skills:
|
|
|
221
230
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
222
231
|
| `add-resource` | Scaffold a new resource definition |
|
|
223
232
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
233
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
224
234
|
| `add-service` | Scaffold a new service integration |
|
|
225
235
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
226
236
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -268,7 +278,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
268
278
|
| `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
|
|
269
279
|
| `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
|
|
270
280
|
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
271
|
-
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
281
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
|
|
272
282
|
| `bun run list-skills` | Print the skill registry |
|
|
273
283
|
| `bun run tree` | Generate directory structure doc |
|
|
274
284
|
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
@@ -286,7 +296,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
286
296
|
|
|
287
297
|
## Bundling
|
|
288
298
|
|
|
289
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
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.
|
|
290
300
|
|
|
291
301
|
**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": ""`.
|
|
292
302
|
|
|
@@ -353,7 +363,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
353
363
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
354
364
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
355
365
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
366
|
+
- [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
|
|
356
367
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
|
|
357
368
|
- [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
|
|
358
369
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
|
|
370
|
+
- [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
|
|
371
|
+
- [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
|
|
359
372
|
- [ ] `npm run devcheck` passes
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.4.0
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0 (protocol revisions 2026-07-28 and 2025-*)
|
|
8
8
|
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -207,9 +207,18 @@ src/
|
|
|
207
207
|
|
|
208
208
|
## Skills
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
Two skill trees live at the project root, written for different readers:
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
| Tree | For | Written by |
|
|
213
|
+
|:-----|:----|:-----------|
|
|
214
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
215
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
216
|
+
|
|
217
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
218
|
+
|
|
219
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
220
|
+
|
|
221
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
213
222
|
|
|
214
223
|
Available skills:
|
|
215
224
|
|
|
@@ -221,6 +230,7 @@ Available skills:
|
|
|
221
230
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
222
231
|
| `add-resource` | Scaffold a new resource definition |
|
|
223
232
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
233
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
224
234
|
| `add-service` | Scaffold a new service integration |
|
|
225
235
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
226
236
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -268,7 +278,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
268
278
|
| `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
|
|
269
279
|
| `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
|
|
270
280
|
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
271
|
-
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
281
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
|
|
272
282
|
| `bun run list-skills` | Print the skill registry |
|
|
273
283
|
| `bun run tree` | Generate directory structure doc |
|
|
274
284
|
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
@@ -286,7 +296,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
286
296
|
|
|
287
297
|
## Bundling
|
|
288
298
|
|
|
289
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
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.
|
|
290
300
|
|
|
291
301
|
**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": ""`.
|
|
292
302
|
|
|
@@ -353,7 +363,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
353
363
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
354
364
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
355
365
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
366
|
+
- [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
|
|
356
367
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
|
|
357
368
|
- [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
|
|
358
369
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
|
|
370
|
+
- [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
|
|
371
|
+
- [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
|
|
359
372
|
- [ ] `npm run devcheck` passes
|
package/Dockerfile
CHANGED
|
@@ -29,6 +29,11 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
|
29
29
|
# Copy the rest of the source code
|
|
30
30
|
COPY . .
|
|
31
31
|
|
|
32
|
+
# The skills a server publishes (`createApp({ skills: 'skills' })`) are read at
|
|
33
|
+
# runtime from the application root. Created when the project has none, so the
|
|
34
|
+
# production stage's copy below holds with or without one.
|
|
35
|
+
RUN mkdir -p skills
|
|
36
|
+
|
|
32
37
|
# Build the application
|
|
33
38
|
RUN bun run build
|
|
34
39
|
|
|
@@ -136,6 +141,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
|
|
|
136
141
|
|
|
137
142
|
# Copy the compiled application code from the build stage
|
|
138
143
|
COPY --from=build /usr/src/app/dist ./dist
|
|
144
|
+
COPY --from=build /usr/src/app/skills ./skills
|
|
139
145
|
|
|
140
146
|
# Mirror CLI (MirrorService adopters only — Tier 3, opt-in):
|
|
141
147
|
# Copy your mirror lifecycle scripts and emit a runtime tsconfig so Bun resolves
|
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
|
|
|
@@ -63,7 +63,7 @@ Space weather from NOAA's Space Weather Prediction Center: geomagnetic storms, K
|
|
|
63
63
|
|
|
64
64
|
- `latitude`/`longitude` (WGS84) are optional but required together — one alone fails `invalid_coordinates`. Without them the call returns global metadata only: grid point count, global peak probability, and peak region
|
|
65
65
|
- With coordinates, `localLookup` carries the nearest 1°-grid probability, the geomagnetic latitude, the minimum Kp and G level needed there, the sun's elevation and `darkness` state (`day`, `civil_twilight`, `nautical_twilight`, `dark`) at the forecast time, the strongest reading within 1000 km poleward (`horizonMaxPercent`, `horizonMaxLatitude`, `horizonDistanceKm`), and a go/no-go `verdict` — not visible in daylight, whatever the model probability
|
|
66
|
-
- The OVATION model updates every ~5 minutes and forecasts ~30–
|
|
66
|
+
- The OVATION model updates every ~5 minutes and forecasts ~30–90 minutes ahead (the solar wind's travel time from L1 to Earth)
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
@@ -113,137 +113,32 @@ Agent-friendly output:
|
|
|
113
113
|
|
|
114
114
|
## Getting started
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
A public instance is available at `https://noaa-spaceweather.caseyjhand.com/mcp` — no installation required. It serves Streamable HTTP; each client takes its own config shape.
|
|
119
|
-
|
|
120
|
-
For Claude Code:
|
|
116
|
+
Connect to the hosted instance, no install:
|
|
121
117
|
|
|
122
118
|
```sh
|
|
123
119
|
claude mcp add --transport http noaa-spaceweather-mcp-server https://noaa-spaceweather.caseyjhand.com/mcp
|
|
124
120
|
```
|
|
125
121
|
|
|
126
|
-
|
|
122
|
+
Or run it locally:
|
|
127
123
|
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
"mcpServers": {
|
|
131
|
-
"noaa-spaceweather-mcp-server": {
|
|
132
|
-
"type": "streamableHttp",
|
|
133
|
-
"url": "https://noaa-spaceweather.caseyjhand.com/mcp"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
124
|
+
```sh
|
|
125
|
+
claude mcp add noaa-spaceweather-mcp-server -- npx -y @cyanheads/noaa-spaceweather-mcp-server
|
|
137
126
|
```
|
|
138
127
|
|
|
139
|
-
For
|
|
128
|
+
For other clients, add this to the MCP config file:
|
|
140
129
|
|
|
141
130
|
```json
|
|
142
131
|
{
|
|
143
132
|
"mcpServers": {
|
|
144
133
|
"noaa-spaceweather-mcp-server": {
|
|
145
|
-
"url": "https://noaa-spaceweather.caseyjhand.com/mcp"
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Claude Desktop adds remote servers under Settings → Connectors.
|
|
152
|
-
|
|
153
|
-
### Self-Hosted / Local
|
|
154
|
-
|
|
155
|
-
Add the following to your MCP client configuration file.
|
|
156
|
-
|
|
157
|
-
```json
|
|
158
|
-
{
|
|
159
|
-
"mcpServers": {
|
|
160
|
-
"noaa-spaceweather": {
|
|
161
|
-
"type": "stdio",
|
|
162
|
-
"command": "bunx",
|
|
163
|
-
"args": ["@cyanheads/noaa-spaceweather-mcp-server@latest"],
|
|
164
|
-
"env": {
|
|
165
|
-
"MCP_TRANSPORT_TYPE": "stdio",
|
|
166
|
-
"MCP_LOG_LEVEL": "info"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
Or with npx (no Bun required):
|
|
174
|
-
|
|
175
|
-
```json
|
|
176
|
-
{
|
|
177
|
-
"mcpServers": {
|
|
178
|
-
"noaa-spaceweather": {
|
|
179
|
-
"type": "stdio",
|
|
180
134
|
"command": "npx",
|
|
181
|
-
"args": ["-y", "@cyanheads/noaa-spaceweather-mcp-server
|
|
182
|
-
"env": {
|
|
183
|
-
"MCP_TRANSPORT_TYPE": "stdio",
|
|
184
|
-
"MCP_LOG_LEVEL": "info"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Or with Docker:
|
|
192
|
-
|
|
193
|
-
```json
|
|
194
|
-
{
|
|
195
|
-
"mcpServers": {
|
|
196
|
-
"noaa-spaceweather": {
|
|
197
|
-
"type": "stdio",
|
|
198
|
-
"command": "docker",
|
|
199
|
-
"args": [
|
|
200
|
-
"run", "-i", "--rm",
|
|
201
|
-
"-e", "MCP_TRANSPORT_TYPE=stdio",
|
|
202
|
-
"ghcr.io/cyanheads/noaa-spaceweather-mcp-server:latest"
|
|
203
|
-
]
|
|
135
|
+
"args": ["-y", "@cyanheads/noaa-spaceweather-mcp-server"]
|
|
204
136
|
}
|
|
205
137
|
}
|
|
206
138
|
}
|
|
207
139
|
```
|
|
208
140
|
|
|
209
|
-
For
|
|
210
|
-
|
|
211
|
-
```sh
|
|
212
|
-
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
213
|
-
# Server listens at http://localhost:3010/mcp
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### Prerequisites
|
|
217
|
-
|
|
218
|
-
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
219
|
-
- No API keys required — all SWPC feeds are public.
|
|
220
|
-
|
|
221
|
-
### Installation
|
|
222
|
-
|
|
223
|
-
1. **Clone the repository:**
|
|
224
|
-
|
|
225
|
-
```sh
|
|
226
|
-
git clone https://github.com/cyanheads/noaa-spaceweather-mcp-server.git
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
2. **Navigate into the directory:**
|
|
230
|
-
|
|
231
|
-
```sh
|
|
232
|
-
cd noaa-spaceweather-mcp-server
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
3. **Install dependencies:**
|
|
236
|
-
|
|
237
|
-
```sh
|
|
238
|
-
bun install
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
4. **Configure environment:**
|
|
242
|
-
|
|
243
|
-
```sh
|
|
244
|
-
cp .env.example .env
|
|
245
|
-
# edit .env if needed — all defaults work out of the box
|
|
246
|
-
```
|
|
141
|
+
No API key is needed — every SWPC feed is public. For Docker or a source build, see [Running the server](#running-the-server).
|
|
247
142
|
|
|
248
143
|
---
|
|
249
144
|
|
|
@@ -271,6 +166,16 @@ No domain-specific API keys are required. See [`.env.example`](./.env.example) f
|
|
|
271
166
|
|
|
272
167
|
### Local development
|
|
273
168
|
|
|
169
|
+
Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
170
|
+
|
|
171
|
+
- **Clone and install:**
|
|
172
|
+
|
|
173
|
+
```sh
|
|
174
|
+
git clone https://github.com/cyanheads/noaa-spaceweather-mcp-server.git
|
|
175
|
+
cd noaa-spaceweather-mcp-server && bun install
|
|
176
|
+
cp .env.example .env # all defaults work out of the box
|
|
177
|
+
```
|
|
178
|
+
|
|
274
179
|
- **Build and run:**
|
|
275
180
|
|
|
276
181
|
```sh
|
|
@@ -294,11 +199,10 @@ No domain-specific API keys are required. See [`.env.example`](./.env.example) f
|
|
|
294
199
|
### Docker
|
|
295
200
|
|
|
296
201
|
```sh
|
|
297
|
-
docker
|
|
298
|
-
docker run --rm -p 3010:3010 noaa-spaceweather-mcp-server
|
|
202
|
+
docker run --rm -p 3010:3010 ghcr.io/cyanheads/noaa-spaceweather-mcp-server:latest
|
|
299
203
|
```
|
|
300
204
|
|
|
301
|
-
The
|
|
205
|
+
The image defaults to HTTP transport, stateless session mode, and logs to `/var/log/noaa-spaceweather-mcp-server`. To run it over stdio from an MCP client, use `"command": "docker"` with `"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/noaa-spaceweather-mcp-server:latest"]`. To build locally, `docker build -t noaa-spaceweather-mcp-server .`; OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.
|
|
302
206
|
|
|
303
207
|
---
|
|
304
208
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Publishes the noaa-spaceweather-guide Agent Skill as an MCP resource, moves to mcp-ts-core 0.13.18, and corrects the alert-feed retention and aurora lead-time descriptions."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.4.0 — 2026-10-28
|
|
8
|
+
|
|
9
|
+
mcp-ts-core 0.13.17 fixes an HTTP transport leak that retained about 71 KiB per request on 0.13.16; this server's Docker image runs under Bun, where sustained traffic grew memory until restart. 0.13.18 adds serving a root `skills/` tree over MCP and trims build-only files from `.mcpb` bundles.
|
|
10
|
+
|
|
11
|
+
## Added
|
|
12
|
+
|
|
13
|
+
- **`noaa-spaceweather-guide` skill**, served as the MCP resource `skill://noaa-spaceweather-guide/SKILL.md` (Skills extension, `skill://{+path}` template): judgment for turning Kp, storm scales, solar wind, flares, and alerts into answers about aurora visibility, coming storms, radio blackouts, and impacts on HF radio, GPS, satellites, and power grids. The server `instructions` now point to it.
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- **`noaa_spaceweather_get_alerts`**: the description and `max_age_hours` now say the SWPC feed holds roughly the last 30 days of products (they claimed it keeps all records).
|
|
18
|
+
- **`noaa_spaceweather_get_aurora_forecast`**: the description gives SWPC's stated 30–90 min forecast lead (was ~30–60 min).
|
|
19
|
+
- **README install section**: hosted and local one-liners plus a stdio config for other clients; Docker and source-build details moved under Running the server.
|
|
20
|
+
- **Packaging**: root Agent Plugins `plugin.json` and `mcp.json`, a root-anchored `.mcpbignore`, and `skills/` in the Docker image and npm package. The `.mcpb` cleaner strips agent-doc trees only at package roots, so the MCP SDK's runtime `dist/ext/skills/` modules stay in the bundle.
|
|
21
|
+
- **Development tooling**: framework skills (new `add-skill`) and scripts resynced, and `bunfig.toml` `minimumReleaseAge` 3 days → 1 day.
|
|
22
|
+
|
|
23
|
+
## Dependencies
|
|
24
|
+
|
|
25
|
+
- `@cyanheads/mcp-ts-core` ^0.13.16 → ^0.13.18
|
|
26
|
+
- `@biomejs/biome` ^2.6.2 → ^2.6.3 (dev)
|
|
27
|
+
- `ignore` ^7.0.13 → ^7.0.14 (dev)
|
|
28
|
+
- `tsc-alias` ^1.9.8 → ^1.9.9 (dev)
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,8 @@ await createApp({
|
|
|
13
13
|
tools: allToolDefinitions,
|
|
14
14
|
resources: [],
|
|
15
15
|
prompts: [],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'- Use noaa_spaceweather_get_aurora_forecast with coordinates for "can I see the aurora?" queries.\n' +
|
|
19
|
-
'- Use noaa_spaceweather_get_solar_wind for Bz monitoring (southward Bz drives storms).\n' +
|
|
20
|
-
'- Use noaa_spaceweather_get_alerts for active SWPC watches/warnings.\n' +
|
|
21
|
-
'Feeds update frequently (solar wind ~1 min, aurora ~5 min, Kp 3-hour intervals).',
|
|
16
|
+
skills: 'skills',
|
|
17
|
+
instructions: 'NOAA Space Weather Prediction Center data server — all feeds are public and keyless.\n- Start with noaa_spaceweather_get_conditions for a quick status snapshot.\n- Use noaa_spaceweather_get_aurora_forecast with coordinates for "can I see the aurora?" queries.\n- Use noaa_spaceweather_get_solar_wind for Bz monitoring (southward Bz drives storms).\n- Use noaa_spaceweather_get_alerts for active SWPC watches/warnings.\n- The noaa-spaceweather-guide skill (skill://noaa-spaceweather-guide/SKILL.md) carries the gates for aurora timing in local time, geomagnetic latitude, Kp lag, radio-blackout checks, and reading alert products.\nFeeds update frequently (solar wind ~1 min, aurora ~5 min, Kp 3-hour intervals).',
|
|
22
18
|
setup(core) {
|
|
23
19
|
initSpaceWeatherService(core.config, core.storage);
|
|
24
20
|
},
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAE5F,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAE5F,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,QAAQ;IAChB,YAAY,EACV,ysBAAysB;IAC3sB,KAAK,CAAC,IAAI;QACR,uBAAuB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -196,7 +196,7 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
196
196
|
'returns informational summaries, expired notices, and cancellations. max_age_hours controls ' +
|
|
197
197
|
'how far back to look for candidates (default 48 h) — under active_only=true it does not cut ' +
|
|
198
198
|
'off a product whose validity end is still in the future, and under active_only=false it is a ' +
|
|
199
|
-
'literal age cutoff. The SWPC feed
|
|
199
|
+
'literal age cutoff. The SWPC feed holds roughly the last 30 days of products.',
|
|
200
200
|
annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
|
|
201
201
|
input: z.object({
|
|
202
202
|
active_only: z
|
|
@@ -208,7 +208,7 @@ export const getAlerts = tool('noaa_spaceweather_get_alerts', {
|
|
|
208
208
|
.min(1)
|
|
209
209
|
.max(720)
|
|
210
210
|
.default(48)
|
|
211
|
-
.describe('How far back to look for products, in hours (default 48). The SWPC feed
|
|
211
|
+
.describe('How far back to look for products, in hours (default 48). The SWPC feed holds roughly the last 30 days of products, so this bounds the candidate set rather than declaring what is current. Under active_only=true a product whose validity end is still in the future is returned even when its issue time falls outside this window — a multi-day Watch would otherwise disappear while a day it forecasts a storm for is still running. Under active_only=false it is literal and cuts at exactly the requested age.'),
|
|
212
212
|
}),
|
|
213
213
|
output: z.object({
|
|
214
214
|
alerts: z.array(AlertSchema).describe('Matching SWPC products.'),
|
|
@@ -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,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,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AAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -176,7 +176,7 @@ function buildVerdict(opts) {
|
|
|
176
176
|
}
|
|
177
177
|
export const getAuroraForecast = tool('noaa_spaceweather_get_aurora_forecast', {
|
|
178
178
|
title: 'Get Aurora Forecast',
|
|
179
|
-
description: 'OVATION model aurora forecast for the next ~30–
|
|
179
|
+
description: 'OVATION model aurora forecast for the next ~30–90 min: global grid of aurora probability ' +
|
|
180
180
|
'percentages by latitude/longitude (1° resolution). With optional coordinates, returns the local ' +
|
|
181
181
|
'aurora probability at the nearest grid point, the geomagnetic latitude those coordinates convert ' +
|
|
182
182
|
'to, the minimum Kp and G level needed for aurora at that geomagnetic latitude, the sun’s ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/noaa-spaceweather-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"mcpName": "io.github.cyanheads/noaa-spaceweather-mcp-server",
|
|
5
5
|
"description": "Query NOAA SWPC space weather: geomagnetic storm scales, Kp index, aurora forecasts, solar wind, solar activity, and alerts via MCP. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"CLAUDE.md",
|
|
19
19
|
"AGENTS.md",
|
|
20
20
|
"Dockerfile",
|
|
21
|
-
"server.json"
|
|
21
|
+
"server.json",
|
|
22
|
+
"skills/"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "bun run scripts/build.ts",
|
|
@@ -92,19 +93,19 @@
|
|
|
92
93
|
"access": "public"
|
|
93
94
|
},
|
|
94
95
|
"dependencies": {
|
|
95
|
-
"@cyanheads/mcp-ts-core": "^0.13.
|
|
96
|
+
"@cyanheads/mcp-ts-core": "^0.13.18",
|
|
96
97
|
"pino-pretty": "^13.2.0",
|
|
97
98
|
"zod": "^4.6.7"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
|
-
"@biomejs/biome": "^2.6.
|
|
101
|
+
"@biomejs/biome": "^2.6.3",
|
|
101
102
|
"@socketsecurity/bun-security-scanner": "^1.1.3",
|
|
102
103
|
"@types/node": "^26.6.5",
|
|
103
104
|
"@vitest/coverage-istanbul": "^5.0.5",
|
|
104
105
|
"depcheck": "^1.4.7",
|
|
105
|
-
"ignore": "^7.0.
|
|
106
|
+
"ignore": "^7.0.14",
|
|
106
107
|
"markdown-it": "15.0.3",
|
|
107
|
-
"tsc-alias": "^1.9.
|
|
108
|
+
"tsc-alias": "^1.9.9",
|
|
108
109
|
"typescript": "^7.0.2",
|
|
109
110
|
"vitest": "^5.0.5"
|
|
110
111
|
}
|
package/server.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/noaa-spaceweather-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.4.0",
|
|
10
10
|
"remotes": [
|
|
11
11
|
{
|
|
12
12
|
"type": "streamable-http",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
20
20
|
"identifier": "@cyanheads/noaa-spaceweather-mcp-server",
|
|
21
21
|
"runtimeHint": "npx",
|
|
22
|
-
"version": "0.
|
|
22
|
+
"version": "0.4.0",
|
|
23
23
|
"environmentVariables": [
|
|
24
24
|
{
|
|
25
25
|
"name": "MCP_LOG_LEVEL",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
39
39
|
"identifier": "@cyanheads/noaa-spaceweather-mcp-server",
|
|
40
40
|
"runtimeHint": "npx",
|
|
41
|
-
"version": "0.
|
|
41
|
+
"version": "0.4.0",
|
|
42
42
|
"environmentVariables": [
|
|
43
43
|
{
|
|
44
44
|
"name": "MCP_TRANSPORT_TYPE",
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: noaa-spaceweather-guide
|
|
3
|
+
description: Judgment for the noaa_spaceweather_* tools — turning SWPC Kp, storm scales, solar wind, flares, and alerts into answers about aurora visibility tonight, coming geomagnetic storms, radio blackouts, and impacts on HF radio, GPS, satellites, and power grids. Use before answering an aurora or space-weather question with these tools; covers UTC-day vs local-night timing, geomagnetic latitude, data lag, and what the feeds cannot answer.
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: cyanheads
|
|
7
|
+
version: "1.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
11
|
+
|
|
12
|
+
The server reads NOAA SWPC's live public feeds: storm scales, planetary Kp, the OVATION aurora nowcast, L1 solar wind, GOES X-ray and proton flux, flare events, active regions, the forecast discussion, and alert products. Keyless.
|
|
13
|
+
|
|
14
|
+
The feeds reach only a short way back and ahead:
|
|
15
|
+
|
|
16
|
+
| Data | Reaches back | Reaches ahead |
|
|
17
|
+
|:-----|:-------------|:--------------|
|
|
18
|
+
| Kp observed / forecast, storm-scale forecast | 7 days (Kp) | 3 UTC days, starting today |
|
|
19
|
+
| Aurora (OVATION) | now only | 30–90 min, the solar wind's L1-to-Earth travel time (`forecastTime`) |
|
|
20
|
+
| Solar wind | ~24 h | none — it is measured upstream of Earth |
|
|
21
|
+
| Flare events | 7 days | flare-class probabilities, 3 days |
|
|
22
|
+
| Alerts | roughly the last 30 days | Watches list up to 3 UTC days |
|
|
23
|
+
|
|
24
|
+
A storm older than the feed's reach, or "this week" beyond day 3, is out of reach: say so rather than extrapolating. There is no CME arrival model, no TEC or GPS-error product, and no HF absorption map; the forecast discussion and Watch comments are the only statements of cause and arrival.
|
|
25
|
+
|
|
26
|
+
Seeing aurora also needs a clear, dark sky. Cloud cover and moonlight are not here; pair with a weather server for clouds and an astronomy server for the moon.
|
|
27
|
+
|
|
28
|
+
## Identifiers
|
|
29
|
+
|
|
30
|
+
- **Geomagnetic latitude** comes from `noaa_spaceweather_get_aurora_forecast` called with coordinates (`geomagneticLatitude`, `minKpRequired`). Every "aurora to ~N°" figure on the Kp and conditions tools is geomagnetic, and geographic latitude can differ by up to ~9° either way: Seattle (47.6°N) is 53.0° geomagnetic, London (51.5°N) 53.4°, Yakutsk (62.0°N) 53.4°. Never compare a geographic latitude against those figures; look the place up.
|
|
31
|
+
- **Alert serials** link records. A message's `Continuation of Serial Number`, `Cancel Serial Number`, or `Extension to Serial Number` line names another record's `serialNumber` under the same `messageCode`. Records joined by continuation lines are one ongoing event: count and report it once, using the newest record. A serial can repeat: a `CORRECTED` record reuses the serial of the one it replaces, so take the newest by issue time.
|
|
32
|
+
- **Flare source.** Flare events carry no region. A ≥M5 flare's `SUMXM5` summary alert states its disk `Location` (for example N08W50); below M5, use the per-region C/M/X counts on `noaa_spaceweather_get_solar_activity`.
|
|
33
|
+
|
|
34
|
+
## Gates
|
|
35
|
+
|
|
36
|
+
1. **A UTC day is not the user's night.** Scale forecast dates, Watch day lists, and Kp bins are UTC. Convert each Kp bin to the user's local time before saying "tonight" or naming a date. Example: a G1 that SWPC dates to a UTC day, with its storm-level bins at 00:00–06:00 UTC, lands on the previous evening across North America.
|
|
37
|
+
2. **The aurora verdict is a nowcast.** `verdict`, `darkness`, and `auroraPercent` describe `forecastTime`, 30–90 min out. A daytime call returns "Not visible — daylight" even when tonight looks promising. For any later time, use the Kp forecast against the location's `minKpRequired` (gate 3).
|
|
38
|
+
3. **Location threshold first, then the Kp bins.** Get `minKpRequired` for the place, then read the `noaa_spaceweather_get_kp_index` forecast bins that fall in local darkness. A bin below the threshold makes overhead aurora unlikely there, whatever the global storm level. The threshold steps in 5° geomagnetic bands, so a place a degree or two short of the next band's edge is a judgment call: when a K-index or Watch product carries a Potential Impacts block, it names how far equatorward aurora may be seen (G1: the northern tier of the U.S.; G2: "as low as New York to Wisconsin to Washington state"), and `horizonMaxPercent` shows aurora low on the poleward horizon. Report both rather than a flat no.
|
|
39
|
+
4. **Observed Kp lags.** A Kp `timeTag` is the start of a 3-hour bin, and the observed series ends at the last completed bin, so `currentKp` describes a bin that ended up to ~3 h ago. Forecast rows marked `estimated` cover every bin of the current UTC day, later bins included; `predicted` rows cover the days after. For a storm starting now, the faster signals are an active `ALTK0n` or `WARK0n` product and the solar wind.
|
|
40
|
+
5. **Southward Bz needs magnitude and persistence.** Brief southward swings are routine. Example: on one quiet day (Kp never above 2.33), Bz was south for about 45% of the minutes and never below −7 nT. `bzSouthMinutesInWindow` counts scattered minutes, not a continuous run, so judging persistence needs the `mag` series, which `resolution: "summary"` omits. Look for hours of Bz at or below −10 nT with elevated speed before calling a storm likely. SWPC puts the warning a shock seen at L1 gives before it reaches Earth at 15–60 min.
|
|
41
|
+
6. **"Was there a blackout?" reads flare events, not alerts.** R1 (M1–M5) blackouts trigger no alert: `ALTXMF` and `SUMXM5` fire only at M5 (R2). Call `noaa_spaceweather_get_solar_activity` with `flare_hours` reaching back past the time asked about; each event's `rScale` is the level its peak flux implies. Radio blackouts affect only the sunlit hemisphere, centred on the sub-solar point, and their extent tracks the X-ray flux as the flare rises and decays. A flare older than 7 days is gone from the feed.
|
|
42
|
+
7. **An alert's presence is not current state.** An Alert (`ALT*`) records a threshold crossing. In the default in-force view, one with no end time stays listed until its issue time ages out of the look-back window, even after conditions subside. Confirm persistence with current Kp, solar wind, or proton flux. Level 0 on an alert means "no NOAA scale stated", not "harmless".
|
|
43
|
+
8. **Impacts come from SWPC's text.** Most K-index, geomagnetic Watch, and X-ray products carry a "Potential Impacts" block (power grid, spacecraft, HF radio, aurora). Quote it when present rather than writing generic impacts. Not every product has one: `ALTEF3`, `ALTTP2`/`ALTTP4`, `SUM10R`, `WARSUD`, and `SUMSUD` carry none, and G3 K-index products (`ALTK07`/`WARK07`) have been seen without it, while K4 products carry it. Without that text, the NOAA scales map as: G → power grid, satellite drag and orientation, high-latitude HF, satellite navigation at the upper levels, aurora; R → HF radio and low-frequency navigation on the sunlit side; S → polar HF, satellites, and radiation exposure on high-latitude flights.
|
|
44
|
+
|
|
45
|
+
## Core chain — "Can I see the aurora from X tonight?"
|
|
46
|
+
|
|
47
|
+
1. Geocode X to coordinates (another server), then call `noaa_spaceweather_get_aurora_forecast` with them for `geomagneticLatitude`, `minKpRequired`, and, if it is dark there now, the live verdict and horizon reading.
|
|
48
|
+
2. `noaa_spaceweather_get_kp_index`: keep the forecast bins inside the local dark hours (converted from UTC) and compare each to `minKpRequired`.
|
|
49
|
+
3. `noaa_spaceweather_get_alerts`: an in-force `WATA20`/`WATA30` Watch states the predicted G level per UTC day and its cause; its Potential Impacts names how far equatorward aurora may be seen.
|
|
50
|
+
4. Clouds and moon from other servers, then answer with the best local window, the Kp it needs, and the Kp forecast for it.
|
|
51
|
+
|
|
52
|
+
## Workflows
|
|
53
|
+
|
|
54
|
+
**Is a storm coming, and how strong?** `noaa_spaceweather_get_conditions` gives the G forecast per UTC day; the forecaster's cause (CME or coronal-hole stream) and timing come only with `include_discussion`. The in-force Watch carries the same outlook, and the Kp forecast shows which 3-hour bins carry it. Beyond day 3 the answer is "not forecast yet".
|
|
55
|
+
|
|
56
|
+
**Did a flare cause a blackout?** Gate 6. For a flare of M5 or above, `noaa_spaceweather_get_alerts` with `active_only=false` and a look-back reaching the flare returns the `ALTXMF` threshold alert and the `SUMXM5` summary with class, times, disk location, and R level. The default in-force view never shows the summary and drops the threshold alert once it ages out of the look-back window.
|
|
57
|
+
|
|
58
|
+
**What do the solar wind numbers mean?** `noaa_spaceweather_get_solar_wind` for the latest readings and window extremes, with the series when persistence matters (gate 5). Compare with the Kp series: if Bz has been strongly south for hours and Kp has not risen yet, the next bins are the ones to watch.
|
|
59
|
+
|
|
60
|
+
**Active watches and what they mean for HF, GPS, and grids.** `noaa_spaceweather_get_alerts` in its default in-force view. Count each continuation chain once (Identifiers), decode each code with the table below, then quote each product's Potential Impacts (gate 8).
|
|
61
|
+
|
|
62
|
+
**Alert codes** seen in the feed:
|
|
63
|
+
|
|
64
|
+
| Code | Meaning | Scale |
|
|
65
|
+
|:-----|:--------|:------|
|
|
66
|
+
| `WARK04`–`WARK07` / `ALTK04`–`ALTK07` | K-index of 4–7 expected (warning) / reached (alert) | K5 = G1, K6 = G2, K7 = G3; K4 is below the scale |
|
|
67
|
+
| `WATA20` / `WATA30` | Geomagnetic storm watch, G1 / G2 predicted | G, listed by UTC day |
|
|
68
|
+
| `WARSUD` / `SUMSUD` | Shock seen upstream (`Ip Shock` time); sudden impulse expected / observed at Earth | no NOAA scale; marks storm onset |
|
|
69
|
+
| `ALTXMF` / `SUMXM5` | X-ray flux exceeded M5 / event summary | R2 or higher |
|
|
70
|
+
| `ALTTP2` / `ALTTP4` | Type II (with an estimated shock speed) / Type IV solar radio emission | no NOAA scale; whether a CME is Earth-directed is stated only in the forecast discussion or a later Watch |
|
|
71
|
+
| `ALTEF3` | ≥2 MeV electron integral flux exceeded 1,000 pfu | no NOAA scale |
|
|
72
|
+
| `SUM10R` | 10 cm radio burst | no NOAA scale |
|