@cyanheads/astronomy-mcp-server 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +30 -24
- package/CLAUDE.md +30 -24
- package/Dockerfile +11 -7
- package/LICENSE +1 -1
- package/README.md +3 -2
- package/changelog/0.2.x/0.2.0.md +44 -0
- package/changelog/template.md +5 -3
- package/dist/mcp-server/resources/definitions/body.resource.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +49 -39
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.js +20 -12
- package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +7 -7
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts +7 -7
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +4 -4
- package/dist/services/ephemeris/ephemeris-service.d.ts +3 -3
- package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.js +100 -24
- package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
- package/dist/services/ephemeris/types.d.ts +12 -2
- package/dist/services/ephemeris/types.d.ts.map +1 -1
- package/dist/services/ephemeris/types.js +7 -0
- package/dist/services/ephemeris/types.js.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +6 -4
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/satellite/satellite-service.d.ts +2 -1
- package/dist/services/satellite/satellite-service.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.js +10 -4
- package/dist/services/satellite/satellite-service.js.map +1 -1
- package/package.json +12 -11
- 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.
|
|
4
|
-
* circumstances;
|
|
5
|
-
* event needs a body or an observer that was
|
|
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
|
-
|
|
14
|
-
lunar_eclipse: "lunar_eclipse";
|
|
14
|
+
conjunction: "conjunction";
|
|
15
15
|
equinox: "equinox";
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
lunar_eclipse: "lunar_eclipse";
|
|
65
|
+
conjunction: "conjunction";
|
|
62
66
|
equinox: "equinox";
|
|
63
|
-
|
|
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
|
-
|
|
74
|
-
moon: "moon";
|
|
75
|
-
mercury: "mercury";
|
|
76
|
-
venus: "venus";
|
|
77
|
-
mars: "mars";
|
|
78
|
+
earth: "earth";
|
|
78
79
|
jupiter: "jupiter";
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
92
|
-
lunar_eclipse: "lunar_eclipse";
|
|
97
|
+
conjunction: "conjunction";
|
|
93
98
|
equinox: "equinox";
|
|
94
|
-
|
|
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
|
-
|
|
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: "
|
|
148
|
-
readonly recovery: "
|
|
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
|
|
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.
|
|
4
|
-
* circumstances;
|
|
5
|
-
* event needs a body or an observer that was
|
|
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 {
|
|
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
|
|
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.
|
|
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(
|
|
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
|
|
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
|
|
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: '
|
|
145
|
-
recovery: '
|
|
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
|
|
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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5F,IAAI,CAAC,CAAC,WAAW,KAAK,SAAS;gBAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YAC5F,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;gBACf,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,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;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"}
|
|
@@ -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
|
-
|
|
52
|
-
|
|
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;
|
|
@@ -35,16 +35,16 @@ export declare const SkyPositionOutput: z.ZodObject<{
|
|
|
35
35
|
export type SkyPositionOutputType = z.infer<typeof SkyPositionOutput>;
|
|
36
36
|
export declare const getSkyPositionTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
|
|
37
37
|
body: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
sun: "sun";
|
|
39
|
-
moon: "moon";
|
|
40
|
-
mercury: "mercury";
|
|
41
|
-
venus: "venus";
|
|
42
|
-
mars: "mars";
|
|
43
38
|
jupiter: "jupiter";
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
mars: "mars";
|
|
40
|
+
mercury: "mercury";
|
|
41
|
+
moon: "moon";
|
|
46
42
|
neptune: "neptune";
|
|
47
43
|
pluto: "pluto";
|
|
44
|
+
saturn: "saturn";
|
|
45
|
+
sun: "sun";
|
|
46
|
+
uranus: "uranus";
|
|
47
|
+
venus: "venus";
|
|
48
48
|
}>>;
|
|
49
49
|
star: z.ZodOptional<z.ZodString>;
|
|
50
50
|
latitude: z.ZodNumber;
|
|
@@ -9,11 +9,11 @@ import { z } from '@cyanheads/mcp-ts-core';
|
|
|
9
9
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
10
10
|
export declare const ListVisibleOutput: z.ZodObject<{
|
|
11
11
|
sky_condition: z.ZodEnum<{
|
|
12
|
+
astronomical_twilight: "astronomical_twilight";
|
|
13
|
+
civil_twilight: "civil_twilight";
|
|
12
14
|
dark: "dark";
|
|
13
15
|
daylight: "daylight";
|
|
14
|
-
civil_twilight: "civil_twilight";
|
|
15
16
|
nautical_twilight: "nautical_twilight";
|
|
16
|
-
astronomical_twilight: "astronomical_twilight";
|
|
17
17
|
}>;
|
|
18
18
|
sun_altitude_degrees: z.ZodNumber;
|
|
19
19
|
total_count: z.ZodNumber;
|
|
@@ -58,11 +58,11 @@ export declare const listVisibleTool: import("@cyanheads/mcp-ts-core").ToolDefin
|
|
|
58
58
|
include_stars: z.ZodDefault<z.ZodBoolean>;
|
|
59
59
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
60
|
sky_condition: z.ZodEnum<{
|
|
61
|
+
astronomical_twilight: "astronomical_twilight";
|
|
62
|
+
civil_twilight: "civil_twilight";
|
|
61
63
|
dark: "dark";
|
|
62
64
|
daylight: "daylight";
|
|
63
|
-
civil_twilight: "civil_twilight";
|
|
64
65
|
nautical_twilight: "nautical_twilight";
|
|
65
|
-
astronomical_twilight: "astronomical_twilight";
|
|
66
66
|
}>;
|
|
67
67
|
sun_altitude_degrees: z.ZodNumber;
|
|
68
68
|
total_count: z.ZodNumber;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @module services/ephemeris/ephemeris-service
|
|
10
10
|
*/
|
|
11
11
|
import { Body } from 'astronomy-engine';
|
|
12
|
-
import type { BodyName, CatalogStar, EventName, EventRecord, ListVisibleResult, MoonPhaseResult, ObserverInput, RiseSetEvent, SkyPosition } from './types.js';
|
|
12
|
+
import type { BodyName, CatalogStar, EventBodyName, EventName, EventRecord, ListVisibleResult, MoonPhaseResult, ObserverInput, RiseSetEvent, SkyPosition } from './types.js';
|
|
13
13
|
/** Options for the position computation when targeting a catalog star. */
|
|
14
14
|
interface StarTarget {
|
|
15
15
|
meta: CatalogStar;
|
|
@@ -58,13 +58,13 @@ export declare class EphemerisService {
|
|
|
58
58
|
private twilight;
|
|
59
59
|
/** Moon phase, illumination, age, and the next four quarter phases. */
|
|
60
60
|
moonPhase(date: Date, timezone?: string): MoonPhaseResult;
|
|
61
|
-
/** Days since the
|
|
61
|
+
/** Days since the most recent new moon (synodic age). */
|
|
62
62
|
private moonAgeDays;
|
|
63
63
|
/** Search forward for the next `count` occurrences of an event class. */
|
|
64
64
|
findEvents(event: EventName, opts: {
|
|
65
65
|
start: Date;
|
|
66
66
|
count: number;
|
|
67
|
-
body?:
|
|
67
|
+
body?: EventBodyName;
|
|
68
68
|
observer?: ObserverInput;
|
|
69
69
|
timezone?: string;
|
|
70
70
|
}): EventRecord[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ephemeris-service.d.ts","sourceRoot":"","sources":["../../../src/services/ephemeris/ephemeris-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAGL,IAAI,EA+BL,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EAC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