@cyanheads/astronomy-mcp-server 0.2.8 → 0.2.10
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 +43 -19
- package/CLAUDE.md +43 -19
- package/Dockerfile +2 -2
- package/README.md +92 -77
- package/changelog/0.2.x/0.2.10.md +33 -0
- package/changelog/0.2.x/0.2.9.md +24 -0
- package/changelog/template.md +9 -26
- package/dist/astronomy-mcp-server.mcpb +0 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/resources/definitions/body.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/body.resource.js +8 -0
- package/dist/mcp-server/resources/definitions/body.resource.js.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +4 -0
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.js +5 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +2 -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 +3 -1
- 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 -0
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +4 -1
- 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 +3 -0
- 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 +4 -1
- 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 +10 -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 +20 -1
- 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 +5 -1
- 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 +7 -2
- 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 +3 -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 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +11 -7
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/satellite/satellite-service.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.js +7 -4
- package/dist/services/satellite/satellite-service.js.map +1 -1
- package/package.json +10 -10
- package/server.json +3 -3
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
|
|
|
@@ -27,9 +27,11 @@
|
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Overview
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Observational astronomy computed in-process from [`astronomy-engine`](https://github.com/cosinekitty/astronomy) — sky positions, rise/set and twilight times, moon phases, and eclipse/conjunction/opposition events for any place and time, plus two optional network-backed extensions for small-body ephemerides and satellite passes. List what's visible right now, plan a dark-sky window, or search forward for the next sky event — deterministic and keyless for the five core tools, given the same body, time, and observer. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
|
|
33
|
+
|
|
34
|
+
### Tools
|
|
33
35
|
|
|
34
36
|
| Tool | Description |
|
|
35
37
|
|:---|:---|
|
|
@@ -41,119 +43,125 @@ Seven tools — five form the keyless, offline, deterministic core (always regis
|
|
|
41
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. |
|
|
42
44
|
| `astronomy_get_satellite_passes` | *(gated extension)* Visible passes of a satellite (by NORAD catalog number, or by a name resolved against the catalog) over an observer, from a CelesTrak GP element set propagated with SGP4 in-process. Off by default. |
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
### Resources
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
| Resource | Description |
|
|
49
|
+
|:---|:---|
|
|
50
|
+
| `astronomy://body/{body}` | Static reference card for a solar-system body — canonical name, type, mean radius (km), and naked-eye visibility. `{body}` is one of `sun`, `moon`, `mercury` … `pluto`. |
|
|
47
51
|
|
|
48
|
-
|
|
52
|
+
Also reachable via tools — `astronomy_get_sky_position` returns the same body metadata inline — so tool-only clients lose nothing.
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
- Distance, apparent magnitude, angular diameter, phase angle, illuminated fraction, and the constellation the body falls in
|
|
52
|
-
- Parallax- and aberration-corrected for the observer; default elevation 0 m, default time now
|
|
53
|
-
- Supply `star` (e.g. `"Sirius"`, `"Polaris"`) instead of `body` to target a catalog star; `star` takes precedence over `body`
|
|
54
|
-
- `null` magnitude / angular diameter / phase fields where the engine cannot compute them — never fabricated
|
|
54
|
+
### Prompts
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
| Prompt | Description |
|
|
57
|
+
|:---|:---|
|
|
58
|
+
| `astronomy_stargazing_plan` | Structures a "plan tonight's stargazing from \<place\>" workflow, chaining the tools in order and naming the cross-server geocoding and weather steps. |
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
Design reference: [`docs/design.md`](./docs/design.md).
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
## Capability reference
|
|
61
63
|
|
|
62
|
-
|
|
63
|
-
- For `body: "sun"`, bundles 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"
|
|
64
|
-
- Circumpolar / never-rises situations are reported as `null` rise/set fields with an explanatory `note` rather than an error — the fact is the answer
|
|
65
|
-
- Optional observer-local times when an IANA `timezone` is supplied
|
|
64
|
+
### `astronomy_get_sky_position` <sub>tool</sub>
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
- Target one solar-system body (`body`) or a named bright star (`star`, takes precedence over `body`) — one of the two is required
|
|
67
|
+
- Returns equatorial (RA/Dec), refraction-corrected horizontal (alt/az), and ecliptic coordinates plus distance, magnitude, angular diameter, phase angle, illuminated fraction, and constellation in one call
|
|
68
|
+
- 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
|
+
- `magnitude`, `angular_diameter_arcsec`, `phase_angle_degrees`, and `illuminated_fraction` are `null`, never fabricated, where the engine can't compute them
|
|
70
|
+
- Default elevation 0 m, default time now; pass `timezone` for observer-local output alongside UTC
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
---
|
|
70
73
|
|
|
71
|
-
|
|
74
|
+
### `astronomy_get_rise_set` <sub>tool</sub>
|
|
72
75
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
76
|
+
- 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°) as dawn/dusk times
|
|
78
|
+
- Circumpolar or never-rises situations return `null` rise/set fields with an explanatory `note`, not an error
|
|
79
|
+
- 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
|
+
- Default elevation 0 m; pass `timezone` for observer-local times alongside UTC
|
|
78
81
|
|
|
79
82
|
---
|
|
80
83
|
|
|
81
|
-
### `
|
|
84
|
+
### `astronomy_get_moon_phase` <sub>tool</sub>
|
|
82
85
|
|
|
83
|
-
|
|
86
|
+
- Geocentric — no observer location needed
|
|
87
|
+
- Returns illuminated fraction, phase angle, phase name, synodic age in days, and the next four quarter phases (new/first/full/last) in one call
|
|
88
|
+
- `time` defaults to now; pass `timezone` for observer-local timestamps alongside UTC
|
|
84
89
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
### `astronomy_find_events` <sub>tool</sub>
|
|
93
|
+
|
|
94
|
+
- One `event` enum covers nine classes: `solar_eclipse`, `lunar_eclipse`, `equinox`, `solstice`, `moon_quarter`, `opposition`, `conjunction`, `max_elongation`, `perigee_apogee`
|
|
95
|
+
- `solar_eclipse` requires observer `latitude`/`longitude` for local contact times and `local_visible`; every other class, lunar eclipses included, is geocentric
|
|
96
|
+
- Body-relative events require `body`, gated to which bodies each applies to: `opposition` to mars through pluto, `conjunction` to any planet, `max_elongation` to mercury or venus, `perigee_apogee` to the moon, earth, or a planet
|
|
97
|
+
- Returns the next `count` occurrences, default 1, max 20
|
|
98
|
+
- `perigee_apogee` on earth returns perihelion/aphelion; `conjunction` on mercury or venus returns both the inferior and superior pass, labelled by `conjunction_kind`
|
|
90
99
|
|
|
91
100
|
---
|
|
92
101
|
|
|
93
|
-
### `
|
|
102
|
+
### `astronomy_list_visible` <sub>tool</sub>
|
|
103
|
+
|
|
104
|
+
- 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
|
|
105
|
+
- Each body carries a deterministic `visibility_note` computed from real magnitude and altitude
|
|
106
|
+
- Returns the whole-sky `sky_condition` (`daylight` / `civil_twilight` / `nautical_twilight` / `astronomical_twilight` / `dark`) and the Sun's altitude alongside the list
|
|
107
|
+
- `time` is a single evaluation instant, not a window; `min_altitude` (default 0) filters out bodies grazing the horizon
|
|
108
|
+
- Default elevation 0 m; pass `timezone` for observer-local times per body
|
|
109
|
+
|
|
110
|
+
---
|
|
94
111
|
|
|
95
|
-
|
|
112
|
+
### `astronomy_get_ephemeris` <sub>tool</sub>
|
|
96
113
|
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
- A bare name like `"433 Eros"` or `"1P/Halley"` returns no match or an ambiguous record list and is rejected. Look up designations at [ssd.jpl.nasa.gov/tools/sbdb_lookup.html](https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html).
|
|
103
|
-
- `start`/`stop` are ISO 8601 UTC and `stop` must be after `start`; `step` is a positive count plus a unit of `m`, `h`, `d`, `mo`, or `y` (`"10m"`, `"1h"`, `"1d"`)
|
|
104
|
-
- Supplying observer `latitude`/`longitude` yields topocentric coordinates and adds alt/az — pass both or neither; one alone is rejected rather than silently downgraded to a geocentric query. Horizons is asked for refracted elevation on a topocentric request, so `altitude_degrees` carries the same refraction correction the offline core tools report
|
|
105
|
-
- Large spans truncate inline at 200 rows. The disclosure names the instant the returned rows end at and the `start` to resume from — one step past it, because Horizons includes the start instant in its output, so resuming at the last row returned repeats it. Re-call with that `start`, or split the range into smaller adjacent spans — keep the same `step` and repeat until `truncated` is `false`, which concatenates back into the original series with no repeated sample. Widening the step discards samples the original range asked for
|
|
114
|
+
- Registered only when `ASTRONOMY_ENABLE_HORIZONS` is set; off by default
|
|
115
|
+
- 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)
|
|
116
|
+
- `designation` must 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 is rejected
|
|
117
|
+
- `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)
|
|
118
|
+
- Truncates inline at 200 rows; the truncation notice names the exact `start` to resume from, one step past the last row returned
|
|
106
119
|
|
|
107
120
|
---
|
|
108
121
|
|
|
109
|
-
### `astronomy_get_satellite_passes`
|
|
122
|
+
### `astronomy_get_satellite_passes` <sub>tool</sub>
|
|
110
123
|
|
|
111
|
-
|
|
124
|
+
- Registered only when `ASTRONOMY_ENABLE_SATELLITES` is set; off by default
|
|
125
|
+
- Identify the satellite by exactly one of `norad_id` or `name` (case-insensitive substring match against CelesTrak's catalog) — both or neither is rejected
|
|
126
|
+
- 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
|
|
127
|
+
- `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
|
|
128
|
+
- Searches the next `days` ahead, default 7, max 10; pass `timezone` for observer-local pass times
|
|
112
129
|
|
|
113
|
-
|
|
114
|
-
- Fetches the object's current GP element set from CelesTrak as OMM JSON and propagates it with SGP4 in-process. JSON rather than TLE because the legacy format cannot encode a catalog number above 99999, and CelesTrak already assigns six-digit numbers
|
|
115
|
-
- `name` is matched as a case-insensitive substring of the catalog name, so it resolves only when it picks out a single object — either the sole match, or the one match carrying that name outright. A broader query is rejected with the matching objects and their catalog numbers to choose from, capped at 20 and stating the full match count. The result echoes the query that resolved it as `resolved_from_name`
|
|
116
|
-
- Returns each pass's rise, peak, and set times with azimuths and the peak elevation
|
|
117
|
-
- Only naked-eye-plausible passes are returned — the satellite must be sunlit at peak while the observer's sky is dark
|
|
118
|
-
- Every returned pass rises inside the requested window. A pass already underway at `start` is omitted rather than reported with `start` as its `rise_utc`; move `start` earlier to see it. A pass rising exactly at `start` is kept, so feeding a reported `rise_utc` back as `start` never loses it
|
|
119
|
-
- A `start` further from the element set's epoch than the horizon below is rejected as out of range on that distance alone, and an element set that will not propagate to a window inside the horizon is rejected as a reentry — so an empty `passes` list means only "no visible passes in this window"
|
|
120
|
-
- `start` must be within about a month of the element set's epoch, which for a tracked object is hours old — so in practice within about a month of today. Past that the mean elements no longer describe the orbit, and SGP4 keeps returning positions built from them, which is why the horizon is enforced on the epoch distance rather than on whether the propagation succeeds
|
|
121
|
-
- NORAD catalog numbers and catalog names are found at [celestrak.org](https://celestrak.org) or [heavens-above.com](https://heavens-above.com)
|
|
122
|
-
- Searches the next `days` (default 7, max 10); optional observer-local pass times
|
|
130
|
+
---
|
|
123
131
|
|
|
124
|
-
|
|
132
|
+
### `astronomy://body/{body}` <sub>resource</sub>
|
|
125
133
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
| Prompt | `astronomy_stargazing_plan` | Structures a "plan tonight's stargazing from \<place\>" workflow, chaining the tools in order and naming the cross-server geocoding and weather steps. Anchors every step to the requested night in the observer timezone, and opts into the bright-star catalog. |
|
|
134
|
+
- Static reference card as `application/json`: canonical name, type (`star`/`planet`/`moon`/`dwarf`), mean radius in km, naked-eye visibility
|
|
135
|
+
- `{body}` is one of `sun`, `moon`, `mercury` … `pluto`; supports name completion
|
|
136
|
+
- Also returned inline by `astronomy_get_sky_position` for solar-system bodies, so tool-only clients lose nothing
|
|
130
137
|
|
|
131
|
-
|
|
138
|
+
---
|
|
132
139
|
|
|
133
|
-
|
|
140
|
+
### `astronomy_stargazing_plan` <sub>prompt</sub>
|
|
134
141
|
|
|
135
|
-
|
|
142
|
+
- Arguments: `location` required; `date` optional (`YYYY-MM-DD`), defaults to tonight
|
|
143
|
+
- Returns one user message chaining the five core tools in order — sunset/dusk, moon phase and moon rise/set, then the ranked visible list with `include_stars` on
|
|
144
|
+
- Names the cross-server geocoding and weather steps this server doesn't cover, and anchors every step to the observer's local night rather than UTC midnight
|
|
136
145
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
-
|
|
140
|
-
- Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`
|
|
141
|
-
- Structured logging with optional OpenTelemetry tracing
|
|
142
|
-
- STDIO and Streamable HTTP transports; the keyless core is Cloudflare Workers-portable (pure JS, no native deps)
|
|
146
|
+
## Features
|
|
147
|
+
|
|
148
|
+
Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
|
|
143
149
|
|
|
144
150
|
Astronomy-specific:
|
|
145
151
|
|
|
146
|
-
- Keyless, offline, deterministic core — `astronomy-engine` is the source of truth for positional astronomy; no network, no rate limit, no API key for the five core tools
|
|
152
|
+
- Keyless, offline, deterministic core — `astronomy-engine` is the source of truth for positional astronomy; no network, no rate limit, no API key for the five core tools, and the keyless core is pure JS with no native deps
|
|
153
|
+
- Positions are accurate to sub-arcminute precision within the engine's ≈1900–2100 span; a `time`/`start` outside that range is rejected as `time_out_of_range`
|
|
147
154
|
- Both UTC and observer-local time on every output when a `timezone` is supplied; the server never guesses a timezone from coordinates
|
|
148
155
|
- Bundled bright-star catalog so `astronomy_list_visible` and `astronomy_get_sky_position` answer for named stars
|
|
149
156
|
- Two gated extensions (off by default) reach beyond the major-body set — JPL Horizons small bodies and CelesTrak satellite passes — each with its own timeout/retry boundary; they degrade loudly and never silently fall back to the core
|
|
157
|
+
- Does not geocode — resolve a place name to coordinates upstream (e.g. via an OpenStreetMap server) and pass an IANA `timezone` for observer-local output
|
|
150
158
|
|
|
151
159
|
Agent-friendly output:
|
|
152
160
|
|
|
153
|
-
- Preserves uncertainty — magnitude, angular diameter, phase, and
|
|
154
|
-
-
|
|
155
|
-
- Typed error contracts with recovery hints
|
|
156
|
-
-
|
|
161
|
+
- 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
|
|
162
|
+
- Deterministic visibility notes — `astronomy_list_visible`'s plain-language headline is computed from real magnitude and altitude, never a synthetic confidence score
|
|
163
|
+
- Typed error contracts with recovery hints — out-of-range time, missing observer/body, unresolved designation — so callers can correct and retry
|
|
164
|
+
- 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
|
|
157
165
|
|
|
158
166
|
## Getting started
|
|
159
167
|
|
|
@@ -233,7 +241,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
|
233
241
|
|
|
234
242
|
### Prerequisites
|
|
235
243
|
|
|
236
|
-
- [Bun v1.
|
|
244
|
+
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
|
|
237
245
|
- No API key required — both the offline core and the two keyless extensions (JPL Horizons, CelesTrak) need no credentials.
|
|
238
246
|
|
|
239
247
|
### Installation
|
|
@@ -256,6 +264,13 @@ cd astronomy-mcp-server
|
|
|
256
264
|
bun install
|
|
257
265
|
```
|
|
258
266
|
|
|
267
|
+
4. **Configure environment (optional):**
|
|
268
|
+
|
|
269
|
+
```sh
|
|
270
|
+
cp .env.example .env
|
|
271
|
+
# edit .env only to enable the gated extensions or override a default
|
|
272
|
+
```
|
|
273
|
+
|
|
259
274
|
## Configuration
|
|
260
275
|
|
|
261
276
|
All configuration is optional and validated at startup via Zod schemas in `src/config/server-config.ts`. The core runs with no configuration at all.
|
|
@@ -337,7 +352,7 @@ See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rule
|
|
|
337
352
|
|
|
338
353
|
## Contributing
|
|
339
354
|
|
|
340
|
-
Issues
|
|
355
|
+
Issues are welcome. Run checks and tests before submitting:
|
|
341
356
|
|
|
342
357
|
```sh
|
|
343
358
|
bun run devcheck
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Adopts mcp-ts-core ^0.12.3 → ^0.13.6: a schema-rejected tool call now carries structuredContent.error, tool errors close with a reason/retryable suffix and a Recovery hint, and a client-injected metadata key is dropped before validation instead of rejecting the call. Skill tree moves to framework-skills/; releases now ship through a release PR."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.2.10 — 2026-09-19
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`.github/workflows/codeql.yml`** — the fleet-standard CodeQL workflow, now shipped in the repo (runs only while GitHub's CodeQL default setup is off).
|
|
12
|
+
- **`createApp({ sessionMode: 'stateless' })`** declared in `src/index.ts` — the durable form of the session posture this server already ran under (`.env.example` and the `Dockerfile` set it too); `MCP_SESSION_MODE` still overrides when set.
|
|
13
|
+
- **`errors[]` entries carry `thrownBy: 'service'`** on every reason raised below the handler, so the new `error-contract-unthrown` lint rule verifies it without a false miss.
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- **A schema-rejected tool call (unknown key, wrong type, missing required field) now carries `structuredContent.error`** alongside its `content[]` text — a client that reads only the structured envelope no longer misses an argument-validation rejection.
|
|
18
|
+
- **A client-injected metadata key (`_meta`, `tool_call_description`, `toolCallId`, or any undeclared underscore-prefixed key) is dropped before schema validation** instead of triggering the strict-input rejection added in 0.2.9; a declared key or one whose case/separator-folded form names exactly one declared key is unaffected. `inputSchema` is unchanged.
|
|
19
|
+
- **Tool error text ends with `(reason <reason> · not retryable)`** when the thrown error carries a `data.reason` or a boolean `data.retryable`, and an argument rejection appends a `Recovery: <hint>` line derived from the schema — dropped when the message already states the hint verbatim.
|
|
20
|
+
- **Skill tree moved from `skills/` to `framework-skills/`** — Claude Code and Codex auto-load a plugin's root `skills/`, so shipping `.claude-plugin/`/`.codex-plugin/` handed these development skills to every installing agent. The agent-facing mirrors (`.claude/skills/`, `.agents/skills/`) keep their names.
|
|
21
|
+
- **Releases now ship through a release PR** (`CLAUDE.md`/`AGENTS.md` `## Publishing`, mode `straight-through`) — `git-wrapup` lands the commit stack on `release/<version>` and opens the PR; `release-and-publish` fast-forwards `main` and tags from there.
|
|
22
|
+
- **README reorganized** around an Overview section and a per-tool capability reference, matching the framework's updated `polish-docs-meta` reference.
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- `@cyanheads/mcp-ts-core` `^0.12.3` → `^0.13.6`
|
|
27
|
+
- `zod` `^4.4.3` → `^4.6.5`
|
|
28
|
+
- `@biomejs/biome` (dev) `2.5.10` → `2.5.14`
|
|
29
|
+
- `vitest` (dev) `^4.1.11` → `^5.0.1`
|
|
30
|
+
- `@types/node` (dev) `^26.2.0` → `^26.6.1`
|
|
31
|
+
- `ignore` (dev) `^7.0.6` → `^7.0.9`
|
|
32
|
+
- `tsc-alias` (dev) `^1.9.2` → `^1.9.5`
|
|
33
|
+
- `engines.bun` floor raised `>=1.3.0` → `>=1.4.0` (already pinned to `bun@1.4.0` in `packageManager`/`Dockerfile` since 0.2.9)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Adopts mcp-ts-core ^0.12.3: a tool call with an argument key the schema doesn't declare is now rejected by name instead of accepted, every tool's outputSchema declares the error envelope, and list operations plus the body resource advertise cache hints. Bun pinned to 1.4.0."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.2.9 — 2026-08-25
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **Cache hints** — `createApp` declares hour-long `public` hints on `tools/list`, `prompts/list`, `resources/list`, `resources/templates/list`, and `server/discover`; `astronomy://body/{body}` carries its own day-long `public` `cacheHint`. Effective on protocol revision 2026-07-28 only.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **A tool call with an argument key the schema doesn't declare is now rejected by name** instead of accepted and stripped — `@cyanheads/mcp-ts-core` ^0.12.3 applies `.strict()` to every tool's root input, advertising `additionalProperties: false`. `astronomy_get_satellite_passes` applies `.strict()` itself so its `norad_id`/`name` `oneOf` exclusivity survives onto the advertised `inputSchema`.
|
|
16
|
+
- **Every tool's advertised `outputSchema` now declares the error envelope.** Success fields become optional, an `error` object is added, and an `anyOf` recovers the original `required` list per branch — a client that validates `structuredContent` without checking `isError` stops rejecting error results as schema mismatches.
|
|
17
|
+
|
|
18
|
+
## Dependencies
|
|
19
|
+
|
|
20
|
+
- `@cyanheads/mcp-ts-core` `^0.11.5` → `^0.12.3`
|
|
21
|
+
- `@biomejs/biome` (dev) `2.5.8` → `2.5.10`
|
|
22
|
+
- `tsc-alias` (dev) `^1.9.1` → `^1.9.2`
|
|
23
|
+
- `vitest` (dev) `^4.1.10` → `^4.1.11`
|
|
24
|
+
- `packageManager` `bun@1.3.14` → `bun@1.4.0` (also pinned in `Dockerfile`)
|
package/changelog/template.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
# Required. One-line GitHub Release-style headline. 350 character cap — a
|
|
8
8
|
# ceiling, not a target. Default short and scannable. Don't pad, don't stitch
|
|
9
|
-
# unrelated changes with commas/semicolons into an inventory — pick the
|
|
10
|
-
# headline
|
|
9
|
+
# unrelated changes with commas/semicolons into an inventory — pick the one
|
|
10
|
+
# headline the release is about. Quotes required: unquoted YAML treats
|
|
11
11
|
# `: ` inside the value as a key separator and fails GitHub's strict parser.
|
|
12
12
|
summary: ""
|
|
13
13
|
|
|
@@ -117,30 +117,13 @@ security: false
|
|
|
117
117
|
in that unrelated item's metadata.
|
|
118
118
|
|
|
119
119
|
TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
|
|
120
|
-
via `gh release create --notes-from-tag`.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Dependency bumps: ← section header
|
|
128
|
-
← blank line
|
|
129
|
-
- `@cyanheads/mcp-ts-core` ^0.9.1 → ^0.9.6 ← bullet
|
|
130
|
-
← blank line
|
|
131
|
-
Changed: ← only sections with entries
|
|
132
|
-
← blank line
|
|
133
|
-
- `format()` output includes `query` in text mode
|
|
134
|
-
← blank line
|
|
135
|
-
Added:
|
|
136
|
-
← blank line
|
|
137
|
-
- `manifest.json` scaffolded for MCPB bundle support
|
|
138
|
-
- Install badges (Claude Desktop, Cursor, VS Code)
|
|
139
|
-
← blank line
|
|
140
|
-
<N> tests pass; `bun run devcheck` clean. ← footer
|
|
141
|
-
|
|
142
|
-
Never a flat comma-separated string. Always structured markdown with
|
|
143
|
-
sections. The tag must scan well as a rendered GitHub Release page.
|
|
120
|
+
via `gh release create --notes-from-tag`. It is a condensed digest of this
|
|
121
|
+
entry, never a copy, and its format is owned by the `release-and-publish`
|
|
122
|
+
skill (step 4, "Create the annotated tag"): a short subject line without the
|
|
123
|
+
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.
|
|
144
127
|
-->
|
|
145
128
|
|
|
146
129
|
## Added
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,33 @@ const extensionTools = [
|
|
|
38
38
|
await createApp({
|
|
39
39
|
name: 'astronomy-mcp-server',
|
|
40
40
|
title: 'astronomy-mcp-server',
|
|
41
|
+
/**
|
|
42
|
+
* Declared here rather than left to the `auto` default so the posture travels with the
|
|
43
|
+
* source instead of with whatever the deployment happens to export. Every tool is a pure
|
|
44
|
+
* function of its arguments — no handler calls `ctx.requestInput` — so the only thing
|
|
45
|
+
* `stateless` gives up is the 2025-era multi-round-trip shim nothing here would use. Not
|
|
46
|
+
* `require: 'stateful'`: there is no capability to fail startup over. `MCP_SESSION_MODE`
|
|
47
|
+
* still wins when it carries a meaningful value, which is how an operator overrides this.
|
|
48
|
+
*/
|
|
49
|
+
sessionMode: 'stateless',
|
|
41
50
|
instructions: 'Observer location is latitude/longitude in decimal degrees plus optional elevation; times are ISO 8601 UTC and default to now. This server does not geocode — resolve a place name to coordinates upstream (e.g. via openstreetmap) and a timezone via reference-data, then pass `timezone` to receive observer-local times. astronomy_list_visible is the one-call "what is up now" answer. The astronomy_get_ephemeris (small bodies) and astronomy_get_satellite_passes tools are off by default; enable them with ASTRONOMY_ENABLE_HORIZONS / ASTRONOMY_ENABLE_SATELLITES.',
|
|
51
|
+
/**
|
|
52
|
+
* Every catalog a client can list here is decided once, at startup: the tool array is
|
|
53
|
+
* fixed by the two gates read above, and the resource, template, and prompt sets are
|
|
54
|
+
* literals. None of them varies by caller — no definition declares an auth scope — so
|
|
55
|
+
* the results are shareable rather than per-client, and an hour is short enough that a
|
|
56
|
+
* redeploy flipping a gate reaches a reconnecting client on its next miss. Deliberately
|
|
57
|
+
* absent is a `resources/read` entry: the one resource states its own longer hint, and a
|
|
58
|
+
* server-wide default would silently apply that policy to whatever is added next. Cache
|
|
59
|
+
* hints exist only on protocol revision 2026-07-28; 2025-era responses are unchanged.
|
|
60
|
+
*/
|
|
61
|
+
cacheHints: {
|
|
62
|
+
'tools/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
63
|
+
'prompts/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
64
|
+
'resources/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
65
|
+
'resources/templates/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
66
|
+
'server/discover': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
67
|
+
},
|
|
42
68
|
setup() {
|
|
43
69
|
initEphemerisService();
|
|
44
70
|
if (cfg.enableHorizons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AAK;QACH,oBAAoB,EAAE,CAAC;QACvB,IAAI,GAAG,CAAC,cAAc,EAAE,CAAC;YACvB,mBAAmB,CAAC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACjE,CAAC;QACD,IAAI,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACzB,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;QACtF,CAAC;IACH,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,GAAG,cAAc,CAAC;IACxC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE,CAAC,oBAAoB,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/body.resource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"body.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/body.resource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;GAmEvB,CAAC"}
|
|
@@ -14,6 +14,14 @@ export const bodyResource = resource('astronomy://body/{body}', {
|
|
|
14
14
|
title: 'astronomy-mcp-server: body reference card',
|
|
15
15
|
description: 'Static reference card for a solar-system body: canonical name, type (star/planet/moon/dwarf), mean radius in kilometers, and whether it is naked-eye visible. `{body}` must be one of the closed enum values (sun, moon, mercury … pluto).',
|
|
16
16
|
mimeType: 'application/json',
|
|
17
|
+
/**
|
|
18
|
+
* The card is a lookup into a compiled-in table of IAU/NASA figures — the same bytes
|
|
19
|
+
* for every caller, on every request, for the life of the build. A day is the horizon
|
|
20
|
+
* over which a redeploy would be the only thing to invalidate it, and `public` is
|
|
21
|
+
* accurate because nothing here is observer-, tenant-, or auth-scoped. Applies to
|
|
22
|
+
* protocol revision 2026-07-28 only; 2025-era reads are unchanged.
|
|
23
|
+
*/
|
|
24
|
+
cacheHint: { ttlMs: 86_400_000, cacheScope: 'public' },
|
|
17
25
|
params: z.object({
|
|
18
26
|
body: z
|
|
19
27
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/body.resource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAiB,MAAM,+BAA+B,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,yBAAyB,EAAE;IAC9D,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,2CAA2C;IAClD,WAAW,EACT,4OAA4O;IAC9O,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,CACP,oGAAoG,CACrG;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QACrF,IAAI,EAAE,CAA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IAAI,CAAC,YAAY;YACjC,SAAS,EAAE,IAAI,CAAC,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACX,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChC,GAAG,EAAE,oBAAoB,CAAC,EAAE;YAC5B,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;YACvB,QAAQ,EAAE,kBAAkB;SAC7B,CAAC,CAAC;KACJ,CAAC;IAEF,QAAQ,EAAE;QACR,IAAI,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;KACzF;CACF,CAAC,CAAC"}
|
|
@@ -156,21 +156,25 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
|
|
|
156
156
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
157
157
|
readonly when: "The body has no such event — opposition for the Sun, Moon, Earth, or an inner planet; conjunction for the Sun, Moon, or Earth; max_elongation for anything but mercury or venus; perigee_apogee for the Sun.";
|
|
158
158
|
readonly recovery: "Pick a body the event is defined for: a superior planet (mars through pluto) for opposition, any planet for conjunction, mercury or venus for max_elongation, and the moon, earth, or a planet for perigee_apogee.";
|
|
159
|
+
readonly thrownBy: "service";
|
|
159
160
|
}, {
|
|
160
161
|
readonly reason: "invalid_time";
|
|
161
162
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
162
163
|
readonly when: "The `start` value is not a parseable ISO 8601 instant, or names a calendar date that does not exist (e.g. 2026-02-30).";
|
|
163
164
|
readonly recovery: "Pass the timestamp as an ISO 8601 UTC instant with a real calendar date, e.g. 2024-01-01T00:00:00Z, then retry.";
|
|
165
|
+
readonly thrownBy: "service";
|
|
164
166
|
}, {
|
|
165
167
|
readonly reason: "time_out_of_range";
|
|
166
168
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
167
169
|
readonly when: "The requested start instant is outside the engine's high-accuracy span (≈1900–2100).";
|
|
168
170
|
readonly recovery: "Use a start date between 1900 and 2100 and retry.";
|
|
171
|
+
readonly thrownBy: "service";
|
|
169
172
|
}, {
|
|
170
173
|
readonly reason: "invalid_timezone";
|
|
171
174
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
172
175
|
readonly when: "The `timezone` value is not an IANA zone this runtime knows.";
|
|
173
176
|
readonly recovery: "Pass a valid IANA timezone like America/Los_Angeles or UTC.";
|
|
177
|
+
readonly thrownBy: "service";
|
|
174
178
|
}], {
|
|
175
179
|
readonly totalCount: z.ZodNumber;
|
|
176
180
|
}>;
|
|
@@ -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;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAajE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4F3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"find-events.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAajE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4F3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoMzB,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
10
10
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
11
11
|
import { getServerConfig } from '../../../config/server-config.js';
|
|
12
|
-
import { num, pct, sig } from '
|
|
12
|
+
import { num, pct, sig } from '../format-numbers.js';
|
|
13
13
|
import { getEphemerisService } from '../../../services/ephemeris/ephemeris-service.js';
|
|
14
14
|
import { EVENT_BODY_NAMES, EVENT_NAMES } from '../../../services/ephemeris/types.js';
|
|
15
15
|
const BODY_EVENTS = new Set([
|
|
@@ -149,6 +149,7 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
149
149
|
code: JsonRpcErrorCode.InvalidParams,
|
|
150
150
|
when: 'The body has no such event — opposition for the Sun, Moon, Earth, or an inner planet; conjunction for the Sun, Moon, or Earth; max_elongation for anything but mercury or venus; perigee_apogee for the Sun.',
|
|
151
151
|
recovery: 'Pick a body the event is defined for: a superior planet (mars through pluto) for opposition, any planet for conjunction, mercury or venus for max_elongation, and the moon, earth, or a planet for perigee_apogee.',
|
|
152
|
+
thrownBy: 'service',
|
|
152
153
|
},
|
|
153
154
|
{
|
|
154
155
|
reason: 'invalid_time',
|
|
@@ -157,12 +158,14 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
157
158
|
// Verbatim the hint EphemerisService.resolveTime() throws with, so the contract
|
|
158
159
|
// documents the same next move the client is handed on the wire.
|
|
159
160
|
recovery: 'Pass the timestamp as an ISO 8601 UTC instant with a real calendar date, e.g. 2024-01-01T00:00:00Z, then retry.',
|
|
161
|
+
thrownBy: 'service',
|
|
160
162
|
},
|
|
161
163
|
{
|
|
162
164
|
reason: 'time_out_of_range',
|
|
163
165
|
code: JsonRpcErrorCode.InvalidParams,
|
|
164
166
|
when: "The requested start instant is outside the engine's high-accuracy span (≈1900–2100).",
|
|
165
167
|
recovery: 'Use a start date between 1900 and 2100 and retry.',
|
|
168
|
+
thrownBy: 'service',
|
|
166
169
|
},
|
|
167
170
|
{
|
|
168
171
|
reason: 'invalid_timezone',
|
|
@@ -170,6 +173,7 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
170
173
|
when: 'The `timezone` value is not an IANA zone this runtime knows.',
|
|
171
174
|
// Verbatim the hint EphemerisService.resolveTimezone() throws with.
|
|
172
175
|
recovery: 'Pass a valid IANA timezone like America/Los_Angeles or UTC.',
|
|
176
|
+
thrownBy: 'service',
|
|
173
177
|
},
|
|
174
178
|
],
|
|
175
179
|
handler(input, ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-events.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAkB,MAAM,+BAA+B,CAAC;AAE9F,MAAM,WAAW,GAAG,IAAI,GAAG,CAAY;IACrC,YAAY;IACZ,aAAa;IACb,gB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D;YACE,MAAM,EAAE,oBAAoB;YAC5B,IAAI,EAAE,gBAAgB,CAAC,aAAa;YACpC,IAAI,EAAE,8MAA8M;YACpN,QAAQ,EACN,oNAAoN;
|
|
1
|
+
{"version":3,"file":"find-events.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAkB,MAAM,+BAA+B,CAAC;AAE9F,MAAM,WAAW,GAAG,IAAI,GAAG,CAAY;IACrC,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,gBAAgB;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QAC9E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;QACxF,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,+EAA+E,CAChF;QACH,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8FAA8F,CAC/F;QACH,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,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