@cyanheads/astronomy-mcp-server 0.5.0 → 0.5.2

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 (58) hide show
  1. package/AGENTS.md +16 -14
  2. package/CLAUDE.md +16 -14
  3. package/README.md +19 -13
  4. package/changelog/0.5.x/0.5.1.md +35 -0
  5. package/changelog/0.5.x/0.5.2.md +30 -0
  6. package/changelog/template.md +20 -11
  7. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts +4 -2
  8. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts.map +1 -1
  9. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +8 -5
  10. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
  11. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +43 -9
  12. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
  13. package/dist/mcp-server/tools/definitions/find-events.tool.js +134 -23
  14. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +19 -0
  16. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +73 -37
  18. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +27 -8
  20. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +67 -14
  22. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
  24. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +3 -1
  25. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
  26. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +2 -4
  27. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
  28. package/dist/mcp-server/tools/definitions/list-visible.tool.js +15 -14
  29. package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
  30. package/dist/services/ephemeris/ephemeris-service.d.ts +34 -18
  31. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  32. package/dist/services/ephemeris/ephemeris-service.js +221 -126
  33. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  34. package/dist/services/ephemeris/meteor-showers.d.ts +49 -0
  35. package/dist/services/ephemeris/meteor-showers.d.ts.map +1 -0
  36. package/dist/services/ephemeris/meteor-showers.js +122 -0
  37. package/dist/services/ephemeris/meteor-showers.js.map +1 -0
  38. package/dist/services/ephemeris/rise-set-horizon.d.ts +11 -0
  39. package/dist/services/ephemeris/rise-set-horizon.d.ts.map +1 -0
  40. package/dist/services/ephemeris/rise-set-horizon.js +116 -0
  41. package/dist/services/ephemeris/rise-set-horizon.js.map +1 -0
  42. package/dist/services/ephemeris/star-catalog.d.ts +6 -8
  43. package/dist/services/ephemeris/star-catalog.d.ts.map +1 -1
  44. package/dist/services/ephemeris/star-catalog.js +7 -4
  45. package/dist/services/ephemeris/star-catalog.js.map +1 -1
  46. package/dist/services/ephemeris/types.d.ts +50 -4
  47. package/dist/services/ephemeris/types.d.ts.map +1 -1
  48. package/dist/services/ephemeris/types.js +2 -1
  49. package/dist/services/ephemeris/types.js.map +1 -1
  50. package/dist/services/horizons/horizons-service.d.ts +10 -5
  51. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  52. package/dist/services/horizons/horizons-service.js +46 -15
  53. package/dist/services/horizons/horizons-service.js.map +1 -1
  54. package/dist/services/horizons/types.d.ts +16 -3
  55. package/dist/services/horizons/types.d.ts.map +1 -1
  56. package/package.json +10 -9
  57. package/server.json +3 -3
  58. package/skills/astronomy-guide/SKILL.md +16 -8
@@ -1,16 +1,16 @@
1
1
  ---
2
2
  name: astronomy-guide
3
- description: Chain the astronomy_* tools for observing questions — what is up tonight from a place, whether and when a planet can be seen, the next eclipse from a location and how long totality lasts, satellite passes, comet or asteroid positions. Covers anchoring dates to the observer's local night, what each tool means by visible, the Moon's interference, the 1900–2100 span, and the opt-in Horizons and satellite tools.
3
+ description: Chain the astronomy_* tools for observing questions — what is up tonight from a place, whether and when a planet can be seen, the next eclipse from a place and how long totality lasts, meteor showers and whether the Moon washes them out, when a bright star rises or transits, satellite passes, comet or asteroid positions. Covers anchoring dates to the observer's local night, what each tool means by visible, the Moon's interference, the 1900–2100 span, and the opt-in Horizons and satellite tools.
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: cyanheads
7
- version: "1.0"
7
+ version: "1.2"
8
8
  ---
9
9
 
10
10
  ## Scope
11
11
 
12
12
  - In-process and keyless: the Sun, the Moon, Mercury through Neptune, Pluto, and a 32-star bright-star catalog, for 1900–2100.
13
- - Not covered: deep-sky objects (galaxies, nebulae, clusters), meteor showers, cloud cover, light pollution, aurora. Pair with a weather server for cloud cover and a space-weather server for aurora.
13
+ - Not covered: deep-sky objects (galaxies, nebulae, clusters), cloud cover, light pollution, aurora. Pair with a weather server for cloud cover and a space-weather server for aurora.
14
14
  - Two network tools exist only where the deployment enables them: `astronomy_get_ephemeris` (JPL Horizons: asteroids, comets, spacecraft, and major bodies by Horizons ID number) and `astronomy_get_satellite_passes` (CelesTrak element sets).
15
15
 
16
16
  ## Gates
@@ -18,9 +18,10 @@ metadata:
18
18
  - **Check the tool list before promising an extension answer.** When `astronomy_get_ephemeris` or `astronomy_get_satellite_passes` is not listed, it is switched off on this deployment and a call fails with "Tool … not found". Tell the user the question needs that tool; never approximate a comet position or a satellite pass from the core tools.
19
19
  - **Anchor a date to the observer's local day.** A bare date (`2026-10-28`) or a UTC-midnight start resolves to 00:00 UTC, which west of Greenwich is the previous local afternoon, so `astronomy_get_rise_set` returns the previous evening's sunset. Pass local midday of the target date, converted to UTC, as `start`: the first Sun cycle then carries that evening's sunset and dusk and the next morning's dawn. Pass `timezone` and confirm the night from the `*_local` fields.
20
20
  - **Dark starts at astronomical dusk, not sunset.** The dark-sky window runs from astronomical (−18°) dusk to astronomical dawn. In `astronomy_list_visible`, `civil_twilight`, `nautical_twilight`, and `astronomical_twilight` are all brighter than `dark`.
21
- - **`astronomy_list_visible` lists what is above the horizon, not what can be seen.** It returns the Sun in daylight and a planet beside the Sun alike; judge each from `sky_condition` and its `visibility_note` ("daylight, not naked-eye visible", "lost in glare"), never from membership in the list. It never includes Uranus, Neptune, or Pluto, and includes stars only with `include_stars` — ask `astronomy_get_sky_position` for the outer planets.
21
+ - **Read each `visibility_note` before recommending an object.** A negative `min_altitude` can include bodies below the horizon. Even above it, a planet can be lost in daylight or solar glare. Use the note together with `sky_condition`. Set `include_stars` for catalog stars. For Uranus, Neptune, or Pluto, use `astronomy_get_sky_position`.
22
+ - **For sunrise or sunset from a summit**, pass `height_above_horizon` when you know how far the observer stands above the terrain or water forming the horizon. Summit elevation alone gives the observer’s height above sea level. A nearby ridge can obscure the modeled crossing.
22
23
  - **Moon phase does not say whether the Moon is up.** The phase is geocentric. Before calling a night moon-washed or moon-free, get the Moon's rise and set with `astronomy_get_rise_set` over the same night and compare them with the dark window.
23
- - **Outside 1900–2100 every core tool fails `time_out_of_range`.** Where `astronomy_get_ephemeris` is listed, it reaches other dates for a major body by its Horizons ID number — `301` for the Moon, `499` for Mars — returning position, distance, and magnitude (altitude and azimuth with an observer), but no phase name, rise/set, or event search. Without it, the date is out of reach.
24
+ - **Outside 1900–2100 every core tool fails `time_out_of_range`.** Where `astronomy_get_ephemeris` is listed, it reaches other dates for a major body by its Horizons ID number — `301` for the Moon, `499` for Mars — returning position, distance, magnitude, constellation, and angle from the Sun (altitude and azimuth with an observer), but no phase name, rise/set, or event search. Its RA/Dec are J2000 (astrometric ICRF), so they differ from `astronomy_get_sky_position`'s apparent of-date values, by more the further the date is from 2000 — about 4° for Mars in 1700. Without it, the date is out of reach.
24
25
 
25
26
  Magnitude runs backwards: lower is brighter, negative is very bright, and about 6 is the naked-eye limit under a dark sky.
26
27
 
@@ -34,7 +35,8 @@ The `astronomy_stargazing_plan` prompt templates this chain for users.
34
35
  2. `astronomy_get_rise_set` for `sun`, `start` at local midday: sunset, astronomical dusk, and the next astronomical dawn.
35
36
  3. `astronomy_get_moon_phase` for the illuminated fraction, and `astronomy_get_rise_set` for `moon` with `count` 2 — when the Moon is already up at the start, the first cycle holds only its set and the next rise is in the second — for the hours the Moon is up inside the dark window.
36
37
  4. `astronomy_list_visible` at an instant after astronomical dusk, with `include_stars` set and a `min_altitude` of about 10 to drop horizon-grazers. It evaluates one instant; a second call before astronomical dawn finds the objects that rise late.
37
- 5. Cloud cover and transparency from a weather server.
38
+ 5. `astronomy_find_events` with `meteor_shower` at the observer's coordinates, `start` about four weeks before the night: keep the showers whose activity dates cover it (Meteor showers, below).
39
+ 6. Cloud cover and transparency from a weather server.
38
40
 
39
41
  ### Can I see a planet this week?
40
42
 
@@ -44,12 +46,18 @@ The `astronomy_stargazing_plan` prompt templates this chain for users.
44
46
 
45
47
  ### Eclipses
46
48
 
47
- - **From a place**, pass `latitude` and `longitude` to `astronomy_find_events`. `kind`, the times, and the contacts are then what that place sees: an eclipse that is total elsewhere can be partial here. To find the next total eclipse from a place, page through the results and keep those whose `kind` is `total`; a notice that the search reached the end of the supported span before one appears means none through 2100, not never.
49
+ - **From a place**, pass `latitude` and `longitude` to `astronomy_find_events`. `kind`, the times, and the contacts are then what that place sees: an eclipse that is total elsewhere can be partial here. With a `timezone`, the contact times on the local clock are in `contacts_local`. To find the next total eclipse from a place, page through the results and keep those whose `kind` is `total`; a notice that the search reached the end of the supported span before one appears means none through 2100, not never.
48
50
  - **Totality lasts** from `total_begin_utc` to `total_end_utc` in `contacts`; subtract them. For an annular eclipse the same pair bounds the ring phase; for a partial one both are null.
49
51
  - **Where it is total**: the global search (no observer) returns at most the point of greatest eclipse. No tool returns the path of totality, so test a specific place with the local search instead of judging from that point.
50
52
 
53
+ ### Meteor showers
54
+
55
+ - `astronomy_find_events` with `event` `meteor_shower` returns the maxima of nine major annual showers, each with `zhr`, the radiant, activity dates, and the Moon's illuminated fraction; `shower` narrows it to one by IMO code or name. A latitude and longitude together add the radiant's and the Sun's altitude at the maximum, which can fall in daylight.
56
+ - A shower counts when its maximum is at or after `start`, so a search from tonight skips one already past its maximum but still active. To check a night, start about four weeks before it and keep the showers whose `activity_start_date` to `activity_end_date` covers that night, as the `astronomy_stargazing_plan` prompt does.
57
+ - `moon_illuminated_fraction` is geocentric. Moon interference across the night still comes from the Moon's rise and set (`astronomy_get_rise_set` for `moon`) against the dark window.
58
+
51
59
  ### Satellites and small bodies
52
60
 
53
61
  - Tell the user where to look from the visible stretch — `visible_start_utc` to `visible_end_utc` with their altitudes and azimuths — not from rise and set: the satellite can rise in Earth's shadow and only appear partway through the pass.
54
62
  - `start` must fall within 30 days of the current element set's epoch, before or after it — in practice, roughly the past month or the next month from today. Passes from earlier or further ahead fail `time_out_of_range`.
55
- - For "where will this comet be next month", request a `1d` step across the month with observer coordinates for altitude and azimuth, and confirm `target_name` is the object meant. Rows carry RA/Dec but no constellation.
63
+ - For "where will this comet be next month", request a `1d` step across the month with observer coordinates for altitude and azimuth, and confirm `target_name` is the object meant. Each row names its `constellation`, for finding the object on a chart, and carries `sun_elongation_degrees` with `visibility` — how far it sits from the Sun and whether it is a morning or evening object; one close to the Sun stays in twilight.