@cyanheads/astronomy-mcp-server 0.1.3 → 0.2.1

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 (42) hide show
  1. package/AGENTS.md +30 -24
  2. package/CLAUDE.md +30 -24
  3. package/Dockerfile +11 -7
  4. package/LICENSE +1 -1
  5. package/README.md +9 -5
  6. package/changelog/0.2.x/0.2.0.md +44 -0
  7. package/changelog/0.2.x/0.2.1.md +14 -0
  8. package/changelog/template.md +5 -3
  9. package/dist/mcp-server/resources/definitions/body.resource.d.ts +2 -2
  10. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +49 -39
  11. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
  12. package/dist/mcp-server/tools/definitions/find-events.tool.js +20 -12
  13. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
  14. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +16 -0
  15. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +68 -8
  17. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  18. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts +2 -2
  19. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +7 -7
  20. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +7 -2
  21. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
  22. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +10 -4
  23. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
  24. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts +7 -7
  25. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +4 -4
  26. package/dist/services/ephemeris/ephemeris-service.d.ts +3 -3
  27. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  28. package/dist/services/ephemeris/ephemeris-service.js +100 -24
  29. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  30. package/dist/services/ephemeris/types.d.ts +12 -2
  31. package/dist/services/ephemeris/types.d.ts.map +1 -1
  32. package/dist/services/ephemeris/types.js +7 -0
  33. package/dist/services/ephemeris/types.js.map +1 -1
  34. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  35. package/dist/services/horizons/horizons-service.js +6 -4
  36. package/dist/services/horizons/horizons-service.js.map +1 -1
  37. package/dist/services/satellite/satellite-service.d.ts +22 -3
  38. package/dist/services/satellite/satellite-service.d.ts.map +1 -1
  39. package/dist/services/satellite/satellite-service.js +95 -10
  40. package/dist/services/satellite/satellite-service.js.map +1 -1
  41. package/package.json +12 -11
  42. package/server.json +3 -3
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * @fileoverview astronomy_find_events — consolidated forward search for nine event
3
- * classes under one `event` enum. Eclipses take an observer for local
4
- * circumstances; the rest are geocentric. Validation gates fail fast when an
5
- * event needs a body or an observer that was not supplied.
3
+ * classes under one `event` enum. Solar eclipses take an observer for local
4
+ * circumstances; every other class, lunar eclipses included, is geocentric.
5
+ * Validation gates fail fast when an event needs a body or an observer that was
6
+ * not supplied, or when the body has no such event.
6
7
  * @module mcp-server/tools/definitions/find-events.tool
7
8
  */
8
9
  import { z } from '@cyanheads/mcp-ts-core';
@@ -10,15 +11,15 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
10
11
  export declare const FindEventsOutput: z.ZodObject<{
11
12
  events: z.ZodArray<z.ZodObject<{
12
13
  event: z.ZodEnum<{
13
- solar_eclipse: "solar_eclipse";
14
- lunar_eclipse: "lunar_eclipse";
14
+ conjunction: "conjunction";
15
15
  equinox: "equinox";
16
- solstice: "solstice";
16
+ lunar_eclipse: "lunar_eclipse";
17
+ max_elongation: "max_elongation";
17
18
  moon_quarter: "moon_quarter";
18
19
  opposition: "opposition";
19
- conjunction: "conjunction";
20
- max_elongation: "max_elongation";
21
20
  perigee_apogee: "perigee_apogee";
21
+ solar_eclipse: "solar_eclipse";
22
+ solstice: "solstice";
22
23
  }>;
23
24
  time_utc: z.ZodString;
24
25
  time_local: z.ZodOptional<z.ZodString>;
@@ -27,28 +28,32 @@ export declare const FindEventsOutput: z.ZodObject<{
27
28
  local_visible: z.ZodOptional<z.ZodBoolean>;
28
29
  contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
29
30
  which: z.ZodOptional<z.ZodEnum<{
31
+ december: "december";
32
+ june: "june";
30
33
  march: "march";
31
34
  september: "september";
32
- june: "june";
33
- december: "december";
34
35
  }>>;
35
36
  quarter: z.ZodOptional<z.ZodEnum<{
36
- new: "new";
37
37
  first_quarter: "first_quarter";
38
38
  full: "full";
39
39
  last_quarter: "last_quarter";
40
+ new: "new";
40
41
  }>>;
41
42
  body: z.ZodOptional<z.ZodString>;
43
+ conjunction_kind: z.ZodOptional<z.ZodEnum<{
44
+ inferior: "inferior";
45
+ superior: "superior";
46
+ }>>;
42
47
  elongation_degrees: z.ZodOptional<z.ZodNumber>;
43
48
  visibility: z.ZodOptional<z.ZodEnum<{
44
- morning: "morning";
45
49
  evening: "evening";
50
+ morning: "morning";
46
51
  }>>;
47
52
  apsis_kind: z.ZodOptional<z.ZodEnum<{
48
- perigee: "perigee";
53
+ aphelion: "aphelion";
49
54
  apogee: "apogee";
55
+ perigee: "perigee";
50
56
  perihelion: "perihelion";
51
- aphelion: "aphelion";
52
57
  }>>;
53
58
  distance_km: z.ZodOptional<z.ZodNumber>;
54
59
  distance_au: z.ZodOptional<z.ZodNumber>;
@@ -57,29 +62,30 @@ export declare const FindEventsOutput: z.ZodObject<{
57
62
  export type FindEventsOutputType = z.infer<typeof FindEventsOutput>;
58
63
  export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
59
64
  event: z.ZodEnum<{
60
- solar_eclipse: "solar_eclipse";
61
- lunar_eclipse: "lunar_eclipse";
65
+ conjunction: "conjunction";
62
66
  equinox: "equinox";
63
- solstice: "solstice";
67
+ lunar_eclipse: "lunar_eclipse";
68
+ max_elongation: "max_elongation";
64
69
  moon_quarter: "moon_quarter";
65
70
  opposition: "opposition";
66
- conjunction: "conjunction";
67
- max_elongation: "max_elongation";
68
71
  perigee_apogee: "perigee_apogee";
72
+ solar_eclipse: "solar_eclipse";
73
+ solstice: "solstice";
69
74
  }>;
70
75
  start: z.ZodOptional<z.ZodString>;
71
76
  count: z.ZodDefault<z.ZodNumber>;
72
77
  body: z.ZodOptional<z.ZodEnum<{
73
- sun: "sun";
74
- moon: "moon";
75
- mercury: "mercury";
76
- venus: "venus";
77
- mars: "mars";
78
+ earth: "earth";
78
79
  jupiter: "jupiter";
79
- saturn: "saturn";
80
- uranus: "uranus";
80
+ mars: "mars";
81
+ mercury: "mercury";
82
+ moon: "moon";
81
83
  neptune: "neptune";
82
84
  pluto: "pluto";
85
+ saturn: "saturn";
86
+ sun: "sun";
87
+ uranus: "uranus";
88
+ venus: "venus";
83
89
  }>>;
84
90
  latitude: z.ZodOptional<z.ZodNumber>;
85
91
  longitude: z.ZodOptional<z.ZodNumber>;
@@ -88,15 +94,15 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
88
94
  }, z.core.$strip>, z.ZodObject<{
89
95
  events: z.ZodArray<z.ZodObject<{
90
96
  event: z.ZodEnum<{
91
- solar_eclipse: "solar_eclipse";
92
- lunar_eclipse: "lunar_eclipse";
97
+ conjunction: "conjunction";
93
98
  equinox: "equinox";
94
- solstice: "solstice";
99
+ lunar_eclipse: "lunar_eclipse";
100
+ max_elongation: "max_elongation";
95
101
  moon_quarter: "moon_quarter";
96
102
  opposition: "opposition";
97
- conjunction: "conjunction";
98
- max_elongation: "max_elongation";
99
103
  perigee_apogee: "perigee_apogee";
104
+ solar_eclipse: "solar_eclipse";
105
+ solstice: "solstice";
100
106
  }>;
101
107
  time_utc: z.ZodString;
102
108
  time_local: z.ZodOptional<z.ZodString>;
@@ -105,28 +111,32 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
105
111
  local_visible: z.ZodOptional<z.ZodBoolean>;
106
112
  contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
107
113
  which: z.ZodOptional<z.ZodEnum<{
114
+ december: "december";
115
+ june: "june";
108
116
  march: "march";
109
117
  september: "september";
110
- june: "june";
111
- december: "december";
112
118
  }>>;
113
119
  quarter: z.ZodOptional<z.ZodEnum<{
114
- new: "new";
115
120
  first_quarter: "first_quarter";
116
121
  full: "full";
117
122
  last_quarter: "last_quarter";
123
+ new: "new";
118
124
  }>>;
119
125
  body: z.ZodOptional<z.ZodString>;
126
+ conjunction_kind: z.ZodOptional<z.ZodEnum<{
127
+ inferior: "inferior";
128
+ superior: "superior";
129
+ }>>;
120
130
  elongation_degrees: z.ZodOptional<z.ZodNumber>;
121
131
  visibility: z.ZodOptional<z.ZodEnum<{
122
- morning: "morning";
123
132
  evening: "evening";
133
+ morning: "morning";
124
134
  }>>;
125
135
  apsis_kind: z.ZodOptional<z.ZodEnum<{
126
- perigee: "perigee";
136
+ aphelion: "aphelion";
127
137
  apogee: "apogee";
138
+ perigee: "perigee";
128
139
  perihelion: "perihelion";
129
- aphelion: "aphelion";
130
140
  }>>;
131
141
  distance_km: z.ZodOptional<z.ZodNumber>;
132
142
  distance_au: z.ZodOptional<z.ZodNumber>;
@@ -144,8 +154,8 @@ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefini
144
154
  }, {
145
155
  readonly reason: "body_not_supported";
146
156
  readonly code: JsonRpcErrorCode.InvalidParams;
147
- readonly when: "max_elongation was requested for a body other than mercury or venus.";
148
- readonly recovery: "Use body \"mercury\" or \"venus\" for max_elongation; the outer planets have no greatest elongation.";
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
+ 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.";
149
159
  }, {
150
160
  readonly reason: "time_out_of_range";
151
161
  readonly code: JsonRpcErrorCode.InvalidParams;
@@ -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;;;;;;GAMG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAYjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsF3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4KzB,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;AAYjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4F3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgLzB,CAAC"}
@@ -1,15 +1,16 @@
1
1
  /**
2
2
  * @fileoverview astronomy_find_events — consolidated forward search for nine event
3
- * classes under one `event` enum. Eclipses take an observer for local
4
- * circumstances; the rest are geocentric. Validation gates fail fast when an
5
- * event needs a body or an observer that was not supplied.
3
+ * classes under one `event` enum. Solar eclipses take an observer for local
4
+ * circumstances; every other class, lunar eclipses included, is geocentric.
5
+ * Validation gates fail fast when an event needs a body or an observer that was
6
+ * not supplied, or when the body has no such event.
6
7
  * @module mcp-server/tools/definitions/find-events.tool
7
8
  */
8
9
  import { tool, z } from '@cyanheads/mcp-ts-core';
9
10
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
10
11
  import { getServerConfig } from '../../../config/server-config.js';
11
12
  import { getEphemerisService } from '../../../services/ephemeris/ephemeris-service.js';
12
- import { BODY_NAMES, EVENT_NAMES } from '../../../services/ephemeris/types.js';
13
+ import { EVENT_BODY_NAMES, EVENT_NAMES } from '../../../services/ephemeris/types.js';
13
14
  const BODY_EVENTS = new Set([
14
15
  'opposition',
15
16
  'conjunction',
@@ -38,7 +39,7 @@ export const FindEventsOutput = z.object({
38
39
  local_visible: z
39
40
  .boolean()
40
41
  .optional()
41
- .describe("True when a solar eclipse is above the observer's horizon at peak. Present for solar eclipses."),
42
+ .describe("True when the eclipsed Sun is above the observer's horizon at peak. Present for solar eclipses only — lunar eclipses are geocentric and report no local visibility."),
42
43
  contacts: z
43
44
  .record(z.string(), z.string().nullable())
44
45
  .optional()
@@ -55,6 +56,10 @@ export const FindEventsOutput = z.object({
55
56
  .string()
56
57
  .optional()
57
58
  .describe('The target body. Present for opposition/conjunction/max_elongation/perigee_apogee.'),
59
+ conjunction_kind: z
60
+ .enum(['inferior', 'superior'])
61
+ .optional()
62
+ .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.'),
58
63
  elongation_degrees: z
59
64
  .number()
60
65
  .optional()
@@ -81,7 +86,7 @@ export const FindEventsOutput = z.object({
81
86
  });
82
87
  export const findEventsTool = tool('astronomy_find_events', {
83
88
  title: 'astronomy-mcp-server: find sky events',
84
- 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. Solar and lunar eclipses take an observer location and report local visibility and contact times; equinoxes, solstices, and moon quarters are geocentric and need no location. The body-relative events (opposition, conjunction, max_elongation, perigee_apogee) require a `body` — max_elongation is defined only for mercury and venus, and perigee_apogee accepts the moon or a planet. Returns the next `count` occurrences (default 1). Start defaults to now; pass an IANA `timezone` for observer-local timestamps.',
89
+ 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. Only solar_eclipse takes an observer: pass latitude and longitude to get local circumstances (contact times plus `local_visible`). Every other class is geocentric and needs no location — a lunar eclipse is the same event everywhere the Moon is up, so it returns contact times and no `local_visible`. 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). Start defaults to now; pass an IANA `timezone` for observer-local timestamps.',
85
90
  annotations: { readOnlyHint: true, openWorldHint: false, idempotentHint: true },
86
91
  input: z.object({
87
92
  event: z.enum(EVENT_NAMES).describe('Which class of event to search for.'),
@@ -97,21 +102,21 @@ export const findEventsTool = tool('astronomy_find_events', {
97
102
  .default(1)
98
103
  .describe('Number of forward occurrences to return. Default 1, max 20.'),
99
104
  body: z
100
- .enum(BODY_NAMES)
105
+ .enum(EVENT_BODY_NAMES)
101
106
  .optional()
102
- .describe('Target body — required for opposition, conjunction, max_elongation, and perigee_apogee; ignored otherwise.'),
107
+ .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.'),
103
108
  latitude: z
104
109
  .number()
105
110
  .min(-90)
106
111
  .max(90)
107
112
  .optional()
108
- .describe('Observer latitude in decimal degrees — required for eclipse events to get local circumstances.'),
113
+ .describe('Observer latitude in decimal degrees — required for solar_eclipse to get local circumstances, ignored by every other event.'),
109
114
  longitude: z
110
115
  .number()
111
116
  .min(-180)
112
117
  .max(180)
113
118
  .optional()
114
- .describe('Observer longitude in decimal degrees — required for eclipse events.'),
119
+ .describe('Observer longitude in decimal degrees — required for solar_eclipse, ignored by every other event.'),
115
120
  elevation: z
116
121
  .number()
117
122
  .default(0)
@@ -141,8 +146,8 @@ export const findEventsTool = tool('astronomy_find_events', {
141
146
  {
142
147
  reason: 'body_not_supported',
143
148
  code: JsonRpcErrorCode.InvalidParams,
144
- when: 'max_elongation was requested for a body other than mercury or venus.',
145
- recovery: 'Use body "mercury" or "venus" for max_elongation; the outer planets have no greatest elongation.',
149
+ 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.',
150
+ 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.',
146
151
  },
147
152
  {
148
153
  reason: 'time_out_of_range',
@@ -191,6 +196,7 @@ export const findEventsTool = tool('astronomy_find_events', {
191
196
  ...(r.which ? { which: r.which } : {}),
192
197
  ...(r.quarter ? { quarter: r.quarter } : {}),
193
198
  ...(r.body ? { body: r.body } : {}),
199
+ ...(r.conjunctionKind ? { conjunction_kind: r.conjunctionKind } : {}),
194
200
  ...(r.elongationDegrees !== undefined ? { elongation_degrees: r.elongationDegrees } : {}),
195
201
  ...(r.visibility ? { visibility: r.visibility } : {}),
196
202
  ...(r.apsisKind ? { apsis_kind: r.apsisKind } : {}),
@@ -215,6 +221,8 @@ export const findEventsTool = tool('astronomy_find_events', {
215
221
  lines.push(`time_utc: ${e.time_utc}${e.time_local ? ` | time_local: ${e.time_local}` : ''}`);
216
222
  if (e.kind)
217
223
  lines.push(`**Kind:** ${e.kind}`);
224
+ if (e.conjunction_kind)
225
+ lines.push(`**Conjunction:** ${e.conjunction_kind}`);
218
226
  if (e.obscuration !== undefined)
219
227
  lines.push(`**Obscuration:** ${e.obscuration === null ? 'unavailable' : `${(e.obscuration * 100).toFixed(1)}%`}`);
220
228
  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;;;;;;GAMG;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,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAkB,MAAM,+BAA+B,CAAC;AAExF,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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;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;;;;;;;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,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,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CACP,4GAA4G,CAC7G;QACH,aAAa,EAAE,CAAC;aACb,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,qKAAqK,CACtK;QACH,QAAQ,EAAE,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AC;CACF,CAAC,CAAC"}
@@ -43,6 +43,21 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
43
43
  readonly code: JsonRpcErrorCode.InvalidParams;
44
44
  readonly when: "The start or stop timestamp is not a parseable ISO 8601 instant.";
45
45
  readonly recovery: "Pass start and stop as ISO 8601 UTC timestamps, e.g. 2024-01-01T00:00:00Z, then retry.";
46
+ }, {
47
+ readonly reason: "invalid_time_range";
48
+ readonly code: JsonRpcErrorCode.InvalidParams;
49
+ readonly when: "The resolved stop instant is at or before the resolved start instant.";
50
+ readonly recovery: "Pass a stop that is later than start, or omit stop for a 24-hour span, then retry.";
51
+ }, {
52
+ readonly reason: "incomplete_observer";
53
+ readonly code: JsonRpcErrorCode.InvalidParams;
54
+ readonly when: "Exactly one of latitude and longitude was supplied.";
55
+ readonly recovery: "Supply latitude and longitude together for a topocentric ephemeris, or omit both for a geocentric one.";
56
+ }, {
57
+ readonly reason: "invalid_step";
58
+ readonly code: JsonRpcErrorCode.InvalidParams;
59
+ readonly when: "The step is not a positive count followed by a unit of m, h, d, mo, or y.";
60
+ readonly recovery: "Pass step as a count plus m, h, d, mo, or y — for example \"10m\", \"1h\", or \"1d\" — then retry.";
46
61
  }, {
47
62
  readonly reason: "body_not_found";
48
63
  readonly code: JsonRpcErrorCode.NotFound;
@@ -58,5 +73,6 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
58
73
  readonly truncated: z.ZodBoolean;
59
74
  readonly shown: z.ZodNumber;
60
75
  readonly cap: z.ZodNumber;
76
+ readonly notice: z.ZodOptional<z.ZodString>;
61
77
  }>;
62
78
  //# sourceMappingURL=get-ephemeris.tool.d.ts.map
@@ -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;AAMjE,eAAO,MAAM,eAAe;;;;;;;;;;;iBA8B1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuJ3B,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;AAiBjE,eAAO,MAAM,eAAe;;;;;;;;;;;iBA8B1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuN3B,CAAC"}
@@ -9,6 +9,16 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
9
9
  import { getHorizonsService } from '../../../services/horizons/horizons-service.js';
10
10
  /** Inline ephemeris-row cap disclosed via enrichment — mirrors HorizonsService MAX_ROWS. */
11
11
  const INLINE_ROW_CAP = 200;
12
+ /**
13
+ * Accepted `step` shape: a positive count followed by one of Horizons' calendar step
14
+ * units — m (minutes), h (hours), d (days), mo (months), y (years). `mo` precedes `m`
15
+ * in the alternation so "1mo" reads as months rather than a minute step with a stray
16
+ * character. An optional single space is tolerated because Horizons itself writes
17
+ * "1 d". Anything else — a bare number, an unsupported unit, or free text — is a
18
+ * caller mistake that would otherwise be spent on an upstream request and come back
19
+ * mislabelled as a Horizons outage.
20
+ */
21
+ const STEP_PATTERN = /^[1-9]\d* ?(?:mo|[mhdy])$/i;
12
22
  export const EphemerisOutput = z.object({
13
23
  designation: z.string().describe('The body designation echoed from the request.'),
14
24
  points: z
@@ -36,7 +46,7 @@ export const EphemerisOutput = z.object({
36
46
  });
37
47
  export const getEphemerisTool = tool('astronomy_get_ephemeris', {
38
48
  title: 'astronomy-mcp-server: get small-body ephemeris',
39
- description: 'Fetch a time-series ephemeris for a small body (asteroid or comet) or spacecraft from JPL Horizons — RA/Dec, distance, and apparent magnitude over a span, optionally with observer-relative altitude/azimuth. This covers objects the in-process major-body set cannot. The designation is passed to Horizons verbatim, so it must be in a form Horizons resolves to a single record: a numbered asteroid takes a trailing-semicolon record lookup (e.g. "433;" for Eros, "1;" for Ceres), and a periodic comet takes the DES + closest-apparition form (e.g. "DES=1P;CAP" for Halley) — a bare name like "433 Eros" or "1P/Halley" returns no match or an ambiguous record list and is rejected. Spacecraft take their negative SPK-ID. `start` and `stop` are ISO 8601 UTC; `step` is a Horizons step string such as "1d", "1h", or "10m". Supplying observer latitude/longitude yields topocentric coordinates and adds alt/az. This is a gated, network-backed extension (JPL Horizons is keyless but rate-limited and best-effort); large spans truncate inline — widen the step to reduce rows.',
49
+ description: 'Fetch a time-series ephemeris for a small body (asteroid or comet) or spacecraft from JPL Horizons — RA/Dec, distance, and apparent magnitude over a span, optionally with observer-relative altitude/azimuth. This covers objects the in-process major-body set cannot. The designation is passed to Horizons verbatim, so it must be in a form Horizons resolves to a single record: a numbered asteroid takes a trailing-semicolon record lookup (e.g. "433;" for Eros, "1;" for Ceres), and a periodic comet takes the DES + closest-apparition form (e.g. "DES=1P;CAP" for Halley) — a bare name like "433 Eros" or "1P/Halley" returns no match or an ambiguous record list and is rejected. Spacecraft take their negative SPK-ID. `start` and `stop` are ISO 8601 UTC and `stop` must be after `start`; `step` is a count plus a unit of m, h, d, mo, or y, such as "1d", "1h", or "10m". Supplying observer latitude/longitude yields topocentric coordinates and adds alt/az — supply both or neither. This is a gated, network-backed extension (JPL Horizons is keyless but rate-limited and best-effort); large spans truncate inline at 200 rows, and the truncation notice carries the instant to resume from — re-call from there, or split the range into smaller adjacent spans, keeping the same step so no sample is lost.',
40
50
  annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
41
51
  input: z.object({
42
52
  designation: z
@@ -48,13 +58,13 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
48
58
  .min(-90)
49
59
  .max(90)
50
60
  .optional()
51
- .describe('Observer latitude in decimal degrees — supply with longitude for topocentric coordinates and alt/az.'),
61
+ .describe('Observer latitude in decimal degrees — supply together with longitude for topocentric coordinates and alt/az. Supplying one without the other is rejected.'),
52
62
  longitude: z
53
63
  .number()
54
64
  .min(-180)
55
65
  .max(180)
56
66
  .optional()
57
- .describe('Observer longitude in decimal degrees.'),
67
+ .describe('Observer longitude in decimal degrees. Supply together with latitude; one without the other is rejected.'),
58
68
  elevation: z
59
69
  .number()
60
70
  .default(0)
@@ -66,17 +76,21 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
66
76
  stop: z
67
77
  .string()
68
78
  .optional()
69
- .describe('Ephemeris stop as an ISO 8601 UTC string. Defaults to 24 hours after start.'),
79
+ .describe('Ephemeris stop as an ISO 8601 UTC string, and must be later than start. Defaults to 24 hours after start.'),
70
80
  step: z
71
81
  .string()
72
82
  .default('1h')
73
- .describe('Horizons step size string, e.g. "1d", "1h", "10m". Default "1h".'),
83
+ .describe('Step size as a positive count plus a unit of m (minutes), h (hours), d (days), mo (months), or y (years), e.g. "10m", "1h", "1d". Default "1h".'),
74
84
  }),
75
85
  output: EphemerisOutput,
76
86
  enrichment: {
77
87
  truncated: z.boolean().describe('True when Horizons returned more rows than the inline cap.'),
78
88
  shown: z.number().describe('Number of ephemeris rows returned.'),
79
89
  cap: z.number().describe('The inline row cap that was applied.'),
90
+ notice: z
91
+ .string()
92
+ .optional()
93
+ .describe('How to retrieve the omitted rows, present only when the result was truncated.'),
80
94
  },
81
95
  errors: [
82
96
  {
@@ -85,6 +99,24 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
85
99
  when: 'The start or stop timestamp is not a parseable ISO 8601 instant.',
86
100
  recovery: 'Pass start and stop as ISO 8601 UTC timestamps, e.g. 2024-01-01T00:00:00Z, then retry.',
87
101
  },
102
+ {
103
+ reason: 'invalid_time_range',
104
+ code: JsonRpcErrorCode.InvalidParams,
105
+ when: 'The resolved stop instant is at or before the resolved start instant.',
106
+ recovery: 'Pass a stop that is later than start, or omit stop for a 24-hour span, then retry.',
107
+ },
108
+ {
109
+ reason: 'incomplete_observer',
110
+ code: JsonRpcErrorCode.InvalidParams,
111
+ when: 'Exactly one of latitude and longitude was supplied.',
112
+ recovery: 'Supply latitude and longitude together for a topocentric ephemeris, or omit both for a geocentric one.',
113
+ },
114
+ {
115
+ reason: 'invalid_step',
116
+ code: JsonRpcErrorCode.InvalidParams,
117
+ when: 'The step is not a positive count followed by a unit of m, h, d, mo, or y.',
118
+ recovery: 'Pass step as a count plus m, h, d, mo, or y — for example "10m", "1h", or "1d" — then retry.',
119
+ },
88
120
  {
89
121
  reason: 'body_not_found',
90
122
  code: JsonRpcErrorCode.NotFound,
@@ -115,7 +147,25 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
115
147
  }
116
148
  const start = input.start ?? new Date().toISOString();
117
149
  const stop = input.stop ?? new Date(new Date(start).getTime() + 24 * 3600 * 1000).toISOString();
118
- const observer = typeof input.latitude === 'number' && typeof input.longitude === 'number'
150
+ if (new Date(stop).getTime() <= new Date(start).getTime()) {
151
+ throw ctx.fail('invalid_time_range', `stop "${stop}" is not after start "${start}".`, {
152
+ ...ctx.recoveryFor('invalid_time_range'),
153
+ });
154
+ }
155
+ /**
156
+ * A lone coordinate used to fall through to a geocentric query, silently dropping
157
+ * the observer the caller asked for along with the alt/az columns it would have
158
+ * produced. Reject the pair instead of reinterpreting the request.
159
+ */
160
+ const hasLatitude = input.latitude !== undefined;
161
+ const hasLongitude = input.longitude !== undefined;
162
+ if (hasLatitude !== hasLongitude) {
163
+ throw ctx.fail('incomplete_observer', `Observer ${hasLatitude ? 'latitude' : 'longitude'} was supplied without ${hasLatitude ? 'longitude' : 'latitude'}.`, { ...ctx.recoveryFor('incomplete_observer') });
164
+ }
165
+ if (!STEP_PATTERN.test(input.step)) {
166
+ throw ctx.fail('invalid_step', `Invalid step "${input.step}". Expected a positive count plus m, h, or d, e.g. "10m".`, { ...ctx.recoveryFor('invalid_step') });
167
+ }
168
+ const observer = input.latitude !== undefined && input.longitude !== undefined
119
169
  ? { latitude: input.latitude, longitude: input.longitude, elevation: input.elevation }
120
170
  : undefined;
121
171
  const result = await svc.ephemeris(input.designation, start, stop, input.step, ctx, observer);
@@ -127,10 +177,20 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
127
177
  * Emit the truncation enrichment on every call — the declared block requires
128
178
  * `truncated`/`shown`/`cap`, so a non-truncated result must still populate them
129
179
  * or the effective-output parse fails. INLINE_ROW_CAP mirrors the service's MAX_ROWS.
180
+ * The truncated branch goes through `ctx.enrich.truncated`, which writes those
181
+ * three fields plus the `notice` carrying the retrieval loop.
130
182
  */
131
- ctx.enrich({ truncated: result.truncated, shown: result.points.length, cap: INLINE_ROW_CAP });
132
183
  if (result.truncated) {
133
- ctx.enrich.notice('Widen the step (e.g. from "10m" to "1h") or shorten the time span to fit within the inline row cap.');
184
+ // A truncated result is a full page, so its last row is the exact resume instant.
185
+ const resumeFrom = result.points.at(-1)?.timeUtc;
186
+ ctx.enrich.truncated({
187
+ shown: result.points.length,
188
+ cap: INLINE_ROW_CAP,
189
+ guidance: `Capped at ${INLINE_ROW_CAP} rows${resumeFrom ? `, ending at ${resumeFrom}` : ''}. To retrieve the omitted samples, re-call with start set to that instant, or split the requested range into smaller adjacent spans; keep the same step either way and repeat until truncated is false. Widening the step is not equivalent — it discards samples the original range asked for.`,
190
+ });
191
+ }
192
+ else {
193
+ ctx.enrich({ truncated: false, shown: result.points.length, cap: INLINE_ROW_CAP });
134
194
  }
135
195
  const out = {
136
196
  designation: result.designation,
@@ -1 +1 @@
1
- {"version":3,"file":"get-ephemeris.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,4FAA4F;AAC5F,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IACjF,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC;SACE,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC9D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QAC1E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACpE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QACpF,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,mEAAmE,CAAC;QAChF,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,uFAAuF,CACxF;QACH,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,2FAA2F,CAC5F;KACJ,CAAC;SACD,QAAQ,CAAC,6DAA6D,CAAC,CAC3E;SACA,Q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AC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CACzL,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -14,10 +14,10 @@ export declare const MoonPhaseOutput: z.ZodObject<{
14
14
  age_days: z.ZodNumber;
15
15
  next_quarters: z.ZodArray<z.ZodObject<{
16
16
  quarter: z.ZodEnum<{
17
- new: "new";
18
17
  first_quarter: "first_quarter";
19
18
  full: "full";
20
19
  last_quarter: "last_quarter";
20
+ new: "new";
21
21
  }>;
22
22
  time_utc: z.ZodString;
23
23
  time_local: z.ZodOptional<z.ZodString>;
@@ -36,10 +36,10 @@ export declare const getMoonPhaseTool: import("@cyanheads/mcp-ts-core").ToolDefi
36
36
  age_days: z.ZodNumber;
37
37
  next_quarters: z.ZodArray<z.ZodObject<{
38
38
  quarter: z.ZodEnum<{
39
- new: "new";
40
39
  first_quarter: "first_quarter";
41
40
  full: "full";
42
41
  last_quarter: "last_quarter";
42
+ new: "new";
43
43
  }>;
44
44
  time_utc: z.ZodString;
45
45
  time_local: z.ZodOptional<z.ZodString>;
@@ -42,16 +42,16 @@ export declare const RiseSetOutput: z.ZodObject<{
42
42
  export type RiseSetOutputType = z.infer<typeof RiseSetOutput>;
43
43
  export declare const getRiseSetTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
44
44
  body: z.ZodEnum<{
45
- sun: "sun";
46
- moon: "moon";
47
- mercury: "mercury";
48
- venus: "venus";
49
- mars: "mars";
50
45
  jupiter: "jupiter";
51
- saturn: "saturn";
52
- uranus: "uranus";
46
+ mars: "mars";
47
+ mercury: "mercury";
48
+ moon: "moon";
53
49
  neptune: "neptune";
54
50
  pluto: "pluto";
51
+ saturn: "saturn";
52
+ sun: "sun";
53
+ uranus: "uranus";
54
+ venus: "venus";
55
55
  }>;
56
56
  latitude: z.ZodNumber;
57
57
  longitude: z.ZodNumber;
@@ -58,13 +58,18 @@ export declare const getSatellitePassesTool: import("@cyanheads/mcp-ts-core").To
58
58
  }, {
59
59
  readonly reason: "time_out_of_range";
60
60
  readonly code: JsonRpcErrorCode.InvalidParams;
61
- readonly when: "The start instant is outside the SGP4 high-accuracy span (≈1900–2100).";
62
- readonly recovery: "Use a start date between 1900 and 2100 — TLEs are only accurate within weeks of epoch.";
61
+ readonly when: "The start instant is outside the SGP4 high-accuracy span (≈1900–2100), or too far from the epoch of the current element set for SGP4 to reach.";
62
+ readonly recovery: "Request a start within about a month of today — element sets only describe the orbit for weeks around their epoch.";
63
63
  }, {
64
64
  readonly reason: "tle_not_found";
65
65
  readonly code: JsonRpcErrorCode.NotFound;
66
66
  readonly when: "CelesTrak has no current element set for the NORAD ID.";
67
67
  readonly recovery: "Verify the catalog number at celestrak.org; the object may have decayed or never been catalogued.";
68
+ }, {
69
+ readonly reason: "object_decayed";
70
+ readonly code: JsonRpcErrorCode.NotFound;
71
+ readonly when: "A current element set will not propagate to a window near its own epoch — the signature of an object that has reentered.";
72
+ readonly recovery: "Pick an object that is still in orbit; confirm its status at celestrak.org before requesting passes.";
68
73
  }, {
69
74
  readonly reason: "celestrak_unavailable";
70
75
  readonly code: JsonRpcErrorCode.ServiceUnavailable;