@cyanheads/astronomy-mcp-server 0.5.0 → 0.5.1

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 (49) hide show
  1. package/AGENTS.md +8 -8
  2. package/CLAUDE.md +8 -8
  3. package/README.md +15 -10
  4. package/changelog/0.5.x/0.5.1.md +35 -0
  5. package/changelog/template.md +10 -3
  6. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts +4 -2
  7. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts.map +1 -1
  8. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +8 -5
  9. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
  10. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +43 -9
  11. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
  12. package/dist/mcp-server/tools/definitions/find-events.tool.js +134 -23
  13. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
  14. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +18 -0
  15. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +27 -6
  17. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  18. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +20 -8
  19. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +49 -12
  21. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
  22. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +3 -1
  24. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
  25. package/dist/services/ephemeris/ephemeris-service.d.ts +32 -8
  26. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  27. package/dist/services/ephemeris/ephemeris-service.js +192 -35
  28. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  29. package/dist/services/ephemeris/meteor-showers.d.ts +49 -0
  30. package/dist/services/ephemeris/meteor-showers.d.ts.map +1 -0
  31. package/dist/services/ephemeris/meteor-showers.js +122 -0
  32. package/dist/services/ephemeris/meteor-showers.js.map +1 -0
  33. package/dist/services/ephemeris/star-catalog.d.ts +6 -8
  34. package/dist/services/ephemeris/star-catalog.d.ts.map +1 -1
  35. package/dist/services/ephemeris/star-catalog.js +7 -4
  36. package/dist/services/ephemeris/star-catalog.js.map +1 -1
  37. package/dist/services/ephemeris/types.d.ts +46 -4
  38. package/dist/services/ephemeris/types.d.ts.map +1 -1
  39. package/dist/services/ephemeris/types.js +2 -1
  40. package/dist/services/ephemeris/types.js.map +1 -1
  41. package/dist/services/horizons/horizons-service.d.ts +8 -4
  42. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  43. package/dist/services/horizons/horizons-service.js +38 -7
  44. package/dist/services/horizons/horizons-service.js.map +1 -1
  45. package/dist/services/horizons/types.d.ts +14 -1
  46. package/dist/services/horizons/types.d.ts.map +1 -1
  47. package/package.json +8 -8
  48. package/server.json +3 -3
  49. package/skills/astronomy-guide/SKILL.md +14 -7
package/AGENTS.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.5.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.5.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
6
+ **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
@@ -20,12 +20,12 @@ Observational astronomy, computed in-process. The core is keyless and offline
20
20
  | Tool | What it computes |
21
21
  |:-----|:-----------------|
22
22
  | `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, Sun elongation, constellation |
23
- | `astronomy_get_rise_set` | Rise / set / transit cycles (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
23
+ | `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
24
24
  | `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
25
- | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee |
25
+ | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse (with a `timezone`, contacts also in `contacts_local`), opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee, meteor_shower (nine major showers' maxima from the bundled IMO table; `shower` narrows to one) |
26
26
  | `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above the horizon, ranked, with a sky-condition gate |
27
27
 
28
- Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
28
+ Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, meteor showers, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
29
29
 
30
30
  **Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
31
31
 
@@ -239,7 +239,7 @@ Handlers throw — the framework catches, classifies, and formats.
239
239
 
240
240
  **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.
241
241
 
242
- Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range`, which carries none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`find_events`'s `incomplete_observer` and `body_required`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
242
+ Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range` and the `body_required` `resolveBody()` / `resolvePair()` raise, which carry none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`body_required` on `get_sky_position`, `get_rise_set`, and `find_events`, `find_events`'s `incomplete_observer`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
243
243
 
244
244
  ```ts
245
245
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -403,7 +403,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
403
403
 
404
404
  ## Bundling
405
405
 
406
- `bun 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 such as `/CITATION.cff` and `/.tsbuildinfo` — 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/`, `SKILL.md`), the directory trees matched only at a package root because the MCP SDK loads its own `dist/ext/skills/` at startup ([cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); 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`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
406
+ `bun 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 such as `/CITATION.cff` and `/.tsbuildinfo` — 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's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays: the MCP SDK loads its own `dist/ext/skills/` at startup, [cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); 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`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
407
407
 
408
408
  **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": ""`.
409
409
 
package/CLAUDE.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.5.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.5.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
6
+ **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
@@ -20,12 +20,12 @@ Observational astronomy, computed in-process. The core is keyless and offline
20
20
  | Tool | What it computes |
21
21
  |:-----|:-----------------|
22
22
  | `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, Sun elongation, constellation |
23
- | `astronomy_get_rise_set` | Rise / set / transit cycles (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
23
+ | `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
24
24
  | `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
25
- | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee |
25
+ | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse (with a `timezone`, contacts also in `contacts_local`), opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee, meteor_shower (nine major showers' maxima from the bundled IMO table; `shower` narrows to one) |
26
26
  | `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above the horizon, ranked, with a sky-condition gate |
27
27
 
28
- Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
28
+ Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, meteor showers, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
29
29
 
30
30
  **Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
31
31
 
@@ -239,7 +239,7 @@ Handlers throw — the framework catches, classifies, and formats.
239
239
 
240
240
  **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.
241
241
 
242
- Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range`, which carries none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`find_events`'s `incomplete_observer` and `body_required`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
242
+ Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range` and the `body_required` `resolveBody()` / `resolvePair()` raise, which carry none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`body_required` on `get_sky_position`, `get_rise_set`, and `find_events`, `find_events`'s `incomplete_observer`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
243
243
 
244
244
  ```ts
245
245
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -403,7 +403,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
403
403
 
404
404
  ## Bundling
405
405
 
406
- `bun 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 such as `/CITATION.cff` and `/.tsbuildinfo` — 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/`, `SKILL.md`), the directory trees matched only at a package root because the MCP SDK loads its own `dist/ext/skills/` at startup ([cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); 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`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
406
+ `bun 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 such as `/CITATION.cff` and `/.tsbuildinfo` — 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's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays: the MCP SDK loads its own `dist/ext/skills/` at startup, [cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); 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`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
407
407
 
408
408
  **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": ""`.
409
409
 
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.5.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/astronomy-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/astronomy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/astronomy-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.5.1-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/astronomy-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/astronomy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/astronomy-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
 
@@ -36,9 +36,9 @@ Observational astronomy for any place and time: sky positions, rise/set and twil
36
36
  | Tool | Description |
37
37
  |:---|:---|
38
38
  | `astronomy_get_sky_position` | Apparent position of one body or named star: RA/Dec, alt/az, ecliptic, magnitude, phase, Sun elongation, constellation |
39
- | `astronomy_get_rise_set` | Rise, set, and transit times for a body, plus civil, nautical, and astronomical twilight for the Sun |
39
+ | `astronomy_get_rise_set` | Rise, set, and transit times for a body or named star, plus civil, nautical, and astronomical twilight for the Sun |
40
40
  | `astronomy_get_moon_phase` | Illuminated fraction, phase name, synodic age, and the next four quarter phases |
41
- | `astronomy_find_events` | Next eclipses, equinoxes, solstices, moon quarters, oppositions, conjunctions, greatest elongations, or apsides |
41
+ | `astronomy_find_events` | Next eclipses, equinoxes, solstices, moon quarters, oppositions, conjunctions, greatest elongations, apsides, or meteor-shower maxima |
42
42
  | `astronomy_list_visible` | What's up now: naked-eye bodies (and optional bright stars) above the horizon, ranked, with a sky-condition gate |
43
43
  | `astronomy_get_ephemeris` | Small-body or spacecraft ephemeris from JPL Horizons (opt-in) |
44
44
  | `astronomy_get_satellite_passes` | Visible satellite passes from a CelesTrak element set propagated with SGP4 (opt-in) |
@@ -79,8 +79,9 @@ Design reference: [`docs/design.md`](./docs/design.md).
79
79
 
80
80
  ### `astronomy_get_rise_set` <sub>tool</sub>
81
81
 
82
- - One `body` searched forward from `start` (default now) for the next `count` cycles, default 1; 31 are served per call, and a `count` up to 366 returns the first 31 with a notice naming the `start` and `count` that continue the series
83
- - Each cycle carries `rise_utc`, `set_utc`, `transit_utc`, and `transit_altitude_degrees`; a circumpolar or never-rising body gets `null` rise/set and a `note` instead of an error
82
+ - One `body` or `star` searched forward from `start` (default now) for the next `count` cycles, default 1; 31 are served per call, and a `count` up to 366 returns the first 31 with a notice naming the `start` and `count` that continue the series
83
+ - `star` takes the same catalog names as `astronomy_get_sky_position` and wins over `body`; `body` echoes the catalog name (`Sirius` for `α CMa`), a miss fails as `star_not_found`, and a star gets no twilight
84
+ - Each cycle carries `rise_utc`, `set_utc`, `transit_utc`, and `transit_altitude_degrees`; a circumpolar or never-rising body or star gets `null` rise/set and a `note` instead of an error
84
85
  - For `body: "sun"`, `twilight` holds civil, nautical, and astronomical dusk/dawn pairs for the night after each cycle's day. When the first day begins after `start`, `night_in_progress` holds the preceding night, including polar nights without a sunset; the first cycle otherwise carries its own night. Each pair stays within that night, and times before `start` remain included
85
86
 
86
87
  ---
@@ -94,10 +95,13 @@ Design reference: [`docs/design.md`](./docs/design.md).
94
95
 
95
96
  ### `astronomy_find_events` <sub>tool</sub>
96
97
 
97
- - One `event` (`solar_eclipse`, `lunar_eclipse`, `equinox`, `solstice`, `moon_quarter`, `opposition`, `conjunction`, `max_elongation`, `perigee_apogee`) and the next `count` occurrences, default 1; 20 are served per call, and a `count` up to 200 returns the first 20 with a notice naming the `start` and `count` that continue the series; searches stop at the end of 2100
98
+ - One `event` (`solar_eclipse`, `lunar_eclipse`, `equinox`, `solstice`, `moon_quarter`, `opposition`, `conjunction`, `max_elongation`, `perigee_apogee`, `meteor_shower`) and the next `count` occurrences, default 1; 20 are served per call, and a `count` up to 200 returns the first 20 with a notice naming the `start` and `count` that continue the series; searches stop at the end of 2100
98
99
  - Body-relative events require `body` (`body_required`); a body the event doesn't apply to fails as `body_not_supported`, and `conjunction` with `body2` takes the Moon or a planet different from `body` (`invalid_body_pair` otherwise) and reports `separation_degrees`
99
- - Eclipses take an optional observer (`latitude` and `longitude` together, else `incomplete_observer`) that adds `local_visible` and `contact_altitudes_degrees`
100
- - Eclipses are included when their peak is at or after `start`; their contacts may precede `start`
100
+ - Eclipses and meteor showers take an optional observer (`latitude` and `longitude` together, else `incomplete_observer`); for eclipses it adds `local_visible` and `contact_altitudes_degrees`
101
+ - With a `timezone`, each eclipse also carries `contacts_local`: the `contacts` phases keyed `<phase>_local`, each with the zone offset in force at that contact's own instant, and null where `contacts` is null
102
+ - `meteor_shower` returns the maxima of nine major annual showers (Quadrantids, April Lyrids, η-Aquariids, Southern δ-Aquariids, Perseids, Orionids, Leonids, Geminids, Ursids) with `zhr`, the J2000 radiant, activity dates, and the Moon's geocentric `moon_illuminated_fraction`; an observer adds `radiant_altitude_degrees` and `sun_altitude_degrees` at the maximum. `shower` narrows the search to one by IMO code or name, and a miss fails as `shower_not_found`. Maxima are the calendar's nominal ones, with no outburst predictions
103
+ - Eclipses and meteor showers are included when their peak is at or after `start`; eclipse contacts and shower activity dates may precede `start`
104
+ - Meteor shower table: International Meteor Organization, [2026 Meteor Shower Calendar](https://www.imo.net/files/meteor-shower/cal2026.pdf), ed. Jürgen Rendtel, DOI [10.13140/RG.2.2.36179.08480](https://doi.org/10.13140/RG.2.2.36179.08480)
101
105
 
102
106
  ---
103
107
 
@@ -111,6 +115,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
111
115
  ### `astronomy_get_ephemeris` <sub>tool</sub>
112
116
 
113
117
  - `designation` is passed to Horizons verbatim (`"433;"` for a numbered asteroid, `"DES=1P;CAP"` for a periodic comet, a negative SPK-ID for a spacecraft); `start` defaults to now, `stop` to 24 h later, and `step` to `"1h"` (a count plus `m`, `h`, `d`, `mo`, or `y`); `latitude` and `longitude` together add alt/az
118
+ - Each row carries `ra_hours`/`dec_degrees` as astrometric ICRF (J2000), not the apparent of-date values `astronomy_get_sky_position` returns, plus `distance_au`, `magnitude`, `constellation`, `sun_elongation_degrees`, and `visibility` (`morning`, `evening`, or null); with an observer, the elongation is measured from that place
114
119
  - Up to 200 rows per call; when `truncated` is true the notice names the `start` to resume from. `target_name` is the object Horizons resolved
115
120
  - Fails as `ambiguous_designation`, `observer_is_target`, `body_not_found`, `invalid_step`, `invalid_elevation`, `time_out_of_range`, or `request_rejected`, each naming the input to correct
116
121
  - Registered only when `ASTRONOMY_ENABLE_HORIZONS=true`
@@ -136,7 +141,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
136
141
  ### `astronomy_stargazing_plan` <sub>prompt</sub>
137
142
 
138
143
  - Arguments: `location` required; `date` (`YYYY-MM-DD`) optional, defaults to tonight
139
- - Returns one user message that chains `astronomy_get_rise_set` (sun, then moon), `astronomy_get_moon_phase`, and `astronomy_list_visible` with `include_stars`, plus the geocoding and weather steps this server doesn't cover
144
+ - Returns one user message that chains `astronomy_get_rise_set` (sun, then moon), `astronomy_get_moon_phase`, `astronomy_list_visible` with `include_stars`, and `astronomy_find_events` for `meteor_shower` (searched from four weeks before the night, keeping the showers active that night), plus the geocoding and weather steps this server doesn't cover
140
145
 
141
146
  ## Features
142
147
 
@@ -257,7 +262,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
257
262
 
258
263
  ### Prerequisites
259
264
 
260
- - [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
265
+ - [Bun v1.4.4](https://bun.sh/) or higher (or Node.js v24+).
261
266
  - No API key. The core is offline, and both extensions (JPL Horizons, CelesTrak) are keyless.
262
267
 
263
268
  ### Installation
@@ -0,0 +1,35 @@
1
+ ---
2
+ summary: "Adds meteor-shower maxima to astronomy_find_events, rise/set/transit for catalog stars on astronomy_get_rise_set, observer-local eclipse contact times, and constellation, Sun elongation, and visibility on astronomy_get_ephemeris rows, which now label their RA/Dec as J2000."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.1 — 2026-11-16
8
+
9
+ ## Added
10
+
11
+ - **`meteor_shower` event class on `astronomy_find_events`** ([#71](https://github.com/cyanheads/astronomy-mcp-server/issues/71)): the maxima of nine major annual showers from a bundled IMO table, each with `zhr`, the J2000 radiant, activity dates, and `moon_illuminated_fraction`. A `shower` input narrows the search to one by code or name (`shower_not_found` on a miss), and an observer adds `radiant_altitude_degrees` and `sun_altitude_degrees` at the maximum. The `astronomy_stargazing_plan` prompt gains a step that checks showers around the night.
12
+ - **`star` input on `astronomy_get_rise_set`** ([#70](https://github.com/cyanheads/astronomy-mcp-server/issues/70)): rise, set, and transit for a catalog star, taking the names `astronomy_get_sky_position` accepts (`star_not_found` on a miss). It wins over `body` and returns no twilight.
13
+ - **`contacts_local` on `astronomy_find_events` eclipses** ([#69](https://github.com/cyanheads/astronomy-mcp-server/issues/69)): with a `timezone`, each contact keyed `<phase>_local`, using the zone offset in force at that contact's own instant.
14
+ - **`constellation`, `sun_elongation_degrees`, and `visibility` on each `astronomy_get_ephemeris` row** ([#72](https://github.com/cyanheads/astronomy-mcp-server/issues/72)): elongation is measured from the observer when `latitude` and `longitude` are given, else from Earth's center; `visibility` is `morning`, `evening`, or null.
15
+
16
+ ## Changed
17
+
18
+ - **`astronomy_get_rise_set` with neither `body` nor `star`** now fails with reason `body_required` (was `invalid_arguments`; still -32602).
19
+ - **`astronomy-guide` skill 1.0 → 1.1**: adds meteor-shower guidance, rise/set for stars, and the J2000 note for ephemeris RA/Dec.
20
+
21
+ ## Fixed
22
+
23
+ - **`astronomy_get_ephemeris` RA/Dec frame** ([#68](https://github.com/cyanheads/astronomy-mcp-server/issues/68)): `ra_hours` and `dec_degrees` were unlabeled astrometric ICRF (J2000) values, unlike `astronomy_get_sky_position`'s apparent of-date coordinates. The field descriptions, tool description, and `content[]` header (`RA/Dec astrometric ICRF (J2000)`) now say so; values are unchanged.
24
+ - `astronomy_find_events` `content[]` shows a null eclipse phase as `none` instead of dropping it.
25
+ - A one-row `astronomy_get_ephemeris` header reads `— 1 point`, not `— 1 points`.
26
+
27
+ ## Dependencies
28
+
29
+ - `@cyanheads/mcp-ts-core` ^0.13.18 → ^0.13.22.
30
+ - `satellite.js` ^7.1.0 → ^7.2.0 (keeps the element-set epoch's microseconds: `astronomy_get_satellite_passes` altitudes and azimuths move by at most 0.0003°; pass times are unchanged).
31
+ - `@biomejs/biome` 2.6.3 → 2.6.7 (dev).
32
+ - `@types/node` ^26.6.5 → ^26.6.6 (dev).
33
+ - `tsc-alias` ^1.9.9 → ^1.9.10 (dev).
34
+ - `vitest` ^5.0.5 → ^5.1.0 (dev).
35
+ - `engines.bun` >=1.4.0 → >=1.4.4.
@@ -116,14 +116,21 @@ security: false
116
116
  resolves to whatever real item already owns 42, and timeline previews pull
117
117
  in that unrelated item's metadata.
118
118
 
119
+ Outside reporters: when the issue or PR came from outside the project
120
+ (`git-wrapup` step 5 says how to tell), thank its author in the same
121
+ parenthetical, profile linked by full URL for the same reason:
122
+
123
+ ([#38](https://github.com/cyanheads/mcp-ts-core/issues/38), thanks [@octocat](https://github.com/octocat)!)
124
+
119
125
  TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
120
126
  via `gh release create --notes-from-tag`. It is a condensed digest of this
121
127
  entry, never a copy, and its format is owned by the `release-and-publish`
122
128
  skill (step 4, "Create the annotated tag"): a short subject line without the
123
129
  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.
130
+ gates line — at most one deps line, issue backlinks with any outside-reporter
131
+ thanks, and the changelog link last. In release-PR mode the `git-wrapup`
132
+ skill authors those bullets as the PR body's `## Changes` and the tag copies
133
+ them.
127
134
  -->
128
135
 
129
136
  ## Added
@@ -3,8 +3,10 @@
3
3
  * "plan tonight's stargazing from <place>" workflow, chaining the astronomy tools
4
4
  * in order and prompting for cross-server geocoding and cloud-cover checks. Every step
5
5
  * that picks a time anchors it to the requested date in the observer's resolved IANA
6
- * zone rather than UTC midnight, so a plan cannot drift onto the adjacent local night,
7
- * and the visibility step opts into the bright-star catalog the tool omits by default.
6
+ * zone rather than UTC midnight, so a plan cannot drift onto the adjacent local night;
7
+ * the visibility step opts into the bright-star catalog the tool omits by default, and
8
+ * the meteor-shower step searches from weeks before the night, so a shower that peaked
9
+ * a few nights earlier and is still active is not missed.
8
10
  * @module mcp-server/prompts/definitions/stargazing-plan.prompt
9
11
  */
10
12
  import { z } from '@cyanheads/mcp-ts-core';
@@ -1 +1 @@
1
- {"version":3,"file":"stargazing-plan.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,oBAAoB;;;kBAoC/B,CAAC"}
1
+ {"version":3,"file":"stargazing-plan.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,oBAAoB;;;kBAqC/B,CAAC"}
@@ -3,13 +3,15 @@
3
3
  * "plan tonight's stargazing from <place>" workflow, chaining the astronomy tools
4
4
  * in order and prompting for cross-server geocoding and cloud-cover checks. Every step
5
5
  * that picks a time anchors it to the requested date in the observer's resolved IANA
6
- * zone rather than UTC midnight, so a plan cannot drift onto the adjacent local night,
7
- * and the visibility step opts into the bright-star catalog the tool omits by default.
6
+ * zone rather than UTC midnight, so a plan cannot drift onto the adjacent local night;
7
+ * the visibility step opts into the bright-star catalog the tool omits by default, and
8
+ * the meteor-shower step searches from weeks before the night, so a shower that peaked
9
+ * a few nights earlier and is still active is not missed.
8
10
  * @module mcp-server/prompts/definitions/stargazing-plan.prompt
9
11
  */
10
12
  import { prompt, z } from '@cyanheads/mcp-ts-core';
11
13
  export const stargazingPlanPrompt = prompt('astronomy_stargazing_plan', {
12
- description: 'Structure a "plan tonight\'s stargazing from <place>" workflow: resolve coordinates, find the dark-sky window, check the moon, list what is up, and fold in cloud cover. Emits a message that chains the astronomy tools in order and names the cross-server steps the astronomy server does not cover (geocoding, weather).',
14
+ description: 'Structure a "plan tonight\'s stargazing from <place>" workflow: resolve coordinates, find the dark-sky window, check the moon, list what is up, check for an active meteor shower, and fold in cloud cover. Emits a message that chains the astronomy tools in order and names the cross-server steps the astronomy server does not cover (geocoding, weather).',
13
15
  title: 'astronomy-mcp-server: plan stargazing session',
14
16
  args: z.object({
15
17
  location: z
@@ -37,9 +39,10 @@ export const stargazingPlanPrompt = prompt('astronomy_stargazing_plan', {
37
39
  `3. Call astronomy_get_moon_phase for <date> and note the illuminated fraction — a bright moon washes out faint objects.`,
38
40
  `4. Call astronomy_get_rise_set with body "moon" at those coordinates across the same local <date> night in that timezone, to get moonrise and moonset, then compare them against the dark window from step 2. Phase alone is geocentric and does not say whether the moon is above the observer's horizon; a full moon that has already set does not interfere.`,
39
41
  `5. Call astronomy_list_visible at those coordinates with \`include_stars\` set to true, at a time just after the astronomical dusk found in step 2 on the local <date> night in that timezone, to get the ranked list of what is up. The tool omits the bundled bright-star catalog unless \`include_stars\` is true, so leaving it off returns solar-system bodies only — not the named stars a stargazer is most likely to be asking about.`,
40
- `6. Check cloud cover and transparency for the location and window using a weather tool (e.g. open-meteo or nws). This server computes only the sky geometry, not the weather.`,
42
+ `6. Call astronomy_find_events with event "meteor_shower" at those coordinates in that timezone, with \`start\` four weeks before the local <date> night and \`count\` 5, and keep each shower whose activity_start_date to activity_end_date covers that night. A shower stays active for days to weeks around its maximum, so one that peaked a few nights earlier still counts; a maximum inside the dark window from step 2, with the radiant up (radiant_altitude_degrees), is the best case. moon_illuminated_fraction is geocentric, so judge the moon's interference from the moonrise and moonset of step 4.`,
43
+ `7. Check cloud cover and transparency for the location and window using a weather tool (e.g. open-meteo or nws). This server computes only the sky geometry, not the weather.`,
41
44
  '',
42
- `Then summarize: the best viewing window, the standout objects and where to look (altitude/azimuth), the moon's interference (both its brightness and the hours it is above the horizon), and whether the sky is expected to be clear.`,
45
+ `Then summarize: the best viewing window, the standout objects and where to look (altitude/azimuth), any meteor shower active that night, the moon's interference (both its brightness and the hours it is above the horizon), and whether the sky is expected to be clear.`,
43
46
  ].join('\n');
44
47
  return [{ role: 'user', content: { type: 'text', text } }];
45
48
  },
@@ -1 +1 @@
1
- {"version":3,"file":"stargazing-plan.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,2BAA2B,EAAE;IACtE,WAAW,EACT,8TAA8T;IAChU,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,CAAC,oEAAoE,CAAC;QACjF,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,4EAA4E,CAAC;KAC1F,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC;QACzC,MAAM,IAAI,GAAG;YACX,yCAAyC;YACzC,EAAE;YACF,iNAAiN;YACjN,EAAE;YACF,aAAa,IAAI,CAAC,QAAQ,aAAa;YACvC,SAAS,SAAS,SAAS;YAC3B,EAAE;YACF,uEAAuE;YACvE,EAAE;YACF,sbAAsb;YACtb,+pBAA+pB;YAC/pB,yHAAyH;YACzH,iWAAiW;YACjW,+aAA+a;YAC/a,+KAA+K;YAC/K,EAAE;YACF,uOAAuO;SACxO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"stargazing-plan.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,2BAA2B,EAAE;IACtE,WAAW,EACT,iWAAiW;IACnW,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,CAAC,oEAAoE,CAAC;QACjF,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,4EAA4E,CAAC;KAC1F,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC;QACzC,MAAM,IAAI,GAAG;YACX,yCAAyC;YACzC,EAAE;YACF,iNAAiN;YACjN,EAAE;YACF,aAAa,IAAI,CAAC,QAAQ,aAAa;YACvC,SAAS,SAAS,SAAS;YAC3B,EAAE;YACF,uEAAuE;YACvE,EAAE;YACF,sbAAsb;YACtb,+pBAA+pB;YAC/pB,yHAAyH;YACzH,iWAAiW;YACjW,+aAA+a;YAC/a,slBAAslB;YACtlB,+KAA+K;YAC/K,EAAE;YACF,4QAA4Q;SAC7Q,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
@@ -1,14 +1,16 @@
1
1
  /**
2
- * @fileoverview astronomy_find_events — consolidated forward search for nine event
2
+ * @fileoverview astronomy_find_events — consolidated forward search for ten event
3
3
  * classes under one `event` enum. Both eclipse classes take an optional observer:
4
4
  * solar eclipses are global without one and local with one, and lunar eclipses gain
5
- * the Moon's altitude at each contact. Every other class is geocentric; `body2` turns a
6
- * conjunction with the Sun into one of two bodies. Every search stops at the end of the
7
- * supported span, with a notice when that cuts a list short, and serves at most
8
- * `EVENTS_PER_CALL` events per call with a notice naming the `start` and `count` that
9
- * continue.
5
+ * the Moon's altitude at each contact. meteor_shower returns the maxima of the nine
6
+ * major showers in the bundled IMO table, and an observer adds the radiant's and the
7
+ * Sun's altitude at each. Every other class is geocentric; `body2` turns a conjunction
8
+ * with the Sun into one of two bodies. Every search stops at the end of the supported
9
+ * span, with a notice when that cuts a list short, and serves at most `EVENTS_PER_CALL`
10
+ * events per call with a notice naming the `start` and `count` that continue.
10
11
  * Validation gates fail fast when an event needs a body that was not supplied, when an
11
- * eclipse observer is half-specified, or when the body has no such event.
12
+ * observer is half-specified on a class that takes one, or when the body has no such
13
+ * event.
12
14
  * @module mcp-server/tools/definitions/find-events.tool
13
15
  */
14
16
  import { z } from '@cyanheads/mcp-ts-core';
@@ -20,6 +22,7 @@ export declare const FindEventsOutput: z.ZodObject<{
20
22
  equinox: "equinox";
21
23
  lunar_eclipse: "lunar_eclipse";
22
24
  max_elongation: "max_elongation";
25
+ meteor_shower: "meteor_shower";
23
26
  moon_quarter: "moon_quarter";
24
27
  opposition: "opposition";
25
28
  perigee_apogee: "perigee_apogee";
@@ -33,6 +36,7 @@ export declare const FindEventsOutput: z.ZodObject<{
33
36
  local_visible: z.ZodOptional<z.ZodBoolean>;
34
37
  contact_altitudes_degrees: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
35
38
  contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
39
+ contacts_local: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
36
40
  peak_latitude_degrees: z.ZodOptional<z.ZodNumber>;
37
41
  peak_longitude_degrees: z.ZodOptional<z.ZodNumber>;
38
42
  which: z.ZodOptional<z.ZodEnum<{
@@ -67,6 +71,16 @@ export declare const FindEventsOutput: z.ZodObject<{
67
71
  }>>;
68
72
  distance_km: z.ZodOptional<z.ZodNumber>;
69
73
  distance_au: z.ZodOptional<z.ZodNumber>;
74
+ shower: z.ZodOptional<z.ZodString>;
75
+ shower_code: z.ZodOptional<z.ZodString>;
76
+ zhr: z.ZodOptional<z.ZodNumber>;
77
+ radiant_ra_hours: z.ZodOptional<z.ZodNumber>;
78
+ radiant_dec_degrees: z.ZodOptional<z.ZodNumber>;
79
+ activity_start_date: z.ZodOptional<z.ZodString>;
80
+ activity_end_date: z.ZodOptional<z.ZodString>;
81
+ moon_illuminated_fraction: z.ZodOptional<z.ZodNumber>;
82
+ radiant_altitude_degrees: z.ZodOptional<z.ZodNumber>;
83
+ sun_altitude_degrees: z.ZodOptional<z.ZodNumber>;
70
84
  }, z.core.$strip>>;
71
85
  }, z.core.$strip>;
72
86
  export type FindEventsOutputType = z.infer<typeof FindEventsOutput>;
@@ -76,6 +90,7 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
76
90
  equinox: "equinox";
77
91
  lunar_eclipse: "lunar_eclipse";
78
92
  max_elongation: "max_elongation";
93
+ meteor_shower: "meteor_shower";
79
94
  moon_quarter: "moon_quarter";
80
95
  opposition: "opposition";
81
96
  perigee_apogee: "perigee_apogee";
@@ -108,6 +123,7 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
108
123
  uranus: "uranus";
109
124
  venus: "venus";
110
125
  }>>;
126
+ shower: z.ZodOptional<z.ZodString>;
111
127
  latitude: z.ZodOptional<z.ZodNumber>;
112
128
  longitude: z.ZodOptional<z.ZodNumber>;
113
129
  elevation: z.ZodDefault<z.ZodNumber>;
@@ -119,6 +135,7 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
119
135
  equinox: "equinox";
120
136
  lunar_eclipse: "lunar_eclipse";
121
137
  max_elongation: "max_elongation";
138
+ meteor_shower: "meteor_shower";
122
139
  moon_quarter: "moon_quarter";
123
140
  opposition: "opposition";
124
141
  perigee_apogee: "perigee_apogee";
@@ -132,6 +149,7 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
132
149
  local_visible: z.ZodOptional<z.ZodBoolean>;
133
150
  contact_altitudes_degrees: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
134
151
  contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
152
+ contacts_local: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
135
153
  peak_latitude_degrees: z.ZodOptional<z.ZodNumber>;
136
154
  peak_longitude_degrees: z.ZodOptional<z.ZodNumber>;
137
155
  which: z.ZodOptional<z.ZodEnum<{
@@ -166,12 +184,28 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
166
184
  }>>;
167
185
  distance_km: z.ZodOptional<z.ZodNumber>;
168
186
  distance_au: z.ZodOptional<z.ZodNumber>;
187
+ shower: z.ZodOptional<z.ZodString>;
188
+ shower_code: z.ZodOptional<z.ZodString>;
189
+ zhr: z.ZodOptional<z.ZodNumber>;
190
+ radiant_ra_hours: z.ZodOptional<z.ZodNumber>;
191
+ radiant_dec_degrees: z.ZodOptional<z.ZodNumber>;
192
+ activity_start_date: z.ZodOptional<z.ZodString>;
193
+ activity_end_date: z.ZodOptional<z.ZodString>;
194
+ moon_illuminated_fraction: z.ZodOptional<z.ZodNumber>;
195
+ radiant_altitude_degrees: z.ZodOptional<z.ZodNumber>;
196
+ sun_altitude_degrees: z.ZodOptional<z.ZodNumber>;
169
197
  }, z.core.$strip>>;
170
198
  }, z.core.$strip>, readonly [{
171
199
  readonly reason: "incomplete_observer";
172
200
  readonly code: JsonRpcErrorCode.InvalidParams;
173
- readonly when: "A solar_eclipse or lunar_eclipse was requested with only one of latitude and longitude.";
174
- readonly recovery: "Supply latitude and longitude together for local eclipse circumstances, or omit both for global ones.";
201
+ readonly when: "A solar_eclipse, lunar_eclipse, or meteor_shower was requested with only one of latitude and longitude.";
202
+ readonly recovery: "Supply latitude and longitude together for local circumstances, or omit both to search without an observer.";
203
+ }, {
204
+ readonly reason: "shower_not_found";
205
+ readonly code: JsonRpcErrorCode.NotFound;
206
+ readonly when: "The `shower` value names none of the nine showers in the bundled table.";
207
+ readonly recovery: "Pick a shower from the table this error lists, by its IMO code or name (e.g. \"GEM\", \"Geminids\", \"eta Aquariids\"). A shower outside the table cannot be searched.";
208
+ readonly thrownBy: "service";
175
209
  }, {
176
210
  readonly reason: "body_required";
177
211
  readonly code: JsonRpcErrorCode.InvalidParams;
@@ -1 +1 @@
1
- {"version":3,"file":"find-events.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2CjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0H3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgSzB,CAAC"}
1
+ {"version":3,"file":"find-events.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkDjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8L3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0VzB,CAAC"}