@cyanheads/astronomy-mcp-server 0.4.1 → 0.4.3
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 +16 -12
- package/CLAUDE.md +16 -12
- package/Dockerfile +3 -3
- package/README.md +39 -14
- package/changelog/0.4.x/0.4.2.md +37 -0
- package/changelog/0.4.x/0.4.3.md +28 -0
- package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +1 -1
- package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +31 -4
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.js +96 -24
- package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +29 -7
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +221 -46
- 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.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +1 -0
- 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 +49 -2
- 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 +85 -43
- 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 +27 -3
- 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 +98 -23
- 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.map +1 -1
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +1 -0
- 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.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.d.ts +86 -14
- package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.js +455 -100
- package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
- package/dist/services/ephemeris/iso-time.d.ts +2 -2
- package/dist/services/ephemeris/iso-time.js +5 -5
- package/dist/services/ephemeris/types.d.ts +42 -1
- package/dist/services/ephemeris/types.d.ts.map +1 -1
- package/dist/services/ephemeris/types.js +16 -0
- package/dist/services/ephemeris/types.js.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts +25 -3
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +154 -15
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/horizons/types.d.ts +8 -4
- package/dist/services/horizons/types.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.d.ts +48 -10
- package/dist/services/satellite/satellite-service.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.js +215 -102
- package/dist/services/satellite/satellite-service.js.map +1 -1
- package/dist/services/satellite/types.d.ts +36 -2
- package/dist/services/satellite/types.d.ts.map +1 -1
- package/dist/services/satellite/types.js.map +1 -1
- package/package.json +10 -9
- package/server.json +3 -3
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @fileoverview astronomy_find_events — consolidated forward search for nine event
|
|
3
3
|
* classes under one `event` enum. Both eclipse classes take an optional observer:
|
|
4
4
|
* solar eclipses are global without one and local with one, and lunar eclipses gain
|
|
5
|
-
* the Moon's altitude at each contact. Every other class is geocentric
|
|
6
|
-
*
|
|
5
|
+
* the Moon's altitude at each contact. Every other class is geocentric; `body2` turns a
|
|
6
|
+
* conjunction with the Sun into one of two bodies. Every search stops at the end of the
|
|
7
|
+
* supported span, with a notice when that cuts a list short, and serves at most
|
|
8
|
+
* `EVENTS_PER_CALL` events per call with a notice naming the `start` and `count` that
|
|
9
|
+
* continue.
|
|
7
10
|
* Validation gates fail fast when an event needs a body that was not supplied, when an
|
|
8
11
|
* eclipse observer is half-specified, or when the body has no such event.
|
|
9
12
|
* @module mcp-server/tools/definitions/find-events.tool
|
|
@@ -13,14 +16,32 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
|
13
16
|
import { getServerConfig } from '../../../config/server-config.js';
|
|
14
17
|
import { num, pct, sig } from '../format-numbers.js';
|
|
15
18
|
import { getEphemerisService, SUPPORTED_SPAN } from '../../../services/ephemeris/ephemeris-service.js';
|
|
16
|
-
import { EVENT_BODY_NAMES, EVENT_NAMES } from '../../../services/ephemeris/types.js';
|
|
19
|
+
import { EVENT_BODY_NAMES, EVENT_NAMES, PAIR_BODY_NAMES, } from '../../../services/ephemeris/types.js';
|
|
20
|
+
/** Events computed per call; a larger `count` is served this many with a resume notice. */
|
|
21
|
+
const EVENTS_PER_CALL = 20;
|
|
22
|
+
/** Largest `count` accepted. Past it the schema rejects. */
|
|
23
|
+
const EVENTS_COUNT_CEILING = 200;
|
|
24
|
+
/**
|
|
25
|
+
* How far past the last returned event the resume `start` falls for every class but the
|
|
26
|
+
* eclipses. A second is too close for a search that can find the event it starts on
|
|
27
|
+
* again; an hour clears that and stays well under the closest spacing of two consecutive
|
|
28
|
+
* events of one search, about a day and a half.
|
|
29
|
+
*/
|
|
30
|
+
const RESUME_OFFSET_MS = 3_600_000;
|
|
31
|
+
/**
|
|
32
|
+
* The resume offset for both eclipse classes: ten days, the step astronomy-engine's own
|
|
33
|
+
* `Next*Eclipse` takes from one peak to the next search, so a continued series is the one
|
|
34
|
+
* a single search returns. The service includes only peaks at or after the requested start.
|
|
35
|
+
* Consecutive eclipses of one class lie at least 29 days apart, so this offset skips none.
|
|
36
|
+
*/
|
|
37
|
+
const ECLIPSE_RESUME_OFFSET_MS = 10 * 86_400_000;
|
|
17
38
|
const BODY_EVENTS = new Set([
|
|
18
39
|
'opposition',
|
|
19
40
|
'conjunction',
|
|
20
41
|
'max_elongation',
|
|
21
42
|
'perigee_apogee',
|
|
22
43
|
]);
|
|
23
|
-
/** The event classes whose records an observer changes. */
|
|
44
|
+
/** The event classes whose records an observer changes, and that resume ten days on. */
|
|
24
45
|
const ECLIPSE_EVENTS = new Set(['solar_eclipse', 'lunar_eclipse']);
|
|
25
46
|
export const FindEventsOutput = z.object({
|
|
26
47
|
events: z
|
|
@@ -72,11 +93,19 @@ export const FindEventsOutput = z.object({
|
|
|
72
93
|
body: z
|
|
73
94
|
.string()
|
|
74
95
|
.optional()
|
|
75
|
-
.describe('The target body. Present for opposition/conjunction/max_elongation/perigee_apogee.'),
|
|
96
|
+
.describe('The target body — the first of the pair for a two-body conjunction. Present for opposition/conjunction/max_elongation/perigee_apogee.'),
|
|
97
|
+
body2: z
|
|
98
|
+
.string()
|
|
99
|
+
.optional()
|
|
100
|
+
.describe('The second body of a two-body conjunction, as requested. Present only when `body2` was supplied.'),
|
|
101
|
+
separation_degrees: z
|
|
102
|
+
.number()
|
|
103
|
+
.optional()
|
|
104
|
+
.describe("Angular separation in degrees between body and body2 seen from Earth's center at the conjunction instant. Not always their closest approach: two planets can pass closer days or weeks away. Present only for a two-body conjunction."),
|
|
76
105
|
conjunction_kind: z
|
|
77
106
|
.enum(['inferior', 'superior'])
|
|
78
107
|
.optional()
|
|
79
|
-
.describe('Whether the planet passes between Earth and the Sun (inferior) or behind the Sun (superior). Present only for mercury and venus conjunctions, the two bodies that reach both.'),
|
|
108
|
+
.describe('Whether the planet passes between Earth and the Sun (inferior) or behind the Sun (superior). Present only for mercury and venus conjunctions with the Sun, the two bodies that reach both.'),
|
|
80
109
|
elongation_degrees: z
|
|
81
110
|
.number()
|
|
82
111
|
.optional()
|
|
@@ -103,25 +132,29 @@ export const FindEventsOutput = z.object({
|
|
|
103
132
|
});
|
|
104
133
|
export const findEventsTool = tool('astronomy_find_events', {
|
|
105
134
|
title: 'astronomy-mcp-server: find sky events',
|
|
106
|
-
description: "Search forward from a start time for the next occurrences of one sky-event class, selected by the `event` enum: solar_eclipse, lunar_eclipse, equinox, solstice, moon_quarter, opposition, conjunction, max_elongation, or perigee_apogee. Both eclipse classes take an optional observer (latitude and longitude together). solar_eclipse without one returns global eclipses — kind, peak time, obscuration, and for a total or annular eclipse the latitude/longitude where it is greatest; with one it returns only eclipses visible from that point, with local contact times, `local_visible`, and the Sun's altitude at each contact. lunar_eclipse returns geocentric contact times, the same instants everywhere on Earth; an observer adds `local_visible` and the Moon's altitude at each contact. Every other class is geocentric and ignores a location. The body-relative events (opposition, conjunction, max_elongation, perigee_apogee) require a `body`: opposition applies to the superior planets (mars through pluto), conjunction to any planet, max_elongation to mercury and venus, and perigee_apogee to the moon (perigee/apogee), earth, or a planet (perihelion/aphelion). Returns the next `count` occurrences (default 1). Searches stop at the end of 2100, the close of the supported span; when that leaves fewer than `count`, a notice says so. Start defaults to now; pass an IANA `timezone` for observer-local timestamps.",
|
|
135
|
+
description: "Search forward from a start time for the next occurrences of one sky-event class, selected by the `event` enum: solar_eclipse, lunar_eclipse, equinox, solstice, moon_quarter, opposition, conjunction, max_elongation, or perigee_apogee. Both eclipse classes take an optional observer (latitude and longitude together). solar_eclipse without one returns global eclipses — kind, peak time, obscuration, and for a total or annular eclipse the latitude/longitude where it is greatest; with one it returns only eclipses visible from that point, with local contact times, `local_visible`, and the Sun's altitude at each contact. lunar_eclipse returns geocentric contact times, the same instants everywhere on Earth; an observer adds `local_visible` and the Moon's altitude at each contact. Every other class is geocentric and ignores a location. The body-relative events (opposition, conjunction, max_elongation, perigee_apogee) require a `body`: opposition applies to the superior planets (mars through pluto), conjunction to any planet, max_elongation to mercury and venus, and perigee_apogee to the moon (perigee/apogee), earth, or a planet (perihelion/aphelion). conjunction with `body` alone is that planet's conjunction with the Sun. Add `body2` for a conjunction of two bodies — the Moon or a planet with another: the instant they share one ecliptic longitude seen from Earth's center, with their `separation_degrees` at that instant. That separation is not always their closest approach, since two planets can pass closer days or weeks away, and listings that time conjunctions by right ascension differ by hours, or by days for slow pairs. Returns the next `count` occurrences (default 1), up to 20 per call: a larger `count`, up to 200, returns the first 20 and a notice naming the exact `start` and `count` that continue the series. Searches stop at the end of 2100, the close of the supported span; when that leaves fewer than `count`, a notice says so. Start defaults to now; pass an IANA `timezone` for observer-local timestamps.",
|
|
107
136
|
annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
|
|
108
137
|
input: z.object({
|
|
109
138
|
event: z.enum(EVENT_NAMES).describe('Which class of event to search for.'),
|
|
110
139
|
start: z
|
|
111
140
|
.string()
|
|
112
141
|
.optional()
|
|
113
|
-
.describe('Search start as an ISO 8601 UTC string, e.g. "2024-01-01T00:00:00Z". Defaults to now. A value with no zone designator is read as UTC, not the local zone of the server process.'),
|
|
142
|
+
.describe('Search start as an ISO 8601 UTC string, e.g. "2024-01-01T00:00:00Z". Eclipses are included when their peak is at or after start; earlier contacts may still be returned. Defaults to now. A value with no zone designator is read as UTC, not the local zone of the server process.'),
|
|
114
143
|
count: z
|
|
115
144
|
.number()
|
|
116
145
|
.int()
|
|
117
146
|
.min(1)
|
|
118
|
-
.max(
|
|
147
|
+
.max(EVENTS_COUNT_CEILING)
|
|
119
148
|
.default(1)
|
|
120
|
-
.describe(
|
|
149
|
+
.describe(`Number of forward occurrences to return. Default 1. At most ${EVENTS_PER_CALL} are computed per call; a count up to ${EVENTS_COUNT_CEILING} returns the first ${EVENTS_PER_CALL} with a notice naming the \`start\` and \`count\` that continue the series.`),
|
|
121
150
|
body: z
|
|
122
151
|
.enum(EVENT_BODY_NAMES)
|
|
123
152
|
.optional()
|
|
124
|
-
.describe('Target body — required for opposition, conjunction, max_elongation, and perigee_apogee; ignored otherwise. "earth" is accepted only for perigee_apogee, which returns its perihelion and aphelion.'),
|
|
153
|
+
.describe('Target body — required for opposition, conjunction, max_elongation, and perigee_apogee; ignored otherwise. "earth" is accepted only for perigee_apogee, which returns its perihelion and aphelion. With `body2`, the Moon or a planet.'),
|
|
154
|
+
body2: z
|
|
155
|
+
.enum(PAIR_BODY_NAMES)
|
|
156
|
+
.optional()
|
|
157
|
+
.describe('Second body for a conjunction of two bodies: the Moon or a planet, different from `body`. Accepted only with event "conjunction", where it replaces the conjunction of `body` with the Sun by the conjunction of `body` and `body2` in ecliptic longitude seen from Earth\'s center. For the Moon meeting the Sun, search moon_quarter for the new moon.'),
|
|
125
158
|
latitude: z
|
|
126
159
|
.number()
|
|
127
160
|
.min(-90)
|
|
@@ -146,10 +179,16 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
146
179
|
output: FindEventsOutput,
|
|
147
180
|
enrichment: {
|
|
148
181
|
totalCount: z.number().describe('Number of event occurrences returned.'),
|
|
182
|
+
truncated: z
|
|
183
|
+
.boolean()
|
|
184
|
+
.optional()
|
|
185
|
+
.describe('True when `count` exceeded the per-call cap and only the first events came back.'),
|
|
186
|
+
shown: z.number().optional().describe('Number of events returned when the cap applied.'),
|
|
187
|
+
cap: z.number().optional().describe('The per-call event cap that was applied.'),
|
|
149
188
|
notice: z
|
|
150
189
|
.string()
|
|
151
190
|
.optional()
|
|
152
|
-
.describe('Why the list is shorter than the requested count: the search reached the end of the supported span (2100). Absent when every requested occurrence came back.'),
|
|
191
|
+
.describe('Why the list is shorter than the requested count: either the per-call cap held events back, and the notice names the exact `start` and `count` to re-call with, or the search reached the end of the supported span (2100). Absent when every requested occurrence came back.'),
|
|
153
192
|
},
|
|
154
193
|
errors: [
|
|
155
194
|
{
|
|
@@ -167,8 +206,16 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
167
206
|
{
|
|
168
207
|
reason: 'body_not_supported',
|
|
169
208
|
code: JsonRpcErrorCode.InvalidParams,
|
|
170
|
-
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.',
|
|
171
|
-
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.',
|
|
209
|
+
when: 'The body has no such event — opposition for the Sun, Moon, Earth, or an inner planet; conjunction without `body2` for the Sun, Moon, or Earth; max_elongation for anything but mercury or venus; perigee_apogee for the Sun.',
|
|
210
|
+
recovery: 'Pick a body the event is defined for: a superior planet (mars through pluto) for opposition, any planet for conjunction (or the Moon with a planet as body2), mercury or venus for max_elongation, and the moon, earth, or a planet for perigee_apogee.',
|
|
211
|
+
thrownBy: 'service',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
reason: 'invalid_body_pair',
|
|
215
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
216
|
+
when: '`body2` was supplied with an event other than conjunction, names the same body as `body`, or is paired with a `body` of sun or earth.',
|
|
217
|
+
// Verbatim the hint EphemerisService throws with where it rejects the pair.
|
|
218
|
+
recovery: 'body2 applies only to event "conjunction" and pairs two different bodies among the Moon and the planets (mercury through pluto). For a planet\'s conjunction with the Sun, pass the planet as body and omit body2; for the Moon\'s, search moon_quarter for the new moon.',
|
|
172
219
|
thrownBy: 'service',
|
|
173
220
|
},
|
|
174
221
|
{
|
|
@@ -184,6 +231,7 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
184
231
|
reason: 'time_out_of_range',
|
|
185
232
|
code: JsonRpcErrorCode.InvalidParams,
|
|
186
233
|
when: "The requested start instant is outside the engine's high-accuracy span (≈1900–2100).",
|
|
234
|
+
// resolveTime() throws this reason with no hint, so this string is the wire hint.
|
|
187
235
|
recovery: 'Use a start date between 1900 and 2100 and retry.',
|
|
188
236
|
thrownBy: 'service',
|
|
189
237
|
},
|
|
@@ -221,26 +269,46 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
221
269
|
elevation: input.elevation,
|
|
222
270
|
}
|
|
223
271
|
: undefined;
|
|
272
|
+
const served = Math.min(input.count, EVENTS_PER_CALL);
|
|
224
273
|
const records = svc.findEvents(input.event, {
|
|
225
274
|
start,
|
|
226
|
-
count:
|
|
275
|
+
count: served,
|
|
227
276
|
...(input.body ? { body: input.body } : {}),
|
|
277
|
+
...(input.body2 ? { body2: input.body2 } : {}),
|
|
228
278
|
...(observer ? { observer } : {}),
|
|
229
279
|
...(timezone ? { timezone } : {}),
|
|
230
280
|
});
|
|
231
281
|
ctx.log.info('Found events', { event: input.event, count: records.length });
|
|
232
282
|
ctx.enrich.total(records.length);
|
|
233
283
|
/**
|
|
234
|
-
* Every search is unbounded except by the supported span, so
|
|
235
|
-
* span ended
|
|
236
|
-
*
|
|
284
|
+
* Every search is unbounded except by the supported span, so fewer than `served` means
|
|
285
|
+
* the span ended; a full `served` short of `count` means the cap held the rest back. The
|
|
286
|
+
* two never coincide, so `notice` — last-wins across enrichment writers — has one writer.
|
|
237
287
|
*/
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
|
|
288
|
+
const last = records.at(-1);
|
|
289
|
+
const spanEnd = `The search reached the end of the supported span (${SUPPORTED_SPAN.lastYear}) after ${records.length} of ${input.count} requested events; no occurrence after ${SUPPORTED_SPAN.lastYear} is computed.`;
|
|
290
|
+
if (records.length < served) {
|
|
291
|
+
ctx.enrich.notice(spanEnd);
|
|
292
|
+
}
|
|
293
|
+
else if (input.count > served && last) {
|
|
294
|
+
/**
|
|
295
|
+
* A 20th event within the resume offset of the span end puts the resume start past
|
|
296
|
+
* it, where every call fails time_out_of_range. The offset is shorter than the gap to
|
|
297
|
+
* the next event of the class, so no event lies in that window and the span ended.
|
|
298
|
+
*/
|
|
299
|
+
const offset = ECLIPSE_EVENTS.has(input.event) ? ECLIPSE_RESUME_OFFSET_MS : RESUME_OFFSET_MS;
|
|
300
|
+
const resumeAt = new Date(Date.parse(last.timeUtc) + offset);
|
|
301
|
+
if (resumeAt.getUTCFullYear() > SUPPORTED_SPAN.lastYear) {
|
|
302
|
+
ctx.enrich.notice(spanEnd);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
ctx.enrich.truncated({
|
|
306
|
+
shown: records.length,
|
|
307
|
+
cap: EVENTS_PER_CALL,
|
|
308
|
+
guidance: `Returned ${records.length} of the ${input.count} requested events (${EVENTS_PER_CALL} per call). Re-call with start ${resumeAt.toISOString()} and count ${input.count - records.length} for the rest.`,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
241
311
|
}
|
|
242
|
-
if (caveats.length > 0)
|
|
243
|
-
ctx.enrich.notice(caveats.join(' '));
|
|
244
312
|
const out = {
|
|
245
313
|
events: records.map((r) => ({
|
|
246
314
|
event: r.event,
|
|
@@ -262,6 +330,8 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
262
330
|
...(r.which ? { which: r.which } : {}),
|
|
263
331
|
...(r.quarter ? { quarter: r.quarter } : {}),
|
|
264
332
|
...(r.body ? { body: r.body } : {}),
|
|
333
|
+
...(r.body2 ? { body2: r.body2 } : {}),
|
|
334
|
+
...(r.separationDegrees !== undefined ? { separation_degrees: r.separationDegrees } : {}),
|
|
265
335
|
...(r.conjunctionKind ? { conjunction_kind: r.conjunctionKind } : {}),
|
|
266
336
|
...(r.elongationDegrees !== undefined ? { elongation_degrees: r.elongationDegrees } : {}),
|
|
267
337
|
...(r.visibility ? { visibility: r.visibility } : {}),
|
|
@@ -282,13 +352,15 @@ export const findEventsTool = tool('astronomy_find_events', {
|
|
|
282
352
|
if (e.quarter)
|
|
283
353
|
headline += ` (${e.quarter})`;
|
|
284
354
|
if (e.body)
|
|
285
|
-
headline += ` — ${e.body}`;
|
|
355
|
+
headline += ` — ${e.body}${e.body2 ? ` and ${e.body2}` : ''}`;
|
|
286
356
|
lines.push(headline);
|
|
287
357
|
lines.push(`time_utc: ${e.time_utc}${e.time_local ? ` | time_local: ${e.time_local}` : ''}`);
|
|
288
358
|
if (e.kind)
|
|
289
359
|
lines.push(`**Kind:** ${e.kind}`);
|
|
290
360
|
if (e.conjunction_kind)
|
|
291
361
|
lines.push(`**Conjunction:** ${e.conjunction_kind}`);
|
|
362
|
+
if (e.separation_degrees !== undefined)
|
|
363
|
+
lines.push(`**Separation:** ${num(e.separation_degrees, 3, '°')}`);
|
|
292
364
|
if (e.obscuration !== undefined)
|
|
293
365
|
lines.push(`**Obscuration:** ${e.obscuration === null ? 'unavailable' : pct(e.obscuration, 1)}`);
|
|
294
366
|
if (e.local_visible !== undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-events.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;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,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChG,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,2DAA2D;AAC3D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAY,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,C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C,QAAQ,CAAC;qBACrC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;qBAC7B,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;oBAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxE,CAAC;YACD,IAAI,CAAC,CAAC,yBAAyB,EAAE,CAAC;gBAChC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CACtF,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAC/D,CAAC;gBACF,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;oBAAE,KAAK,CAAC,IAAI,CAAC,0BAA0B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjF,CAAC;QACH,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"}
|
|
@@ -43,23 +43,28 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
43
43
|
}, z.core.$strip>, readonly [{
|
|
44
44
|
readonly reason: "invalid_time";
|
|
45
45
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
46
|
-
readonly when: "The start or stop timestamp is not a parseable ISO 8601 instant,
|
|
47
|
-
readonly recovery: "Pass start and stop as ISO 8601 UTC timestamps naming real calendar dates, e.g. 2024-01-01T00:00:00Z, then retry.";
|
|
46
|
+
readonly when: "The start or stop timestamp is not a parseable ISO 8601 instant, names a calendar date that does not exist (e.g. 2026-02-30), or falls outside years 0100 through 9999, the calendar years JPL Horizons reads.";
|
|
47
|
+
readonly recovery: "Pass start and stop as ISO 8601 UTC timestamps naming real calendar dates in years 0100 through 9999, e.g. 2024-01-01T00:00:00Z, then retry.";
|
|
48
48
|
}, {
|
|
49
49
|
readonly reason: "invalid_time_range";
|
|
50
50
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
51
|
-
readonly when: "The resolved stop instant is
|
|
52
|
-
readonly recovery: "Pass a stop
|
|
51
|
+
readonly when: "The resolved stop instant is before the resolved start instant.";
|
|
52
|
+
readonly recovery: "Pass a stop at or after start — equal for a single instant — or omit stop for a 24-hour span, then retry.";
|
|
53
53
|
}, {
|
|
54
54
|
readonly reason: "incomplete_observer";
|
|
55
55
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
56
56
|
readonly when: "Exactly one of latitude and longitude was supplied.";
|
|
57
57
|
readonly recovery: "Supply latitude and longitude together for a topocentric ephemeris, or omit both for a geocentric one.";
|
|
58
|
+
}, {
|
|
59
|
+
readonly reason: "invalid_elevation";
|
|
60
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
61
|
+
readonly when: "An observer (latitude and longitude) was supplied with an elevation of -20000 m or less, or 40000000 m or more — outside the observer altitudes JPL Horizons accepts.";
|
|
62
|
+
readonly recovery: "Pass elevation in meters greater than -20000 and less than 40000000, or omit latitude and longitude for a geocentric ephemeris, which ignores elevation.";
|
|
58
63
|
}, {
|
|
59
64
|
readonly reason: "invalid_step";
|
|
60
65
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
61
|
-
readonly when: "The step is not a positive count followed by a unit of m, h, d, mo, or y.";
|
|
62
|
-
readonly recovery: "Pass step as a count plus m, h, d, mo, or y — for example \"10m\", \"1h\", or \"1d\" — then retry.";
|
|
66
|
+
readonly when: "The step is not a positive count followed by a unit of m, h, d, mo, or y, its count is past 2147483647, or Horizons reports it longer than the span of data it holds for the target.";
|
|
67
|
+
readonly recovery: "Pass step as a count up to 2147483647 plus m, h, d, mo, or y — for example \"10m\", \"1h\", or \"1d\" — and shorter than the span of data Horizons holds for the target, then retry.";
|
|
63
68
|
}, {
|
|
64
69
|
readonly reason: "time_out_of_range";
|
|
65
70
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
@@ -69,8 +74,25 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
69
74
|
}, {
|
|
70
75
|
readonly reason: "body_not_found";
|
|
71
76
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
72
|
-
readonly when: "JPL Horizons has no match for the designation,
|
|
77
|
+
readonly when: "JPL Horizons has no match for the designation, the designation is ambiguous (a bare comet name matches multiple apparition records), it contains an apostrophe, which the Horizons search cannot match (e.g. \"6P/d'Arrest\"), or it contains a character outside printable ASCII, which Horizons refuses (e.g. \"Šteins\", \"6P/d’Arrest\").";
|
|
73
78
|
readonly recovery: "Use a record-resolving form: a numbered asteroid as \"<number>;\" (e.g. \"433;\"), a periodic comet as \"DES=<designation>;CAP\" (e.g. \"DES=1P;CAP\"), or a spacecraft as its negative SPK-ID. Verify the designation at ssd.jpl.nasa.gov/tools/sbdb_lookup.html.";
|
|
79
|
+
}, {
|
|
80
|
+
readonly reason: "ambiguous_designation";
|
|
81
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
82
|
+
readonly when: "A major-body or spacecraft name matches several Horizons bodies (e.g. \"Mars\" matches the planet, its barycenter, and spacecraft). The message lists the candidates with their ID numbers, at most 20, and names the total when there are more.";
|
|
83
|
+
readonly recovery: "Re-call with designation set to the ID number of the intended body from the listed candidates — e.g. \"499\" for the planet Mars — or a more specific name when it is not listed.";
|
|
84
|
+
readonly thrownBy: "service";
|
|
85
|
+
}, {
|
|
86
|
+
readonly reason: "observer_is_target";
|
|
87
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
88
|
+
readonly when: "The designation resolves to Earth (e.g. \"399\"), the body every request here observes from.";
|
|
89
|
+
readonly recovery: "Choose a target other than Earth: this tool observes from Earth, geocentric or from the supplied latitude and longitude, and Horizons computes no ephemeris of the observer’s own body.";
|
|
90
|
+
readonly thrownBy: "service";
|
|
91
|
+
}, {
|
|
92
|
+
readonly reason: "request_rejected";
|
|
93
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
94
|
+
readonly when: "JPL Horizons refused a request parameter value with HTTP 400 — the same answer on every attempt. The message names the input that parameter carries.";
|
|
95
|
+
readonly recovery: "Horizons refuses this request the same way on every attempt, so do not retry it unchanged: correct the input the message names — the designation as a record-resolving form such as \"433;\", or the start, stop, step, or observer coordinates — then call again.";
|
|
74
96
|
readonly thrownBy: "service";
|
|
75
97
|
}, {
|
|
76
98
|
readonly reason: "horizons_unavailable";
|
|
@@ -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;
|
|
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;AAwIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAoC1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2a3B,CAAC"}
|