@cyanheads/astronomy-mcp-server 0.1.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 (86) hide show
  1. package/AGENTS.md +431 -0
  2. package/CLAUDE.md +431 -0
  3. package/Dockerfile +104 -0
  4. package/LICENSE +201 -0
  5. package/README.md +320 -0
  6. package/changelog/0.1.x/0.1.1.md +28 -0
  7. package/changelog/0.1.x/0.1.2.md +16 -0
  8. package/changelog/template.md +127 -0
  9. package/dist/config/server-config.d.ts +22 -0
  10. package/dist/config/server-config.d.ts.map +1 -0
  11. package/dist/config/server-config.js +40 -0
  12. package/dist/config/server-config.js.map +1 -0
  13. package/dist/index.d.ts +11 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +55 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts +12 -0
  18. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.d.ts.map +1 -0
  19. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +36 -0
  20. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -0
  21. package/dist/mcp-server/resources/definitions/body.resource.d.ts +29 -0
  22. package/dist/mcp-server/resources/definitions/body.resource.d.ts.map +1 -0
  23. package/dist/mcp-server/resources/definitions/body.resource.js +65 -0
  24. package/dist/mcp-server/resources/definitions/body.resource.js.map +1 -0
  25. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +157 -0
  26. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -0
  27. package/dist/mcp-server/tools/definitions/find-events.tool.js +242 -0
  28. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -0
  29. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +62 -0
  30. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -0
  31. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +161 -0
  32. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -0
  33. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts +53 -0
  34. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts.map +1 -0
  35. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +109 -0
  36. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js.map +1 -0
  37. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +100 -0
  38. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -0
  39. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +200 -0
  40. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -0
  41. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +77 -0
  42. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -0
  43. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +180 -0
  44. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -0
  45. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts +99 -0
  46. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -0
  47. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +196 -0
  48. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -0
  49. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +104 -0
  50. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -0
  51. package/dist/mcp-server/tools/definitions/list-visible.tool.js +151 -0
  52. package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -0
  53. package/dist/services/ephemeris/body-data.d.ts +25 -0
  54. package/dist/services/ephemeris/body-data.d.ts.map +1 -0
  55. package/dist/services/ephemeris/body-data.js +24 -0
  56. package/dist/services/ephemeris/body-data.js.map +1 -0
  57. package/dist/services/ephemeris/ephemeris-service.d.ts +93 -0
  58. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -0
  59. package/dist/services/ephemeris/ephemeris-service.js +742 -0
  60. package/dist/services/ephemeris/ephemeris-service.js.map +1 -0
  61. package/dist/services/ephemeris/star-catalog.d.ts +17 -0
  62. package/dist/services/ephemeris/star-catalog.d.ts.map +1 -0
  63. package/dist/services/ephemeris/star-catalog.js +273 -0
  64. package/dist/services/ephemeris/star-catalog.js.map +1 -0
  65. package/dist/services/ephemeris/types.d.ts +150 -0
  66. package/dist/services/ephemeris/types.d.ts.map +1 -0
  67. package/dist/services/ephemeris/types.js +33 -0
  68. package/dist/services/ephemeris/types.js.map +1 -0
  69. package/dist/services/horizons/horizons-service.d.ts +47 -0
  70. package/dist/services/horizons/horizons-service.d.ts.map +1 -0
  71. package/dist/services/horizons/horizons-service.js +229 -0
  72. package/dist/services/horizons/horizons-service.js.map +1 -0
  73. package/dist/services/horizons/types.d.ts +21 -0
  74. package/dist/services/horizons/types.d.ts.map +1 -0
  75. package/dist/services/horizons/types.js +6 -0
  76. package/dist/services/horizons/types.js.map +1 -0
  77. package/dist/services/satellite/satellite-service.d.ts +48 -0
  78. package/dist/services/satellite/satellite-service.d.ts.map +1 -0
  79. package/dist/services/satellite/satellite-service.js +231 -0
  80. package/dist/services/satellite/satellite-service.js.map +1 -0
  81. package/dist/services/satellite/types.d.ts +32 -0
  82. package/dist/services/satellite/types.d.ts.map +1 -0
  83. package/dist/services/satellite/types.js +6 -0
  84. package/dist/services/satellite/types.js.map +1 -0
  85. package/package.json +104 -0
  86. package/server.json +139 -0
@@ -0,0 +1,127 @@
1
+ ---
2
+ # FORMAT REFERENCE — do not edit. Copy this file to
3
+ # `changelog/<major.minor>.x/<version>.md` (e.g. `changelog/0.8.x/0.8.6.md`)
4
+ # to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
5
+ # with a concrete date.
6
+
7
+ # Required. One-line GitHub Release-style headline. 350 character cap.
8
+ # Default short and scannable. Don't pad, don't stitch unrelated changes with
9
+ # semicolons — pick the headline. Quotes required: unquoted YAML treats `: `
10
+ # inside the value as a key separator and fails GitHub's strict parser.
11
+ summary: ""
12
+
13
+ # Set `true` when consumers must change code to upgrade: API removals,
14
+ # signature changes, config renames, behavior changes that break existing
15
+ # usage. Flagged as `Breaking` in the rollup.
16
+ breaking: false
17
+
18
+ # Set `true` if this release contains any security fix. Pairs with the
19
+ # `## Security` section below. Flagged as `Security` in the rollup so
20
+ # users can triage upgrade urgency at a glance.
21
+ security: false
22
+
23
+ # Optional free-form notes for maintenance agents processing this release.
24
+ # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
25
+ # downstream servers. Use for adoption instructions that don't fit the
26
+ # human-facing sections: new files to create, fields to populate, one-time
27
+ # migration steps. Omit the field entirely when there's nothing to say.
28
+ # agent-notes: |
29
+ # <instructions for downstream maintenance agents>
30
+ ---
31
+
32
+ # <version> — YYYY-MM-DD
33
+
34
+ <!--
35
+ AUTHORING GUIDE — applies to the new per-version file you create from this
36
+ template.
37
+
38
+ Audience: someone scanning release notes to decide what affects them. Lead
39
+ each bullet with the symbol or concept name in **bold** so they can skip
40
+ what's irrelevant and zoom in on what's not.
41
+
42
+ Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
43
+ name the symbol, state what changed, stop. Use a second sentence only when
44
+ it carries weight. If a bullet feels long, it is.
45
+
46
+ Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
47
+ relevant skill), ceremonial framings ("This release introduces…",
48
+ backwards-compat paragraphs), file-by-file test enumerations, internal
49
+ implementation notes. Prefer code/symbol names over English re-explanations.
50
+
51
+ Narrative intro: skip by default. Add one short sentence only when the
52
+ release theme genuinely needs framing the bullets can't carry.
53
+
54
+ Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
55
+ Fixed, Security. Include only sections with entries; delete the rest
56
+ (including the commented-out scaffolding below). Don't ship empty headers.
57
+
58
+ Include: every distinct fact a reader needs to adopt or audit the release —
59
+ new exports, signatures, lint rule IDs, env vars, breaking changes, version
60
+ bumps on shipped skills. Nothing more.
61
+
62
+ Links: link issues, PRs, docs, or skills where they help a reader jump to
63
+ context. Once per item per entry — don't re-link the same issue in summary,
64
+ narrative, and bullet. Skip links for inline symbol names; code spans speak
65
+ for themselves.
66
+
67
+ Issue/PR URLs: use full URLs. GitHub's bare `#NN` auto-link only resolves
68
+ inside its own UI, not in npm reads or local editors.
69
+
70
+ [#38](https://github.com/cyanheads/mcp-ts-core/issues/38) ← issue
71
+ [#42](https://github.com/cyanheads/mcp-ts-core/pull/42) ← PR
72
+
73
+ Verify numbers exist before linking (`gh issue view NN`, `gh pr view NN`).
74
+ Never speculate on a future number — `#42` for an upcoming PR silently
75
+ resolves to whatever real item already owns 42, and timeline previews pull
76
+ in that unrelated item's metadata.
77
+
78
+ TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
79
+ via `gh release create --notes-from-tag`. The tag is a derivative of this
80
+ changelog entry — a condensed, scannable version, not a copy. Format:
81
+
82
+ <theme — omit version number, GitHub prepends it>
83
+ ← blank line
84
+ <1-2 sentence context: what this release does>
85
+ ← blank line
86
+ Dependency bumps: ← section header
87
+ ← blank line
88
+ - `@cyanheads/mcp-ts-core` ^0.9.1 → ^0.9.6 ← bullet
89
+ ← blank line
90
+ Changed: ← only sections with entries
91
+ ← blank line
92
+ - `format()` output includes `query` in text mode
93
+ ← blank line
94
+ Added:
95
+ ← blank line
96
+ - `manifest.json` scaffolded for MCPB bundle support
97
+ - Install badges (Claude Desktop, Cursor, VS Code)
98
+ ← blank line
99
+ <N> tests pass; `bun run devcheck` clean. ← footer
100
+
101
+ Never a flat comma-separated string. Always structured markdown with
102
+ sections. The tag must scan well as a rendered GitHub Release page.
103
+ -->
104
+
105
+ ## Added
106
+
107
+ -
108
+
109
+ ## Changed
110
+
111
+ -
112
+
113
+ <!-- ## Deprecated
114
+
115
+ - -->
116
+
117
+ <!-- ## Removed
118
+
119
+ - -->
120
+
121
+ ## Fixed
122
+
123
+ -
124
+
125
+ <!-- ## Security
126
+
127
+ - -->
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @fileoverview Server-specific configuration for astronomy-mcp-server.
3
+ * Lazy-parsed Zod schema mapping optional env vars to the extension gates and
4
+ * HTTP endpoint overrides. The keyless offline core needs no configuration;
5
+ * every variable here is optional and exists only for the two gated extensions.
6
+ * @module config/server-config
7
+ */
8
+ import { z } from '@cyanheads/mcp-ts-core';
9
+ declare const ServerConfigSchema: z.ZodObject<{
10
+ enableHorizons: z.ZodDefault<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
11
+ enableSatellites: z.ZodDefault<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
12
+ horizonsBaseUrl: z.ZodDefault<z.ZodString>;
13
+ celestrakBaseUrl: z.ZodDefault<z.ZodString>;
14
+ defaultTimezone: z.ZodOptional<z.ZodString>;
15
+ requestTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
16
+ tleCacheTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
17
+ }, z.core.$strip>;
18
+ export type ServerConfig = z.infer<typeof ServerConfigSchema>;
19
+ /** Parse and memoize the server configuration from the environment. */
20
+ export declare function getServerConfig(): ServerConfig;
21
+ export {};
22
+ //# sourceMappingURL=server-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;;;;;iBAetB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,uEAAuE;AACvE,wBAAgB,eAAe,IAAI,YAAY,CAW9C"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @fileoverview Server-specific configuration for astronomy-mcp-server.
3
+ * Lazy-parsed Zod schema mapping optional env vars to the extension gates and
4
+ * HTTP endpoint overrides. The keyless offline core needs no configuration;
5
+ * every variable here is optional and exists only for the two gated extensions.
6
+ * @module config/server-config
7
+ */
8
+ import { z } from '@cyanheads/mcp-ts-core';
9
+ import { parseEnvConfig } from '@cyanheads/mcp-ts-core/config';
10
+ const ServerConfigSchema = z.object({
11
+ /** Gate the astronomy_get_ephemeris tool (JPL Horizons). Off by default. */
12
+ enableHorizons: z.stringbool().default(false),
13
+ /** Gate the astronomy_get_satellite_passes tool (CelesTrak TLE + SGP4). Off by default. */
14
+ enableSatellites: z.stringbool().default(false),
15
+ /** JPL Horizons API endpoint. */
16
+ horizonsBaseUrl: z.string().default('https://ssd.jpl.nasa.gov/api/horizons.api'),
17
+ /** CelesTrak GP/TLE endpoint. */
18
+ celestrakBaseUrl: z.string().default('https://celestrak.org/NORAD/elements/gp.php'),
19
+ /** Optional fallback IANA timezone when a tool call omits `timezone`. Unset = UTC-only output. */
20
+ defaultTimezone: z.string().optional(),
21
+ /** HTTP timeout (ms) for Horizons and CelesTrak requests. */
22
+ requestTimeoutMs: z.coerce.number().default(15000),
23
+ /** In-process TLE cache TTL (ms). Default 2h — respects CelesTrak's refetch guidance. */
24
+ tleCacheTtlMs: z.coerce.number().default(7200000),
25
+ });
26
+ let _config;
27
+ /** Parse and memoize the server configuration from the environment. */
28
+ export function getServerConfig() {
29
+ _config ??= parseEnvConfig(ServerConfigSchema, {
30
+ enableHorizons: 'ASTRONOMY_ENABLE_HORIZONS',
31
+ enableSatellites: 'ASTRONOMY_ENABLE_SATELLITES',
32
+ horizonsBaseUrl: 'ASTRONOMY_HORIZONS_BASE_URL',
33
+ celestrakBaseUrl: 'ASTRONOMY_CELESTRAK_BASE_URL',
34
+ defaultTimezone: 'ASTRONOMY_DEFAULT_TIMEZONE',
35
+ requestTimeoutMs: 'ASTRONOMY_REQUEST_TIMEOUT_MS',
36
+ tleCacheTtlMs: 'ASTRONOMY_TLE_CACHE_TTL_MS',
37
+ });
38
+ return _config;
39
+ }
40
+ //# sourceMappingURL=server-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,4EAA4E;IAC5E,cAAc,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,2FAA2F;IAC3F,gBAAgB,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/C,iCAAiC;IACjC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,2CAA2C,CAAC;IAChF,iCAAiC;IACjC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,6CAA6C,CAAC;IACnF,kGAAkG;IAClG,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,6DAA6D;IAC7D,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAClD,yFAAyF;IACzF,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;CAClD,CAAC,CAAC;AAIH,IAAI,OAAiC,CAAC;AAEtC,uEAAuE;AACvE,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,cAAc,CAAC,kBAAkB,EAAE;QAC7C,cAAc,EAAE,2BAA2B;QAC3C,gBAAgB,EAAE,6BAA6B;QAC/C,eAAe,EAAE,6BAA6B;QAC9C,gBAAgB,EAAE,8BAA8B;QAChD,eAAe,EAAE,4BAA4B;QAC7C,gBAAgB,EAAE,8BAA8B;QAChD,aAAa,EAAE,4BAA4B;KAC5C,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * @fileoverview astronomy-mcp-server MCP server entry point. Computes observational
4
+ * astronomy in-process via astronomy-engine — apparent positions, rise/set, moon
5
+ * phases, eclipses, seasons, and a "what's up tonight" workflow. Two HTTP-backed
6
+ * extensions (JPL Horizons ephemerides, CelesTrak satellite passes) register only
7
+ * when their config gate is enabled, so the default deployment is keyless and offline.
8
+ * @module index
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG"}
package/dist/index.js ADDED
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * @fileoverview astronomy-mcp-server MCP server entry point. Computes observational
4
+ * astronomy in-process via astronomy-engine — apparent positions, rise/set, moon
5
+ * phases, eclipses, seasons, and a "what's up tonight" workflow. Two HTTP-backed
6
+ * extensions (JPL Horizons ephemerides, CelesTrak satellite passes) register only
7
+ * when their config gate is enabled, so the default deployment is keyless and offline.
8
+ * @module index
9
+ */
10
+ import { createApp } from '@cyanheads/mcp-ts-core';
11
+ import { getServerConfig } from './config/server-config.js';
12
+ import { stargazingPlanPrompt } from './mcp-server/prompts/definitions/stargazing-plan.prompt.js';
13
+ import { bodyResource } from './mcp-server/resources/definitions/body.resource.js';
14
+ import { findEventsTool } from './mcp-server/tools/definitions/find-events.tool.js';
15
+ import { getEphemerisTool } from './mcp-server/tools/definitions/get-ephemeris.tool.js';
16
+ import { getMoonPhaseTool } from './mcp-server/tools/definitions/get-moon-phase.tool.js';
17
+ import { getRiseSetTool } from './mcp-server/tools/definitions/get-rise-set.tool.js';
18
+ import { getSatellitePassesTool } from './mcp-server/tools/definitions/get-satellite-passes.tool.js';
19
+ import { getSkyPositionTool } from './mcp-server/tools/definitions/get-sky-position.tool.js';
20
+ import { listVisibleTool } from './mcp-server/tools/definitions/list-visible.tool.js';
21
+ import { initEphemerisService } from './services/ephemeris/ephemeris-service.js';
22
+ import { initHorizonsService } from './services/horizons/horizons-service.js';
23
+ import { initSatelliteService } from './services/satellite/satellite-service.js';
24
+ const cfg = getServerConfig();
25
+ /** The five keyless offline core tools — always registered. */
26
+ const coreTools = [
27
+ getSkyPositionTool,
28
+ getRiseSetTool,
29
+ getMoonPhaseTool,
30
+ findEventsTool,
31
+ listVisibleTool,
32
+ ];
33
+ /** The two HTTP-backed extension tools — registered only when their gate is on. */
34
+ const extensionTools = [
35
+ ...(cfg.enableHorizons ? [getEphemerisTool] : []),
36
+ ...(cfg.enableSatellites ? [getSatellitePassesTool] : []),
37
+ ];
38
+ await createApp({
39
+ name: 'astronomy-mcp-server',
40
+ title: 'astronomy-mcp-server',
41
+ instructions: 'Observer location is latitude/longitude in decimal degrees plus optional elevation; times are ISO 8601 UTC and default to now. This server does not geocode — resolve a place name to coordinates upstream (e.g. via openstreetmap) and a timezone via reference-data, then pass `timezone` to receive observer-local times. astronomy_list_visible is the one-call "what is up now" answer. The astronomy_get_ephemeris (small bodies) and astronomy_get_satellite_passes tools are off by default; enable them with ASTRONOMY_ENABLE_HORIZONS / ASTRONOMY_ENABLE_SATELLITES.',
42
+ setup() {
43
+ initEphemerisService();
44
+ if (cfg.enableHorizons) {
45
+ initHorizonsService(cfg.horizonsBaseUrl, cfg.requestTimeoutMs);
46
+ }
47
+ if (cfg.enableSatellites) {
48
+ initSatelliteService(cfg.celestrakBaseUrl, cfg.requestTimeoutMs, cfg.tleCacheTtlMs);
49
+ }
50
+ },
51
+ tools: [...coreTools, ...extensionTools],
52
+ resources: [bodyResource],
53
+ prompts: [stargazingPlanPrompt],
54
+ });
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;AAE9B,+DAA+D;AAC/D,MAAM,SAAS,GAAG;IAChB,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,eAAe;CAChB,CAAC;AAEF,mFAAmF;AACnF,MAAM,cAAc,GAAG;IACrB,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;CAC1D,CAAC;AAEF,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,YAAY,EACV,gjBAAgjB;IACljB,KAAK;QACH,oBAAoB,EAAE,CAAC;QACvB,IAAI,GAAG,CAAC,cAAc,EAAE,CAAC;YACvB,mBAAmB,CAAC,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACjE,CAAC;QACD,IAAI,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACzB,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;QACtF,CAAC;IACH,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,GAAG,cAAc,CAAC;IACxC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE,CAAC,oBAAoB,CAAC;CAChC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @fileoverview astronomy_stargazing_plan — a reusable template that structures the
3
+ * "plan tonight's stargazing from <place>" workflow, chaining the astronomy tools
4
+ * in order and prompting for cross-server geocoding and cloud-cover checks.
5
+ * @module mcp-server/prompts/definitions/stargazing-plan.prompt
6
+ */
7
+ import { z } from '@cyanheads/mcp-ts-core';
8
+ export declare const stargazingPlanPrompt: import("@cyanheads/mcp-ts-core").PromptDefinition<z.ZodObject<{
9
+ location: z.ZodString;
10
+ date: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ //# sourceMappingURL=stargazing-plan.prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stargazing-plan.prompt.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAU,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,eAAO,MAAM,oBAAoB;;;kBA4B/B,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @fileoverview astronomy_stargazing_plan — a reusable template that structures the
3
+ * "plan tonight's stargazing from <place>" workflow, chaining the astronomy tools
4
+ * in order and prompting for cross-server geocoding and cloud-cover checks.
5
+ * @module mcp-server/prompts/definitions/stargazing-plan.prompt
6
+ */
7
+ import { prompt, z } from '@cyanheads/mcp-ts-core';
8
+ export const stargazingPlanPrompt = prompt('astronomy_stargazing_plan', {
9
+ description: 'Structure a "plan tonight\'s stargazing from <place>" workflow: resolve coordinates, find the dark-sky window, check the moon, list what is up, and fold in cloud cover. Emits a message that chains the astronomy tools in order and names the cross-server steps the astronomy server does not cover (geocoding, weather).',
10
+ title: 'astronomy-mcp-server: plan stargazing session',
11
+ args: z.object({
12
+ location: z
13
+ .string()
14
+ .describe('The place to stargaze from, e.g. "Mount Rainier" or "Seattle, WA".'),
15
+ date: z
16
+ .string()
17
+ .optional()
18
+ .describe('Target date as an ISO date (YYYY-MM-DD). Defaults to tonight when omitted.'),
19
+ }),
20
+ generate: (args) => {
21
+ const dateClause = args.date ? ` on ${args.date}` : ' tonight';
22
+ const text = [
23
+ `Plan a stargazing session from ${args.location}${dateClause}. Work through these steps in order:`,
24
+ '',
25
+ `1. Resolve ${args.location} to latitude/longitude using a geocoding tool (e.g. openstreetmap_geocode), and its IANA timezone (e.g. via reference-data). This astronomy server does not geocode.`,
26
+ `2. Call astronomy_get_rise_set with body "sun" at those coordinates to find sunset and the astronomical-dusk time (the start of the dark window).`,
27
+ `3. Call astronomy_get_moon_phase for the date — a bright moon washes out faint objects, so note the illuminated fraction and whether the moon is up during the dark window.`,
28
+ `4. Call astronomy_list_visible at those coordinates with a time just after astronomical dusk to get the ranked list of what is up, including planets and bright objects.`,
29
+ `5. Check cloud cover and transparency for the location and window using a weather tool (e.g. open-meteo or nws) — this server computes only the sky geometry, not the weather.`,
30
+ '',
31
+ `Then summarize: the best viewing window, the standout objects and where to look (altitude/azimuth), the moon's interference, and whether the sky is expected to be clear.`,
32
+ ].join('\n');
33
+ return [{ role: 'user', content: { type: 'text', text } }];
34
+ },
35
+ });
36
+ //# sourceMappingURL=stargazing-plan.prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stargazing-plan.prompt.js","sourceRoot":"","sources":["../../../../src/mcp-server/prompts/definitions/stargazing-plan.prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,2BAA2B,EAAE;IACtE,WAAW,EACT,8TAA8T;IAChU,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,CAAC,oEAAoE,CAAC;QACjF,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,4EAA4E,CAAC;KAC1F,CAAC;IACF,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;QACjB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;QAC/D,MAAM,IAAI,GAAG;YACX,kCAAkC,IAAI,CAAC,QAAQ,GAAG,UAAU,sCAAsC;YAClG,EAAE;YACF,cAAc,IAAI,CAAC,QAAQ,sKAAsK;YACjM,mJAAmJ;YACnJ,6KAA6K;YAC7K,0KAA0K;YAC1K,gLAAgL;YAChL,EAAE;YACF,2KAA2K;SAC5K,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @fileoverview astronomy://body/{body} — a static reference card for a solar-system
3
+ * body: canonical name, type, mean radius, and naked-eye visibility. Mirrors the
4
+ * bundled body table; every datum is also reachable through tool output, so
5
+ * tool-only clients lose nothing.
6
+ * @module mcp-server/resources/definitions/body.resource
7
+ */
8
+ import { z } from '@cyanheads/mcp-ts-core';
9
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
10
+ export declare const bodyResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<z.ZodObject<{
11
+ body: z.ZodString;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ body: z.ZodString;
14
+ name: z.ZodString;
15
+ type: z.ZodEnum<{
16
+ moon: "moon";
17
+ star: "star";
18
+ planet: "planet";
19
+ dwarf: "dwarf";
20
+ }>;
21
+ mean_radius_km: z.ZodNumber;
22
+ naked_eye: z.ZodBoolean;
23
+ }, z.core.$strip>, readonly [{
24
+ readonly reason: "unknown_body";
25
+ readonly code: JsonRpcErrorCode.NotFound;
26
+ readonly when: "The {body} segment is not one of the supported solar-system bodies.";
27
+ readonly recovery: "Use one of: sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto.";
28
+ }]>;
29
+ //# sourceMappingURL=body.resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/body.resource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;GA2DvB,CAAC"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @fileoverview astronomy://body/{body} — a static reference card for a solar-system
3
+ * body: canonical name, type, mean radius, and naked-eye visibility. Mirrors the
4
+ * bundled body table; every datum is also reachable through tool output, so
5
+ * tool-only clients lose nothing.
6
+ * @module mcp-server/resources/definitions/body.resource
7
+ */
8
+ import { resource, z } from '@cyanheads/mcp-ts-core';
9
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
10
+ import { BODY_META } from '../../../services/ephemeris/body-data.js';
11
+ import { BODY_NAMES } from '../../../services/ephemeris/types.js';
12
+ export const bodyResource = resource('astronomy://body/{body}', {
13
+ name: 'astronomy-body-reference',
14
+ title: 'astronomy-mcp-server: body reference card',
15
+ description: 'Static reference card for a solar-system body: canonical name, type (star/planet/moon/dwarf), mean radius in kilometers, and whether it is naked-eye visible. `{body}` must be one of the closed enum values (sun, moon, mercury … pluto).',
16
+ mimeType: 'application/json',
17
+ params: z.object({
18
+ body: z
19
+ .string()
20
+ .describe('Body identifier — one of sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto.'),
21
+ }),
22
+ output: z.object({
23
+ body: z.string().describe('The canonical lower-case identifier echoed from the URI.'),
24
+ name: z.string().describe('Display name, e.g. "Jupiter".'),
25
+ type: z.enum(['star', 'planet', 'moon', 'dwarf']).describe('Classification of the body.'),
26
+ mean_radius_km: z.number().describe('Mean radius in kilometers, from IAU/NASA fact sheets.'),
27
+ naked_eye: z.boolean().describe('True when the body is typically visible to the naked eye.'),
28
+ }),
29
+ errors: [
30
+ {
31
+ reason: 'unknown_body',
32
+ code: JsonRpcErrorCode.NotFound,
33
+ when: 'The {body} segment is not one of the supported solar-system bodies.',
34
+ recovery: 'Use one of: sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto.',
35
+ },
36
+ ],
37
+ handler(params, ctx) {
38
+ const key = params.body.trim().toLowerCase();
39
+ if (!BODY_NAMES.includes(key)) {
40
+ throw ctx.fail('unknown_body', `Unknown body "${params.body}".`, {
41
+ ...ctx.recoveryFor('unknown_body'),
42
+ });
43
+ }
44
+ const meta = BODY_META[key];
45
+ ctx.log.debug('Body reference', { body: key });
46
+ return {
47
+ body: key,
48
+ name: meta.name,
49
+ type: meta.type,
50
+ mean_radius_km: meta.meanRadiusKm,
51
+ naked_eye: meta.nakedEye,
52
+ };
53
+ },
54
+ list: () => ({
55
+ resources: BODY_NAMES.map((b) => ({
56
+ uri: `astronomy://body/${b}`,
57
+ name: BODY_META[b].name,
58
+ mimeType: 'application/json',
59
+ })),
60
+ }),
61
+ complete: {
62
+ body: (partial) => BODY_NAMES.filter((b) => b.startsWith(partial.toLowerCase())),
63
+ },
64
+ });
65
+ //# sourceMappingURL=body.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.resource.js","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/body.resource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAiB,MAAM,+BAA+B,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,yBAAyB,EAAE;IAC9D,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,2CAA2C;IAClD,WAAW,EACT,4OAA4O;IAC9O,QAAQ,EAAE,kBAAkB;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,CACP,oGAAoG,CACrG;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QACrF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACzF,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;QAC5F,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;KAC7F,CAAC;IACF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,cAAc;YACtB,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,qEAAqE;YAC3E,QAAQ,EACN,uFAAuF;SAC1F;KACF;IAED,OAAO,CAAC,MAAM,EAAE,GAAG;QACjB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,CAAE,UAAgC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACrD,MAAM,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,MAAM,CAAC,IAAI,IAAI,EAAE;gBAC/D,GAAG,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC;aACnC,CAAC,CAAC;QACL,CAAC;QACD,MAAM,IAAI,GAAG,SAAS,CAAC,GAAe,CAAC,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QAC/C,OAAO;YACL,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,YAAY;YACjC,SAAS,EAAE,IAAI,CAAC,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QACX,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAChC,GAAG,EAAE,oBAAoB,CAAC,EAAE;YAC5B,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;YACvB,QAAQ,EAAE,kBAAkB;SAC7B,CAAC,CAAC;KACJ,CAAC;IAEF,QAAQ,EAAE;QACR,IAAI,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;KACzF;CACF,CAAC,CAAC"}
@@ -0,0 +1,157 @@
1
+ /**
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.
6
+ * @module mcp-server/tools/definitions/find-events.tool
7
+ */
8
+ import { z } from '@cyanheads/mcp-ts-core';
9
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
10
+ export declare const FindEventsOutput: z.ZodObject<{
11
+ events: z.ZodArray<z.ZodObject<{
12
+ event: z.ZodEnum<{
13
+ solar_eclipse: "solar_eclipse";
14
+ lunar_eclipse: "lunar_eclipse";
15
+ equinox: "equinox";
16
+ solstice: "solstice";
17
+ moon_quarter: "moon_quarter";
18
+ opposition: "opposition";
19
+ conjunction: "conjunction";
20
+ max_elongation: "max_elongation";
21
+ perigee_apogee: "perigee_apogee";
22
+ }>;
23
+ time_utc: z.ZodString;
24
+ time_local: z.ZodOptional<z.ZodString>;
25
+ kind: z.ZodOptional<z.ZodString>;
26
+ obscuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ local_visible: z.ZodOptional<z.ZodBoolean>;
28
+ contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
29
+ which: z.ZodOptional<z.ZodEnum<{
30
+ march: "march";
31
+ september: "september";
32
+ june: "june";
33
+ december: "december";
34
+ }>>;
35
+ quarter: z.ZodOptional<z.ZodEnum<{
36
+ new: "new";
37
+ first_quarter: "first_quarter";
38
+ full: "full";
39
+ last_quarter: "last_quarter";
40
+ }>>;
41
+ body: z.ZodOptional<z.ZodString>;
42
+ elongation_degrees: z.ZodOptional<z.ZodNumber>;
43
+ visibility: z.ZodOptional<z.ZodEnum<{
44
+ morning: "morning";
45
+ evening: "evening";
46
+ }>>;
47
+ apsis_kind: z.ZodOptional<z.ZodEnum<{
48
+ perigee: "perigee";
49
+ apogee: "apogee";
50
+ perihelion: "perihelion";
51
+ aphelion: "aphelion";
52
+ }>>;
53
+ distance_km: z.ZodOptional<z.ZodNumber>;
54
+ distance_au: z.ZodOptional<z.ZodNumber>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
57
+ export type FindEventsOutputType = z.infer<typeof FindEventsOutput>;
58
+ export declare const findEventsTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
59
+ event: z.ZodEnum<{
60
+ solar_eclipse: "solar_eclipse";
61
+ lunar_eclipse: "lunar_eclipse";
62
+ equinox: "equinox";
63
+ solstice: "solstice";
64
+ moon_quarter: "moon_quarter";
65
+ opposition: "opposition";
66
+ conjunction: "conjunction";
67
+ max_elongation: "max_elongation";
68
+ perigee_apogee: "perigee_apogee";
69
+ }>;
70
+ start: z.ZodOptional<z.ZodString>;
71
+ count: z.ZodDefault<z.ZodNumber>;
72
+ body: z.ZodOptional<z.ZodEnum<{
73
+ sun: "sun";
74
+ moon: "moon";
75
+ mercury: "mercury";
76
+ venus: "venus";
77
+ mars: "mars";
78
+ jupiter: "jupiter";
79
+ saturn: "saturn";
80
+ uranus: "uranus";
81
+ neptune: "neptune";
82
+ pluto: "pluto";
83
+ }>>;
84
+ latitude: z.ZodOptional<z.ZodNumber>;
85
+ longitude: z.ZodOptional<z.ZodNumber>;
86
+ elevation: z.ZodDefault<z.ZodNumber>;
87
+ timezone: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ events: z.ZodArray<z.ZodObject<{
90
+ event: z.ZodEnum<{
91
+ solar_eclipse: "solar_eclipse";
92
+ lunar_eclipse: "lunar_eclipse";
93
+ equinox: "equinox";
94
+ solstice: "solstice";
95
+ moon_quarter: "moon_quarter";
96
+ opposition: "opposition";
97
+ conjunction: "conjunction";
98
+ max_elongation: "max_elongation";
99
+ perigee_apogee: "perigee_apogee";
100
+ }>;
101
+ time_utc: z.ZodString;
102
+ time_local: z.ZodOptional<z.ZodString>;
103
+ kind: z.ZodOptional<z.ZodString>;
104
+ obscuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
+ local_visible: z.ZodOptional<z.ZodBoolean>;
106
+ contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
107
+ which: z.ZodOptional<z.ZodEnum<{
108
+ march: "march";
109
+ september: "september";
110
+ june: "june";
111
+ december: "december";
112
+ }>>;
113
+ quarter: z.ZodOptional<z.ZodEnum<{
114
+ new: "new";
115
+ first_quarter: "first_quarter";
116
+ full: "full";
117
+ last_quarter: "last_quarter";
118
+ }>>;
119
+ body: z.ZodOptional<z.ZodString>;
120
+ elongation_degrees: z.ZodOptional<z.ZodNumber>;
121
+ visibility: z.ZodOptional<z.ZodEnum<{
122
+ morning: "morning";
123
+ evening: "evening";
124
+ }>>;
125
+ apsis_kind: z.ZodOptional<z.ZodEnum<{
126
+ perigee: "perigee";
127
+ apogee: "apogee";
128
+ perihelion: "perihelion";
129
+ aphelion: "aphelion";
130
+ }>>;
131
+ distance_km: z.ZodOptional<z.ZodNumber>;
132
+ distance_au: z.ZodOptional<z.ZodNumber>;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>, readonly [{
135
+ readonly reason: "observer_required";
136
+ readonly code: JsonRpcErrorCode.InvalidParams;
137
+ readonly when: "A solar_eclipse event was requested without observer latitude/longitude.";
138
+ readonly recovery: "Add observer latitude and longitude to receive local eclipse circumstances, then retry.";
139
+ }, {
140
+ readonly reason: "body_required";
141
+ readonly code: JsonRpcErrorCode.InvalidParams;
142
+ readonly when: "A body-relative event was requested without a target body.";
143
+ readonly recovery: "Add the target body (e.g. \"mars\" for opposition or \"venus\" for max_elongation) and retry.";
144
+ }, {
145
+ readonly reason: "body_not_supported";
146
+ 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.";
149
+ }, {
150
+ readonly reason: "time_out_of_range";
151
+ readonly code: JsonRpcErrorCode.InvalidParams;
152
+ readonly when: "The requested start instant is outside the engine's high-accuracy span (≈1900–2100).";
153
+ readonly recovery: "Use a start date between 1900 and 2100 and retry.";
154
+ }], {
155
+ readonly totalCount: z.ZodNumber;
156
+ }>;
157
+ //# sourceMappingURL=find-events.tool.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KzB,CAAC"}