@cyanheads/astronomy-mcp-server 0.5.1 → 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 (35) hide show
  1. package/AGENTS.md +11 -9
  2. package/CLAUDE.md +11 -9
  3. package/README.md +5 -4
  4. package/changelog/0.5.x/0.5.2.md +30 -0
  5. package/changelog/template.md +10 -8
  6. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +1 -0
  7. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  8. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +47 -32
  9. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  10. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +7 -0
  11. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
  12. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +18 -2
  13. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
  14. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +2 -4
  15. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/list-visible.tool.js +15 -14
  17. package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
  18. package/dist/services/ephemeris/ephemeris-service.d.ts +4 -12
  19. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  20. package/dist/services/ephemeris/ephemeris-service.js +33 -95
  21. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  22. package/dist/services/ephemeris/rise-set-horizon.d.ts +11 -0
  23. package/dist/services/ephemeris/rise-set-horizon.d.ts.map +1 -0
  24. package/dist/services/ephemeris/rise-set-horizon.js +116 -0
  25. package/dist/services/ephemeris/rise-set-horizon.js.map +1 -0
  26. package/dist/services/ephemeris/types.d.ts +4 -0
  27. package/dist/services/ephemeris/types.d.ts.map +1 -1
  28. package/dist/services/horizons/horizons-service.d.ts +2 -1
  29. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  30. package/dist/services/horizons/horizons-service.js +8 -8
  31. package/dist/services/horizons/horizons-service.js.map +1 -1
  32. package/dist/services/horizons/types.d.ts +2 -2
  33. package/package.json +8 -7
  34. package/server.json +3 -3
  35. package/skills/astronomy-guide/SKILL.md +3 -2
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/astronomy-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.5.1",
9
+ "version": "0.5.2",
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/astronomy-mcp-server",
21
21
  "runtimeHint": "npx",
22
- "version": "0.5.1",
22
+ "version": "0.5.2",
23
23
  "environmentVariables": [
24
24
  {
25
25
  "name": "MCP_LOG_LEVEL",
@@ -58,7 +58,7 @@
58
58
  "registryBaseUrl": "https://registry.npmjs.org",
59
59
  "identifier": "@cyanheads/astronomy-mcp-server",
60
60
  "runtimeHint": "npx",
61
- "version": "0.5.1",
61
+ "version": "0.5.2",
62
62
  "environmentVariables": [
63
63
  {
64
64
  "name": "MCP_TRANSPORT_TYPE",
@@ -4,7 +4,7 @@ description: Chain the astronomy_* tools for observing questions — what is up
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: cyanheads
7
- version: "1.1"
7
+ version: "1.2"
8
8
  ---
9
9
 
10
10
  ## Scope
@@ -18,7 +18,8 @@ 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
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