@cyanheads/astronomy-mcp-server 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/AGENTS.md +17 -16
  2. package/CLAUDE.md +17 -16
  3. package/Dockerfile +91 -36
  4. package/README.md +69 -94
  5. package/changelog/0.4.x/0.4.1.md +27 -0
  6. package/changelog/0.4.x/0.4.2.md +37 -0
  7. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +1 -1
  8. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
  9. package/dist/mcp-server/resources/definitions/body.resource.d.ts.map +1 -1
  10. package/dist/mcp-server/resources/definitions/body.resource.js +1 -3
  11. package/dist/mcp-server/resources/definitions/body.resource.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +31 -4
  13. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/find-events.tool.js +99 -25
  15. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
  16. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +29 -7
  17. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  18. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +219 -49
  19. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  20. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +1 -0
  22. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +49 -2
  24. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +85 -43
  26. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +28 -4
  28. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
  29. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +97 -23
  30. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
  31. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
  32. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +2 -1
  33. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
  34. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/list-visible.tool.js +1 -0
  36. package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
  37. package/dist/services/ephemeris/ephemeris-service.d.ts +78 -15
  38. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  39. package/dist/services/ephemeris/ephemeris-service.js +374 -98
  40. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  41. package/dist/services/ephemeris/iso-time.d.ts +2 -2
  42. package/dist/services/ephemeris/iso-time.js +5 -5
  43. package/dist/services/ephemeris/types.d.ts +42 -1
  44. package/dist/services/ephemeris/types.d.ts.map +1 -1
  45. package/dist/services/ephemeris/types.js +16 -0
  46. package/dist/services/ephemeris/types.js.map +1 -1
  47. package/dist/services/horizons/horizons-service.d.ts +25 -3
  48. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  49. package/dist/services/horizons/horizons-service.js +154 -15
  50. package/dist/services/horizons/horizons-service.js.map +1 -1
  51. package/dist/services/horizons/types.d.ts +8 -4
  52. package/dist/services/horizons/types.d.ts.map +1 -1
  53. package/dist/services/satellite/satellite-service.d.ts +48 -10
  54. package/dist/services/satellite/satellite-service.d.ts.map +1 -1
  55. package/dist/services/satellite/satellite-service.js +215 -102
  56. package/dist/services/satellite/satellite-service.js.map +1 -1
  57. package/dist/services/satellite/types.d.ts +36 -2
  58. package/dist/services/satellite/types.d.ts.map +1 -1
  59. package/dist/services/satellite/types.js.map +1 -1
  60. package/package.json +12 -11
  61. package/server.json +10 -24
@@ -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. Every search
6
- * stops at the end of the supported span, with a notice when that cuts a list short.
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,34 @@ 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. Each eclipse search restarts at the next new or full moon after
35
+ * its start, and a local solar eclipse can peak more than two hours before the geocentric
36
+ * new moon, so an hour past it is still before that new moon and finds the same eclipse.
37
+ * Consecutive eclipses of one class lie at least 29 days apart, so none is skipped.
38
+ */
39
+ const ECLIPSE_RESUME_OFFSET_MS = 10 * 86_400_000;
17
40
  const BODY_EVENTS = new Set([
18
41
  'opposition',
19
42
  'conjunction',
20
43
  'max_elongation',
21
44
  'perigee_apogee',
22
45
  ]);
23
- /** The event classes whose records an observer changes. */
46
+ /** The event classes whose records an observer changes, and that resume ten days on. */
24
47
  const ECLIPSE_EVENTS = new Set(['solar_eclipse', 'lunar_eclipse']);
25
48
  export const FindEventsOutput = z.object({
26
49
  events: z
@@ -72,11 +95,19 @@ export const FindEventsOutput = z.object({
72
95
  body: z
73
96
  .string()
74
97
  .optional()
75
- .describe('The target body. Present for opposition/conjunction/max_elongation/perigee_apogee.'),
98
+ .describe('The target body — the first of the pair for a two-body conjunction. Present for opposition/conjunction/max_elongation/perigee_apogee.'),
99
+ body2: z
100
+ .string()
101
+ .optional()
102
+ .describe('The second body of a two-body conjunction, as requested. Present only when `body2` was supplied.'),
103
+ separation_degrees: z
104
+ .number()
105
+ .optional()
106
+ .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
107
  conjunction_kind: z
77
108
  .enum(['inferior', 'superior'])
78
109
  .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.'),
110
+ .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
111
  elongation_degrees: z
81
112
  .number()
82
113
  .optional()
@@ -103,7 +134,7 @@ export const FindEventsOutput = z.object({
103
134
  });
104
135
  export const findEventsTool = tool('astronomy_find_events', {
105
136
  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.",
137
+ 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
138
  annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
108
139
  input: z.object({
109
140
  event: z.enum(EVENT_NAMES).describe('Which class of event to search for.'),
@@ -115,13 +146,17 @@ export const findEventsTool = tool('astronomy_find_events', {
115
146
  .number()
116
147
  .int()
117
148
  .min(1)
118
- .max(20)
149
+ .max(EVENTS_COUNT_CEILING)
119
150
  .default(1)
120
- .describe('Number of forward occurrences to return. Default 1, max 20.'),
151
+ .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
152
  body: z
122
153
  .enum(EVENT_BODY_NAMES)
123
154
  .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.'),
155
+ .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.'),
156
+ body2: z
157
+ .enum(PAIR_BODY_NAMES)
158
+ .optional()
159
+ .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
160
  latitude: z
126
161
  .number()
127
162
  .min(-90)
@@ -146,10 +181,16 @@ export const findEventsTool = tool('astronomy_find_events', {
146
181
  output: FindEventsOutput,
147
182
  enrichment: {
148
183
  totalCount: z.number().describe('Number of event occurrences returned.'),
184
+ truncated: z
185
+ .boolean()
186
+ .optional()
187
+ .describe('True when `count` exceeded the per-call cap and only the first events came back.'),
188
+ shown: z.number().optional().describe('Number of events returned when the cap applied.'),
189
+ cap: z.number().optional().describe('The per-call event cap that was applied.'),
149
190
  notice: z
150
191
  .string()
151
192
  .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.'),
193
+ .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
194
  },
154
195
  errors: [
155
196
  {
@@ -167,8 +208,16 @@ export const findEventsTool = tool('astronomy_find_events', {
167
208
  {
168
209
  reason: 'body_not_supported',
169
210
  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.',
211
+ 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.',
212
+ 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.',
213
+ thrownBy: 'service',
214
+ },
215
+ {
216
+ reason: 'invalid_body_pair',
217
+ code: JsonRpcErrorCode.InvalidParams,
218
+ 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.',
219
+ // Verbatim the hint EphemerisService throws with where it rejects the pair.
220
+ 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
221
  thrownBy: 'service',
173
222
  },
174
223
  {
@@ -184,6 +233,7 @@ export const findEventsTool = tool('astronomy_find_events', {
184
233
  reason: 'time_out_of_range',
185
234
  code: JsonRpcErrorCode.InvalidParams,
186
235
  when: "The requested start instant is outside the engine's high-accuracy span (≈1900–2100).",
236
+ // resolveTime() throws this reason with no hint, so this string is the wire hint.
187
237
  recovery: 'Use a start date between 1900 and 2100 and retry.',
188
238
  thrownBy: 'service',
189
239
  },
@@ -209,10 +259,10 @@ export const findEventsTool = tool('astronomy_find_events', {
209
259
  * location entirely, so a lone coordinate there changes nothing and passes.
210
260
  */
211
261
  if (ECLIPSE_EVENTS.has(input.event) && hasLatitude !== hasLongitude) {
212
- throw ctx.fail('incomplete_observer', `Observer ${hasLatitude ? 'latitude' : 'longitude'} was supplied without ${hasLatitude ? 'longitude' : 'latitude'}.`, { ...ctx.recoveryFor('incomplete_observer') });
262
+ throw ctx.fail('incomplete_observer', `Observer ${hasLatitude ? 'latitude' : 'longitude'} was supplied without ${hasLatitude ? 'longitude' : 'latitude'}.`);
213
263
  }
214
264
  if (BODY_EVENTS.has(input.event) && !input.body) {
215
- throw ctx.fail('body_required', undefined, { ...ctx.recoveryFor('body_required') });
265
+ throw ctx.fail('body_required');
216
266
  }
217
267
  const observer = hasObserver
218
268
  ? {
@@ -221,26 +271,46 @@ export const findEventsTool = tool('astronomy_find_events', {
221
271
  elevation: input.elevation,
222
272
  }
223
273
  : undefined;
274
+ const served = Math.min(input.count, EVENTS_PER_CALL);
224
275
  const records = svc.findEvents(input.event, {
225
276
  start,
226
- count: input.count,
277
+ count: served,
227
278
  ...(input.body ? { body: input.body } : {}),
279
+ ...(input.body2 ? { body2: input.body2 } : {}),
228
280
  ...(observer ? { observer } : {}),
229
281
  ...(timezone ? { timezone } : {}),
230
282
  });
231
283
  ctx.log.info('Found events', { event: input.event, count: records.length });
232
284
  ctx.enrich.total(records.length);
233
285
  /**
234
- * Every search is unbounded except by the supported span, so a short list means the
235
- * span ended. `notice` is last-wins across enrichment writers, so caveats are collected
236
- * and written once.
286
+ * Every search is unbounded except by the supported span, so fewer than `served` means
287
+ * the span ended; a full `served` short of `count` means the cap held the rest back. The
288
+ * two never coincide, so `notice` — last-wins across enrichment writers — has one writer.
237
289
  */
238
- const caveats = [];
239
- if (records.length < input.count) {
240
- caveats.push(`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
+ const last = records.at(-1);
291
+ 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.`;
292
+ if (records.length < served) {
293
+ ctx.enrich.notice(spanEnd);
294
+ }
295
+ else if (input.count > served && last) {
296
+ /**
297
+ * A 20th event within the resume offset of the span end puts the resume start past
298
+ * it, where every call fails time_out_of_range. The offset is shorter than the gap to
299
+ * the next event of the class, so no event lies in that window and the span ended.
300
+ */
301
+ const offset = ECLIPSE_EVENTS.has(input.event) ? ECLIPSE_RESUME_OFFSET_MS : RESUME_OFFSET_MS;
302
+ const resumeAt = new Date(Date.parse(last.timeUtc) + offset);
303
+ if (resumeAt.getUTCFullYear() > SUPPORTED_SPAN.lastYear) {
304
+ ctx.enrich.notice(spanEnd);
305
+ }
306
+ else {
307
+ ctx.enrich.truncated({
308
+ shown: records.length,
309
+ cap: EVENTS_PER_CALL,
310
+ 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.`,
311
+ });
312
+ }
241
313
  }
242
- if (caveats.length > 0)
243
- ctx.enrich.notice(caveats.join(' '));
244
314
  const out = {
245
315
  events: records.map((r) => ({
246
316
  event: r.event,
@@ -262,6 +332,8 @@ export const findEventsTool = tool('astronomy_find_events', {
262
332
  ...(r.which ? { which: r.which } : {}),
263
333
  ...(r.quarter ? { quarter: r.quarter } : {}),
264
334
  ...(r.body ? { body: r.body } : {}),
335
+ ...(r.body2 ? { body2: r.body2 } : {}),
336
+ ...(r.separationDegrees !== undefined ? { separation_degrees: r.separationDegrees } : {}),
265
337
  ...(r.conjunctionKind ? { conjunction_kind: r.conjunctionKind } : {}),
266
338
  ...(r.elongationDegrees !== undefined ? { elongation_degrees: r.elongationDegrees } : {}),
267
339
  ...(r.visibility ? { visibility: r.visibility } : {}),
@@ -282,13 +354,15 @@ export const findEventsTool = tool('astronomy_find_events', {
282
354
  if (e.quarter)
283
355
  headline += ` (${e.quarter})`;
284
356
  if (e.body)
285
- headline += ` — ${e.body}`;
357
+ headline += ` — ${e.body}${e.body2 ? ` and ${e.body2}` : ''}`;
286
358
  lines.push(headline);
287
359
  lines.push(`time_utc: ${e.time_utc}${e.time_local ? ` | time_local: ${e.time_local}` : ''}`);
288
360
  if (e.kind)
289
361
  lines.push(`**Kind:** ${e.kind}`);
290
362
  if (e.conjunction_kind)
291
363
  lines.push(`**Conjunction:** ${e.conjunction_kind}`);
364
+ if (e.separation_degrees !== undefined)
365
+ lines.push(`**Separation:** ${num(e.separation_degrees, 3, '°')}`);
292
366
  if (e.obscuration !== undefined)
293
367
  lines.push(`**Obscuration:** ${e.obscuration === null ? 'unavailable' : pct(e.obscuration, 1)}`);
294
368
  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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AAC;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
+ {"version":3,"file":"find-events.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-events.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;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,EACL,gBAAgB,EAChB,WAAW,EAEX,eAAe,GAChB,MAAM,+BAA+B,CAAC;AAEvC,2FAA2F;AAC3F,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,wBAAwB,GAAG,EAAE,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAY;IACrC,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,gBAAgB;CACjB,CAAC,CAAC;AAEH,wFAAwF;AACxF,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,CAAC;SACE,MAAM,CAAC;QACN,KAAK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AAC,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, or names a calendar date that does not exist (e.g. 2026-02-30).";
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 at or before the resolved start instant.";
52
- readonly recovery: "Pass a stop that is later than start, or omit stop for a 24-hour span, then retry.";
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, or the designation is ambiguous (a bare comet name matches multiple apparition records).";
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;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"}
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;AAuIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAoC1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAya3B,CAAC"}