@cyanheads/astronomy-mcp-server 0.3.0 → 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 +4 -4
- package/CLAUDE.md +4 -4
- package/README.md +17 -10
- package/changelog/0.3.x/0.3.1.md +19 -0
- package/changelog/0.4.x/0.4.0.md +18 -0
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +8 -0
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +25 -5
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts +3 -3
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +6 -6
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +9 -9
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts +4 -2
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +10 -4
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.js +4 -2
- package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.d.ts +7 -1
- package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.js +75 -22
- package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
- package/dist/services/ephemeris/star-catalog.d.ts +13 -0
- package/dist/services/ephemeris/star-catalog.d.ts.map +1 -1
- package/dist/services/ephemeris/star-catalog.js +60 -0
- package/dist/services/ephemeris/star-catalog.js.map +1 -1
- package/dist/services/ephemeris/types.d.ts +7 -1
- package/dist/services/ephemeris/types.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts +2 -2
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +46 -6
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/horizons/types.d.ts +7 -0
- package/dist/services/horizons/types.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.d.ts +7 -4
- package/dist/services/satellite/satellite-service.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.js +37 -5
- package/dist/services/satellite/satellite-service.js.map +1 -1
- package/package.json +1 -1
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
4
|
+
**Version:** 0.4.0
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
@@ -19,9 +19,9 @@ Observational astronomy, computed in-process. The core is keyless and offline
|
|
|
19
19
|
|
|
20
20
|
| Tool | What it computes |
|
|
21
21
|
|:-----|:-----------------|
|
|
22
|
-
| `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, constellation |
|
|
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
23
|
| `astronomy_get_rise_set` | Rise / set / transit cycles, plus twilight bands for the Sun; circumpolar / never-rises notes |
|
|
24
|
-
| `astronomy_get_moon_phase` | Phase
|
|
24
|
+
| `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
|
|
25
25
|
| `astronomy_find_events` | Next N of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction, max_elongation, perigee_apogee |
|
|
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
|
|
|
@@ -61,7 +61,7 @@ import { getEphemerisService } from '@/services/ephemeris/ephemeris-service.js';
|
|
|
61
61
|
export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
62
62
|
title: 'astronomy-mcp-server: get moon phase',
|
|
63
63
|
description:
|
|
64
|
-
'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age, phase
|
|
64
|
+
'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age, phase longitude, and the next four quarter phases.',
|
|
65
65
|
annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
|
|
66
66
|
input: z.object({
|
|
67
67
|
time: z.string().optional().describe('Instant to evaluate as an ISO 8601 UTC string. Defaults to now.'),
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
4
|
+
**Version:** 0.4.0
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
@@ -19,9 +19,9 @@ Observational astronomy, computed in-process. The core is keyless and offline
|
|
|
19
19
|
|
|
20
20
|
| Tool | What it computes |
|
|
21
21
|
|:-----|:-----------------|
|
|
22
|
-
| `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, constellation |
|
|
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
23
|
| `astronomy_get_rise_set` | Rise / set / transit cycles, plus twilight bands for the Sun; circumpolar / never-rises notes |
|
|
24
|
-
| `astronomy_get_moon_phase` | Phase
|
|
24
|
+
| `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
|
|
25
25
|
| `astronomy_find_events` | Next N of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction, max_elongation, perigee_apogee |
|
|
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
|
|
|
@@ -61,7 +61,7 @@ import { getEphemerisService } from '@/services/ephemeris/ephemeris-service.js';
|
|
|
61
61
|
export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
62
62
|
title: 'astronomy-mcp-server: get moon phase',
|
|
63
63
|
description:
|
|
64
|
-
'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age, phase
|
|
64
|
+
'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age, phase longitude, and the next four quarter phases.',
|
|
65
65
|
annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
|
|
66
66
|
input: z.object({
|
|
67
67
|
time: z.string().optional().describe('Instant to evaluate as an ISO 8601 UTC string. Defaults to now.'),
|
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/astronomy-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/astronomy-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -35,9 +35,9 @@ Observational astronomy computed in-process from [`astronomy-engine`](https://gi
|
|
|
35
35
|
|
|
36
36
|
| Tool | Description |
|
|
37
37
|
|:---|:---|
|
|
38
|
-
| `astronomy_get_sky_position` | Apparent position of one body or named star for an observer and instant — equatorial (RA/Dec), horizontal (alt/az), ecliptic, plus distance, magnitude, angular diameter, phase, and constellation. |
|
|
38
|
+
| `astronomy_get_sky_position` | Apparent position of one body or named star for an observer and instant — equatorial (RA/Dec), horizontal (alt/az), ecliptic, plus distance, magnitude, angular diameter, phase, angular distance from the Sun, and constellation. |
|
|
39
39
|
| `astronomy_get_rise_set` | Rise, set, and culmination times for a body at a location, with maximum altitude at transit. For the Sun, also the three twilight pairs (civil/nautical/astronomical). |
|
|
40
|
-
| `astronomy_get_moon_phase` | Moon phase for an instant: illuminated fraction, phase name, synodic age, phase
|
|
40
|
+
| `astronomy_get_moon_phase` | Moon phase for an instant: illuminated fraction, phase name, synodic age, phase longitude, and the next four quarter phases with timestamps. |
|
|
41
41
|
| `astronomy_find_events` | Forward search for the next occurrences of one sky-event class: eclipses, equinoxes, solstices, moon quarters, oppositions, conjunctions, greatest elongations, and apsides. |
|
|
42
42
|
| `astronomy_list_visible` | The one-call "what's up right now" answer: every naked-eye body (and optional bright stars) above the horizon, ranked, annotated, and gated by the Sun's altitude into daylight/twilight/dark. |
|
|
43
43
|
| `astronomy_get_ephemeris` | *(gated extension)* Time-series ephemeris for a small body (asteroid/comet) or spacecraft via JPL Horizons — covers what the in-process major-body set cannot. Off by default. |
|
|
@@ -64,7 +64,8 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
64
64
|
### `astronomy_get_sky_position` <sub>tool</sub>
|
|
65
65
|
|
|
66
66
|
- Target one solar-system body (`body`) or a named bright star (`star`, takes precedence over `body`) — one of the two is required
|
|
67
|
-
-
|
|
67
|
+
- `star` draws on a bundled 32-star catalog (about 30 of the brightest stars plus Polaris) by common name or Bayer designation, with the Greek letter spelled out or as a symbol and the constellation as genitive or IAU abbreviation — `Alpha Canis Majoris`, `Alpha CMa`, and `α CMa` all resolve to Sirius; a miss lists every catalog star
|
|
68
|
+
- Returns equatorial (RA/Dec), refraction-corrected horizontal (alt/az), and ecliptic coordinates plus distance, magnitude, angular diameter, phase angle, illuminated fraction, `sun_elongation_degrees` (angular distance from the Sun), and constellation in one call
|
|
68
69
|
- For a solar-system body, also inlines its `astronomy://body/{body}` reference card (type, mean radius, naked-eye visibility) — absent for a star, which has no card
|
|
69
70
|
- `magnitude`, `angular_diameter_arcsec`, `phase_angle_degrees`, and `illuminated_fraction` are `null`, never fabricated, where the engine can't compute them
|
|
70
71
|
- Default elevation 0 m, default time now; pass `timezone` for observer-local output alongside UTC
|
|
@@ -74,7 +75,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
74
75
|
### `astronomy_get_rise_set` <sub>tool</sub>
|
|
75
76
|
|
|
76
77
|
- Searches forward from `start` (default now) and returns the next `count` cycles — default 1, max 31
|
|
77
|
-
- For `body: "sun"`, each cycle also carries the three twilight pairs (civil −6°, nautical −12°, astronomical −18°)
|
|
78
|
+
- For `body: "sun"`, each cycle also carries the three twilight pairs (civil −6°, nautical −12°, astronomical −18°), each covering the night after that cycle's set: `dusk` that evening, `dawn` the following morning — so the dawn listed beside a sunrise is the next day's, and the dawn before it is in the previous cycle
|
|
78
79
|
- Circumpolar or never-rises situations return `null` rise/set fields with an explanatory `note`, not an error
|
|
79
80
|
- When the body is already up at `start`, that cycle's `rise` is `null` (it precedes the search) so a `set` is never reported earlier than its paired `rise`
|
|
80
81
|
- Default elevation 0 m; pass `timezone` for observer-local times alongside UTC
|
|
@@ -84,7 +85,8 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
84
85
|
### `astronomy_get_moon_phase` <sub>tool</sub>
|
|
85
86
|
|
|
86
87
|
- Geocentric — no observer location needed
|
|
87
|
-
- Returns illuminated fraction, phase
|
|
88
|
+
- Returns illuminated fraction, phase name, synodic age in days, and the next four quarter phases (new/first/full/last) in one call
|
|
89
|
+
- `phase_longitude_degrees` is the Moon–Sun ecliptic-longitude difference (0 new, 90 first quarter, 180 full, 270 last quarter) — not the Sun–body–observer `phase_angle_degrees` of `astronomy_get_sky_position`, which reads 0 at full moon
|
|
88
90
|
- `time` defaults to now; pass `timezone` for observer-local timestamps alongside UTC
|
|
89
91
|
|
|
90
92
|
---
|
|
@@ -106,7 +108,8 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
106
108
|
### `astronomy_list_visible` <sub>tool</sub>
|
|
107
109
|
|
|
108
110
|
- One call for every naked-eye solar-system body (plus, with `include_stars`, the bundled bright stars) above the horizon, ranked brightest-and-highest first
|
|
109
|
-
- Each body carries a deterministic `visibility_note` computed from real magnitude and altitude
|
|
111
|
+
- Each body carries a deterministic `visibility_note` computed from real magnitude and altitude, plus its `sun_elongation_degrees`
|
|
112
|
+
- The note states when conditions hide or dim a body — daylight, civil twilight, or within 15° of the Sun (lost in glare); the Sun, the Moon, and a negative-magnitude Venus take no daylight or twilight caveat
|
|
110
113
|
- Returns the whole-sky `sky_condition` (`daylight` / `civil_twilight` / `nautical_twilight` / `astronomical_twilight` / `dark`) and the Sun's altitude alongside the list
|
|
111
114
|
- `time` is a single evaluation instant, not a window; `min_altitude` (default 0) filters out bodies grazing the horizon
|
|
112
115
|
- Default elevation 0 m; pass `timezone` for observer-local times per body
|
|
@@ -117,7 +120,9 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
117
120
|
|
|
118
121
|
- Registered only when `ASTRONOMY_ENABLE_HORIZONS` is set; off by default
|
|
119
122
|
- Time-series ephemeris for a small body or spacecraft via JPL Horizons — RA/Dec, distance, magnitude, and optional alt/az when observer `latitude`/`longitude` are both supplied (one alone is rejected)
|
|
120
|
-
- `designation`
|
|
123
|
+
- `designation` should resolve to a single Horizons record: numbered asteroid as `"433;"`, periodic comet as `"DES=1P;CAP"`, spacecraft as a negative SPK-ID — a bare name matching nothing or several records is rejected, and one matching a single object can land on the wrong one (`"Eros"` resolves to Kerberos), so the result carries `target_name`, the object Horizons resolved
|
|
124
|
+
- `start`/`stop` accept a `Z` or numeric UTC offset (a value with neither is read as UTC); Horizons receives the resolved UTC instant
|
|
125
|
+
- No 1900–2100 limit applies, but a span outside the target's own Horizons data is rejected as `time_out_of_range`, and the message gives the bound Horizons reports (e.g. Mars ends after A.D. 2599-DEC-31); an unknown designation is `body_not_found`
|
|
121
126
|
- `step` is a count plus unit (`m`/`h`/`d`/`mo`/`y`, e.g. `"1h"`); `stop` must be after `start` (defaults to a 24h span from now)
|
|
122
127
|
- Truncates inline at 200 rows; the truncation notice names the exact `start` to resume from, one step past the last row returned
|
|
123
128
|
|
|
@@ -126,8 +131,10 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
126
131
|
### `astronomy_get_satellite_passes` <sub>tool</sub>
|
|
127
132
|
|
|
128
133
|
- Registered only when `ASTRONOMY_ENABLE_SATELLITES` is set; off by default
|
|
129
|
-
- Identify the satellite by exactly one of `norad_id` or `name`
|
|
134
|
+
- Identify the satellite by exactly one of `norad_id` or `name` — both or neither is rejected
|
|
135
|
+
- `name` resolves the common names ISS / International Space Station (25544), Hubble / Hubble Space Telescope / HST (20580), and Tiangong / CSS / Chinese Space Station (48274) directly; any other name is a case-insensitive substring match against CelesTrak's catalog
|
|
130
136
|
- Fetches the current GP element set from CelesTrak and propagates it with SGP4 in-process; only naked-eye-plausible passes (sunlit at peak, observer sky dark) are returned
|
|
137
|
+
- A pass must rise inside the window: one already up at `start` is omitted, one still up when the window ends is reported through its set
|
|
131
138
|
- `start` must be within about a month of the element set's epoch — older elements no longer describe the orbit, and an element set that won't propagate inside that window is rejected as a reentry
|
|
132
139
|
- Searches the next `days` ahead, default 7, max 10; pass `timezone` for observer-local pass times
|
|
133
140
|
|
|
@@ -163,7 +170,7 @@ Astronomy-specific:
|
|
|
163
170
|
Agent-friendly output:
|
|
164
171
|
|
|
165
172
|
- Preserves uncertainty — magnitude, angular diameter, phase, and illuminated fraction are `null` (never fabricated or zeroed) where the engine can't compute them, and `format()` renders "unavailable" rather than inventing a value
|
|
166
|
-
- Deterministic visibility notes — `astronomy_list_visible`'s plain-language headline is computed from real magnitude and
|
|
173
|
+
- Deterministic visibility notes — `astronomy_list_visible`'s plain-language headline is computed from real magnitude, altitude, sky condition, and distance from the Sun, never a synthetic confidence score
|
|
167
174
|
- Typed error contracts with recovery hints — out-of-range time, missing observer/body, unresolved designation — so callers can correct and retry
|
|
168
175
|
- Rounded-plus-exact dual values — `format()` pairs a rounded display figure with its exact counterpart in brackets (e.g. `RA 4.4116 h [4.411597993526305]`), dropped only when the rounding already round-trips, so a `content[]`-only client never needs a second call to recover full precision
|
|
169
176
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "astronomy_get_ephemeris: offset-bearing dates reach Horizons as UTC instants, an out-of-span reply is time_out_of_range with Horizons' bound, and the resolved target_name is echoed; astronomy_get_satellite_passes: a pass rising in the window is followed to its set, and well-known names (ISS, Hubble, Tiangong) resolve via a fixed alias table."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.1 — 2026-09-23
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`astronomy_get_ephemeris`: `target_name`** — the object Horizons actually resolved the designation to, parsed from its `Target body name:` header. A bare name can resolve to an unrelated object (`Eros` → Kerberos, a moon of Pluto); compare `target_name` against the one intended. ([#32](https://github.com/cyanheads/astronomy-mcp-server/issues/32))
|
|
12
|
+
- **`astronomy_get_satellite_passes`: a fixed alias table** resolves ISS / International Space Station, Hubble / Hubble Space Telescope / HST, and Tiangong / CSS / Chinese Space Station directly to their catalog numbers, ignoring case and whitespace, before any CelesTrak `NAME=` search. ([#39](https://github.com/cyanheads/astronomy-mcp-server/issues/39))
|
|
13
|
+
|
|
14
|
+
## Fixed
|
|
15
|
+
|
|
16
|
+
- **`astronomy_get_ephemeris`** — an offset-bearing `start`/`stop` was forwarded to Horizons verbatim, which cannot read a numeric UTC offset and replies `Cannot interpret date`; that refusal was then misread as `body_not_found`. Horizons now receives the parsed UTC instant. ([#31](https://github.com/cyanheads/astronomy-mcp-server/issues/31))
|
|
17
|
+
- **`astronomy_get_ephemeris`** — a span outside the target's own Horizons data (e.g. Mars ends after A.D. 2599-DEC-31) was also misread as `body_not_found`. It now fails as `time_out_of_range`, with Horizons' own bound in the message. ([#43](https://github.com/cyanheads/astronomy-mcp-server/issues/43))
|
|
18
|
+
- **`astronomy_get_satellite_passes`** — a pass rising inside the search window but setting after it closed was dropped entirely instead of reported through its real set; the scan now keeps stepping through an open pass, bounded to one orbital period. ([#33](https://github.com/cyanheads/astronomy-mcp-server/issues/33))
|
|
19
|
+
- **`astronomy_get_satellite_passes`**: `format()` heading now reads "1 visible pass" in the singular.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "BREAKING: astronomy_get_moon_phase's phase_angle_degrees is renamed phase_longitude_degrees; astronomy_get_sky_position and astronomy_list_visible gain sun_elongation_degrees with daylight/twilight/glare-aware visibility notes, and star_not_found now lists the catalog with Bayer designations resolving Greek symbols and IAU abbreviations."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.4.0 — 2026-09-23
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`astronomy_get_sky_position` / `astronomy_list_visible`: `sun_elongation_degrees`** — angular distance from the Sun in degrees [0,180], seen from Earth's center; 0 for the Sun itself. ([#41](https://github.com/cyanheads/astronomy-mcp-server/issues/41))
|
|
12
|
+
- **`astronomy_list_visible`'s `visibility_note`** now flags daylight ("daylight, not naked-eye visible"), civil twilight ("civil twilight, sky still bright"), and glare within 15° of the Sun. The Sun is exempt from all three; the Moon and a negative-magnitude Venus are exempt from the daylight/twilight flags but not glare. ([#41](https://github.com/cyanheads/astronomy-mcp-server/issues/41))
|
|
13
|
+
- **`astronomy_get_sky_position`'s `star` lookup** resolves Bayer designations with the Greek letter as a symbol or spelled out and the constellation as its genitive or IAU abbreviation — `α CMa`, `Alpha CMa`, and `Alpha Canis Majoris` all resolve to Sirius. A miss now lists all 32 catalog stars in the message and as `data.catalog_stars`. ([#40](https://github.com/cyanheads/astronomy-mcp-server/issues/40))
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- **BREAKING:** `astronomy_get_moon_phase`'s `phase_angle_degrees` is renamed to `phase_longitude_degrees` — the Moon–Sun ecliptic-longitude difference (0 new, 180 full). Values are unchanged; only the field name changed. `astronomy_get_sky_position` and `astronomy_list_visible` keep their own Sun–body–observer `phase_angle_degrees`, which reads 0 at full moon. **Migration:** read `phase_longitude_degrees` wherever you previously read `astronomy_get_moon_phase`'s `phase_angle_degrees`. ([#35](https://github.com/cyanheads/astronomy-mcp-server/issues/35))
|
|
18
|
+
- **`astronomy_get_rise_set`'s twilight pairs** are now documented as dusk plus the *following* morning's dawn — the dawn beside a given rise is a day later than it, not the dawn that preceded it. No behavior change; the field descriptions and tool description now state the pairing explicitly. ([#36](https://github.com/cyanheads/astronomy-mcp-server/issues/36))
|
|
@@ -8,6 +8,7 @@ import { z } from '@cyanheads/mcp-ts-core';
|
|
|
8
8
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
9
9
|
export declare const EphemerisOutput: z.ZodObject<{
|
|
10
10
|
designation: z.ZodString;
|
|
11
|
+
target_name: z.ZodOptional<z.ZodString>;
|
|
11
12
|
points: z.ZodArray<z.ZodObject<{
|
|
12
13
|
time_utc: z.ZodString;
|
|
13
14
|
ra_hours: z.ZodNumber;
|
|
@@ -29,6 +30,7 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
29
30
|
step: z.ZodDefault<z.ZodString>;
|
|
30
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
32
|
designation: z.ZodString;
|
|
33
|
+
target_name: z.ZodOptional<z.ZodString>;
|
|
32
34
|
points: z.ZodArray<z.ZodObject<{
|
|
33
35
|
time_utc: z.ZodString;
|
|
34
36
|
ra_hours: z.ZodNumber;
|
|
@@ -58,6 +60,12 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
58
60
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
59
61
|
readonly when: "The step is not a positive count followed by a unit of m, h, d, mo, or y.";
|
|
60
62
|
readonly recovery: "Pass step as a count plus m, h, d, mo, or y — for example \"10m\", \"1h\", or \"1d\" — then retry.";
|
|
63
|
+
}, {
|
|
64
|
+
readonly reason: "time_out_of_range";
|
|
65
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
66
|
+
readonly when: "The requested span falls outside the target's Horizons data span. The message names the bound Horizons reported, e.g. after A.D. 2599-DEC-31 for Mars.";
|
|
67
|
+
readonly recovery: "Move start and stop inside the target's Horizons data span — the message names the bound the request crossed — then retry.";
|
|
68
|
+
readonly thrownBy: "service";
|
|
61
69
|
}, {
|
|
62
70
|
readonly reason: "body_not_found";
|
|
63
71
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ephemeris.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyEjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"get-ephemeris.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAoC1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsR3B,CAAC"}
|
|
@@ -72,6 +72,10 @@ function nextStepInstant(instant, step) {
|
|
|
72
72
|
}
|
|
73
73
|
export const EphemerisOutput = z.object({
|
|
74
74
|
designation: z.string().describe('The body designation echoed from the request.'),
|
|
75
|
+
target_name: z
|
|
76
|
+
.string()
|
|
77
|
+
.optional()
|
|
78
|
+
.describe("The object JPL Horizons resolved the designation to, from its 'Target body name' header — compare it with the intended object, since a bare name can resolve to a different one. Absent when Horizons' response names no target."),
|
|
75
79
|
points: z
|
|
76
80
|
.array(z
|
|
77
81
|
.object({
|
|
@@ -97,13 +101,13 @@ export const EphemerisOutput = z.object({
|
|
|
97
101
|
});
|
|
98
102
|
export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
99
103
|
title: 'astronomy-mcp-server: get small-body ephemeris',
|
|
100
|
-
description: 'Fetch a time-series ephemeris for a small body (asteroid or comet) or spacecraft from JPL Horizons — RA/Dec, distance, and apparent magnitude over a span, optionally with observer-relative altitude/azimuth. This covers objects the in-process major-body set cannot. The designation is passed to Horizons verbatim, so it must be in a form Horizons resolves to a single record: a numbered asteroid takes a trailing-semicolon record lookup (e.g. "433;" for Eros, "1;" for Ceres), and a periodic comet takes the DES + closest-apparition form (e.g. "DES=1P;CAP" for Halley)
|
|
104
|
+
description: 'Fetch a time-series ephemeris for a small body (asteroid or comet) or spacecraft from JPL Horizons — RA/Dec, distance, and apparent magnitude over a span, optionally with observer-relative altitude/azimuth. This covers objects the in-process major-body set cannot. The designation is passed to Horizons verbatim, so it must be in a form Horizons resolves to a single record: a numbered asteroid takes a trailing-semicolon record lookup (e.g. "433;" for Eros, "1;" for Ceres), and a periodic comet takes the DES + closest-apparition form (e.g. "DES=1P;CAP" for Halley). Spacecraft take their negative SPK-ID. Anything else goes through the Horizons name search: a bare name matching nothing (e.g. "433 Eros") or several records (e.g. "1P/Halley") is rejected, but one matching a single object succeeds even when that object is not the one meant — "Eros" resolves to Kerberos, a moon of Pluto — so compare `target_name`, the object Horizons resolved, with the one intended. `start` and `stop` are ISO 8601 UTC and `stop` must be after `start`; `step` is a count plus a unit of m, h, d, mo, or y, such as "1d", "1h", or "10m". Supplying observer latitude/longitude yields topocentric coordinates and adds alt/az — supply both or neither. This is a gated, network-backed extension (JPL Horizons is keyless but rate-limited and best-effort); large spans truncate inline at 200 rows, and the truncation notice names the exact `start` to resume from — one step past the last row returned, because Horizons includes the start instant in its output — so re-calling from there continues the series without repeating a sample. Splitting the range into smaller adjacent spans works too; keep the same step either way so no sample is lost.',
|
|
101
105
|
annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
|
|
102
106
|
input: z.object({
|
|
103
107
|
designation: z
|
|
104
108
|
.string()
|
|
105
109
|
.min(1)
|
|
106
|
-
.describe('JPL Horizons target, passed verbatim — use a form that resolves to one record. Numbered asteroid: trailing-semicolon record lookup, e.g. "433;" (Eros), "1;" (Ceres). Periodic comet: DES + closest-apparition flag, e.g. "DES=1P;CAP" (Halley), "DES=2P;CAP" (Encke). Spacecraft: negative SPK-ID, e.g. "-48" (Hubble). A bare name like "433 Eros" or "1P/Halley"
|
|
110
|
+
.describe('JPL Horizons target, passed verbatim — use a form that resolves to one record. Numbered asteroid: trailing-semicolon record lookup, e.g. "433;" (Eros), "1;" (Ceres). Periodic comet: DES + closest-apparition flag, e.g. "DES=1P;CAP" (Halley), "DES=2P;CAP" (Encke). Spacecraft: negative SPK-ID, e.g. "-48" (Hubble). A bare name like "433 Eros" (no match) or "1P/Halley" (several records) is rejected, but one matching a single object succeeds even when it is not the object meant — check `target_name` in the result. Look up designations at ssd.jpl.nasa.gov/tools/sbdb_lookup.html.'),
|
|
107
111
|
latitude: z
|
|
108
112
|
.number()
|
|
109
113
|
.min(-90)
|
|
@@ -172,6 +176,14 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
172
176
|
when: 'The step is not a positive count followed by a unit of m, h, d, mo, or y.',
|
|
173
177
|
recovery: 'Pass step as a count plus m, h, d, mo, or y — for example "10m", "1h", or "1d" — then retry.',
|
|
174
178
|
},
|
|
179
|
+
{
|
|
180
|
+
reason: 'time_out_of_range',
|
|
181
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
182
|
+
when: "The requested span falls outside the target's Horizons data span. The message names the bound Horizons reported, e.g. after A.D. 2599-DEC-31 for Mars.",
|
|
183
|
+
// Verbatim the hint HorizonsService throws with.
|
|
184
|
+
recovery: "Move start and stop inside the target's Horizons data span — the message names the bound the request crossed — then retry.",
|
|
185
|
+
thrownBy: 'service',
|
|
186
|
+
},
|
|
175
187
|
{
|
|
176
188
|
reason: 'body_not_found',
|
|
177
189
|
code: JsonRpcErrorCode.NotFound,
|
|
@@ -215,8 +227,14 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
215
227
|
if (stopInstant === undefined) {
|
|
216
228
|
throw ctx.fail('invalid_time', `Invalid stop "${input.stop}". Expected an ISO 8601 instant naming a real calendar date, e.g. 2024-01-02T00:00:00Z.`, { ...ctx.recoveryFor('invalid_time') });
|
|
217
229
|
}
|
|
218
|
-
|
|
219
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Horizons receives the parsed instants, never the caller's strings. It cannot read a
|
|
232
|
+
* numeric UTC offset ("…T00:00:00-05:00" comes back "Cannot interpret date"), and an
|
|
233
|
+
* offset or zone designator only ever mattered for which instant the string names —
|
|
234
|
+
* which the parse has already settled.
|
|
235
|
+
*/
|
|
236
|
+
const start = startInstant.toISOString();
|
|
237
|
+
const stop = stopInstant.toISOString();
|
|
220
238
|
if (stopInstant.getTime() <= startInstant.getTime()) {
|
|
221
239
|
throw ctx.fail('invalid_time_range', `stop "${stop}" is not after start "${start}".`, {
|
|
222
240
|
...ctx.recoveryFor('invalid_time_range'),
|
|
@@ -282,6 +300,7 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
282
300
|
ctx.enrich.notice(caveats.join(' '));
|
|
283
301
|
const out = {
|
|
284
302
|
designation: result.designation,
|
|
303
|
+
...(result.targetName ? { target_name: result.targetName } : {}),
|
|
285
304
|
points: result.points.map((p) => ({
|
|
286
305
|
time_utc: p.timeUtc,
|
|
287
306
|
ra_hours: p.raHours,
|
|
@@ -296,7 +315,8 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
296
315
|
},
|
|
297
316
|
format: (r) => {
|
|
298
317
|
const lines = [];
|
|
299
|
-
|
|
318
|
+
const target = r.target_name ? ` (Horizons target: ${r.target_name})` : '';
|
|
319
|
+
lines.push(`## ${r.designation}${target} — ${r.points.length} points`);
|
|
300
320
|
for (const p of r.points) {
|
|
301
321
|
const altAz = p.altitude_degrees === undefined
|
|
302
322
|
? ''
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ephemeris.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACh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EAAE;gBACJ,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;YACjI,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,CAAC,QAAQ,QAAQ,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,KAAK,EAAE,CACzL,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview astronomy_get_moon_phase — illuminated fraction, phase name, age,
|
|
3
|
-
* phase
|
|
3
|
+
* phase longitude, and the next four lunar quarters for a given instant.
|
|
4
4
|
* @module mcp-server/tools/definitions/get-moon-phase.tool
|
|
5
5
|
*/
|
|
6
6
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
@@ -8,7 +8,7 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
|
8
8
|
export declare const MoonPhaseOutput: z.ZodObject<{
|
|
9
9
|
time_utc: z.ZodString;
|
|
10
10
|
time_local: z.ZodOptional<z.ZodString>;
|
|
11
|
-
|
|
11
|
+
phase_longitude_degrees: z.ZodNumber;
|
|
12
12
|
illuminated_fraction: z.ZodNumber;
|
|
13
13
|
phase_name: z.ZodString;
|
|
14
14
|
age_days: z.ZodNumber;
|
|
@@ -30,7 +30,7 @@ export declare const getMoonPhaseTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
30
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
31
|
time_utc: z.ZodString;
|
|
32
32
|
time_local: z.ZodOptional<z.ZodString>;
|
|
33
|
-
|
|
33
|
+
phase_longitude_degrees: z.ZodNumber;
|
|
34
34
|
illuminated_fraction: z.ZodNumber;
|
|
35
35
|
phase_name: z.ZodString;
|
|
36
36
|
age_days: z.ZodNumber;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview astronomy_get_moon_phase — illuminated fraction, phase name, age,
|
|
3
|
-
* phase
|
|
3
|
+
* phase longitude, and the next four lunar quarters for a given instant.
|
|
4
4
|
* @module mcp-server/tools/definitions/get-moon-phase.tool
|
|
5
5
|
*/
|
|
6
6
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
@@ -20,9 +20,9 @@ export const MoonPhaseOutput = z.object({
|
|
|
20
20
|
.string()
|
|
21
21
|
.optional()
|
|
22
22
|
.describe('The same instant in the observer-local timezone with offset, present only when a timezone was supplied.'),
|
|
23
|
-
|
|
23
|
+
phase_longitude_degrees: z
|
|
24
24
|
.number()
|
|
25
|
-
.describe('
|
|
25
|
+
.describe("The Moon's ecliptic longitude minus the Sun's, in degrees [0,360): 0 = new, 90 = first quarter, 180 = full, 270 = last quarter. Not the Sun–body–observer phase angle astronomy_get_sky_position reports as phase_angle_degrees, which reads 0 at full moon."),
|
|
26
26
|
illuminated_fraction: z.number().describe('Fraction of the lunar disc illuminated, 0 to 1.'),
|
|
27
27
|
phase_name: z
|
|
28
28
|
.string()
|
|
@@ -45,7 +45,7 @@ export const MoonPhaseOutput = z.object({
|
|
|
45
45
|
});
|
|
46
46
|
export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
47
47
|
title: 'astronomy-mcp-server: get moon phase',
|
|
48
|
-
description: 'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age in days since the new moon, phase
|
|
48
|
+
description: 'Report the Moon phase for an instant: illuminated fraction, phase name, synodic age in days since the new moon, phase longitude (the Moon–Sun ecliptic-longitude difference, 180° at full), and the next four quarter phases (new, first quarter, full, last quarter) with timestamps. Answers "what is the moon phase tonight" and "when is the next full moon" in one call without iteration. The time defaults to now; pass an IANA `timezone` to also receive observer-local timestamps. The phase is geocentric — no observer location is needed.',
|
|
49
49
|
annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
|
|
50
50
|
input: z.object({
|
|
51
51
|
time: z
|
|
@@ -96,7 +96,7 @@ export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
|
96
96
|
const out = {
|
|
97
97
|
time_utc: phase.timeUtc,
|
|
98
98
|
...(phase.timeLocal ? { time_local: phase.timeLocal } : {}),
|
|
99
|
-
|
|
99
|
+
phase_longitude_degrees: phase.phaseLongitudeDegrees,
|
|
100
100
|
illuminated_fraction: phase.illuminatedFraction,
|
|
101
101
|
phase_name: phase.phaseName,
|
|
102
102
|
age_days: phase.ageDays,
|
|
@@ -115,7 +115,7 @@ export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
|
115
115
|
if (r.time_local)
|
|
116
116
|
lines.push(`**Time (local):** ${r.time_local}`);
|
|
117
117
|
lines.push(`**Illuminated:** ${pct(r.illuminated_fraction, 1)}`);
|
|
118
|
-
lines.push(`**Phase
|
|
118
|
+
lines.push(`**Phase longitude:** ${num(r.phase_longitude_degrees, 1, '°')}`);
|
|
119
119
|
lines.push(`**Age:** ${num(r.age_days, 1, ' days')} since new moon`);
|
|
120
120
|
lines.push('**Next quarters:**');
|
|
121
121
|
for (const q of r.next_quarters) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-moon-phase.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-moon-phase.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,aAAa,GAA2B;IAC5C,GAAG,EAAE,UAAU;IACf,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,cAAc;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IACzF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yGAAyG,CAC1G;IACH,
|
|
1
|
+
{"version":3,"file":"get-moon-phase.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-moon-phase.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,aAAa,GAA2B;IAC5C,GAAG,EAAE,UA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BAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,CAAC,CAAC,uBAAuB,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7E,KAAK,CAAC,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACrE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACjC,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;YAChC,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACjE,KAAK,CAAC,IAAI,CAAC,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,SAAS,EAAE,CAAC,CAAC;QACzE,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rise-set.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-rise-set.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-rise-set.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-rise-set.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA6CjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsExB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8IzB,CAAC"}
|
|
@@ -23,21 +23,21 @@ const TwilightPairSchema = z.object({
|
|
|
23
23
|
dawn_utc: z
|
|
24
24
|
.string()
|
|
25
25
|
.nullable()
|
|
26
|
-
.describe(
|
|
26
|
+
.describe("Dawn (Sun ascending through the depth) in ISO 8601 UTC, or null if it does not occur. This is the morning after the cycle's set, ending the night that begins at the dusk beside it — a day later than the cycle's rise, not the dawn before it."),
|
|
27
27
|
dusk_utc: z
|
|
28
28
|
.string()
|
|
29
29
|
.nullable()
|
|
30
|
-
.describe(
|
|
30
|
+
.describe("Dusk (Sun descending through the depth) in ISO 8601 UTC, or null if it does not occur. This is the evening of the cycle's set."),
|
|
31
31
|
dawn_local: z
|
|
32
32
|
.string()
|
|
33
33
|
.nullable()
|
|
34
34
|
.optional()
|
|
35
|
-
.describe(
|
|
35
|
+
.describe("Dawn in observer-local time — the morning after the cycle's set — present only when a timezone was supplied."),
|
|
36
36
|
dusk_local: z
|
|
37
37
|
.string()
|
|
38
38
|
.nullable()
|
|
39
39
|
.optional()
|
|
40
|
-
.describe(
|
|
40
|
+
.describe("Dusk in observer-local time — the evening of the cycle's set — present only when a timezone was supplied."),
|
|
41
41
|
});
|
|
42
42
|
export const RiseSetOutput = z.object({
|
|
43
43
|
body: z.string().describe('The body these rise/set cycles are for, echoed from the request.'),
|
|
@@ -74,12 +74,12 @@ export const RiseSetOutput = z.object({
|
|
|
74
74
|
.describe('Culmination time in observer-local time, present only when a timezone was supplied.'),
|
|
75
75
|
twilight: z
|
|
76
76
|
.object({
|
|
77
|
-
civil: TwilightPairSchema.describe('Civil twilight (Sun at −6°)
|
|
78
|
-
nautical: TwilightPairSchema.describe('Nautical twilight (Sun at −12°)
|
|
79
|
-
astronomical: TwilightPairSchema.describe('Astronomical twilight (Sun at −18°)
|
|
77
|
+
civil: TwilightPairSchema.describe('Civil twilight (Sun at −6°): dusk and the following dawn.'),
|
|
78
|
+
nautical: TwilightPairSchema.describe('Nautical twilight (Sun at −12°): dusk and the following dawn.'),
|
|
79
|
+
astronomical: TwilightPairSchema.describe('Astronomical twilight (Sun at −18°): dusk and the following dawn, bounding the dark-sky window.'),
|
|
80
80
|
})
|
|
81
81
|
.optional()
|
|
82
|
-
.describe(
|
|
82
|
+
.describe("The three twilight pairs, present only when body is \"sun\". Each pair spans one night: dusk is the evening of this cycle's set and dawn is the following morning, so a cycle's dawn falls a day after its rise. The dawn before a given sunrise is in the previous cycle's pair — start the search a day earlier to get it."),
|
|
83
83
|
note: z
|
|
84
84
|
.string()
|
|
85
85
|
.optional()
|
|
@@ -90,7 +90,7 @@ export const RiseSetOutput = z.object({
|
|
|
90
90
|
});
|
|
91
91
|
export const getRiseSetTool = tool('astronomy_get_rise_set', {
|
|
92
92
|
title: 'astronomy-mcp-server: get rise/set times',
|
|
93
|
-
description: 'Compute rise, set, and culmination (transit) times for a body at an observer location, plus the maximum altitude at culmination. For the Sun, also returns the three twilight pairs (civil −6°, nautical −12°, astronomical −18°) so a single call answers "when does the sun set and when is it truly dark." Searches forward from `start` (default today) and returns the next `count` cycles (default 1). When the body is already above the horizon at `start`, the first cycle is the interval in progress: its `set` is the imminent one and its `rise` is null, since that rise precedes the search — so a set is never reported earlier than the rise beside it. Circumpolar or never-rises situations are reported as null rise/set fields with an explanatory note rather than an error — the fact is the answer. Default elevation is 0 m; pass an IANA `timezone` for observer-local times. This server does not geocode — resolve coordinates upstream first.',
|
|
93
|
+
description: 'Compute rise, set, and culmination (transit) times for a body at an observer location, plus the maximum altitude at culmination. For the Sun, also returns the three twilight pairs (civil −6°, nautical −12°, astronomical −18°) so a single call answers "when does the sun set and when is it truly dark." Each pair covers the night after the cycle\'s set — dusk that evening, dawn the next morning — so the dawn listed beside a sunrise is the following day\'s; for the dawn before a sunrise, read the previous cycle or start a day earlier. Searches forward from `start` (default today) and returns the next `count` cycles (default 1). When the body is already above the horizon at `start`, the first cycle is the interval in progress: its `set` is the imminent one and its `rise` is null, since that rise precedes the search — so a set is never reported earlier than the rise beside it. Circumpolar or never-rises situations are reported as null rise/set fields with an explanatory note rather than an error — the fact is the answer. Default elevation is 0 m; pass an IANA `timezone` for observer-local times. This server does not geocode — resolve coordinates upstream first.',
|
|
94
94
|
annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
|
|
95
95
|
input: z.object({
|
|
96
96
|
body: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rise-set.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-rise-set.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAqB,MAAM,+BAA+B,CAAC;AAE9E,8EAA8E;AAC9E,SAAS,cAAc,CAAC,CAAe;IACrC,OAAO;QACL,QAAQ,EAAE,CAAC,CAAC,OAAO;QACnB,QAAQ,EAAE,CAAC,CAAC,OAAO;QACnB,GAAG,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,SAAS,EAA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IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-satellite-passes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBA2DhC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-satellite-passes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBA2DhC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8PjC,CAAC"}
|