@cyanheads/astronomy-mcp-server 0.5.1 → 0.5.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.
- package/AGENTS.md +11 -9
- package/CLAUDE.md +11 -9
- package/README.md +5 -4
- package/changelog/0.5.x/0.5.2.md +30 -0
- package/changelog/template.md +10 -8
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +47 -32
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +7 -0
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +18 -2
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +2 -4
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.js +15 -14
- package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.d.ts +4 -12
- package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.js +33 -95
- package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
- package/dist/services/ephemeris/rise-set-horizon.d.ts +11 -0
- package/dist/services/ephemeris/rise-set-horizon.d.ts.map +1 -0
- package/dist/services/ephemeris/rise-set-horizon.js +116 -0
- package/dist/services/ephemeris/rise-set-horizon.js.map +1 -0
- package/dist/services/ephemeris/types.d.ts +4 -0
- package/dist/services/ephemeris/types.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts +2 -1
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +8 -8
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/horizons/types.d.ts +2 -2
- package/package.json +8 -7
- package/server.json +3 -3
- package/skills/astronomy-guide/SKILL.md +3 -2
package/AGENTS.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.5.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.5.2
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
8
|
**Zod:** ^4.6.7
|
|
@@ -20,16 +20,16 @@ Observational astronomy, computed in-process. The core is keyless and offline
|
|
|
20
20
|
| Tool | What it computes |
|
|
21
21
|
|:-----|:-----------------|
|
|
22
22
|
| `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, Sun elongation, constellation |
|
|
23
|
-
| `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
|
|
23
|
+
| `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), with optional `height_above_horizon` for an elevated viewpoint, plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
|
|
24
24
|
| `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
|
|
25
25
|
| `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse (with a `timezone`, contacts also in `contacts_local`), opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee, meteor_shower (nine major showers' maxima from the bundled IMO table; `shower` narrows to one) |
|
|
26
|
-
| `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above
|
|
26
|
+
| `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) at or above `min_altitude`, ranked with above-horizon bodies first and a visibility note per body |
|
|
27
27
|
|
|
28
28
|
Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, meteor showers, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
|
|
29
29
|
|
|
30
30
|
**Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
|
|
31
31
|
|
|
32
|
-
- `astronomy_get_ephemeris` — small-body / spacecraft ephemeris from JPL Horizons, one page
|
|
32
|
+
- `astronomy_get_ephemeris` — small-body / spacecraft ephemeris from JPL Horizons, one page per call (`limit` defaults to 200 and clamps at 90,000). Gate: `ASTRONOMY_ENABLE_HORIZONS`.
|
|
33
33
|
- `astronomy_get_satellite_passes` — visible passes (kept by their sunlit, dark-sky stretch, returned as `visible_*`) via a CelesTrak TLE propagated with SGP4 offline, 10 days per call. Gate: `ASTRONOMY_ENABLE_SATELLITES`.
|
|
34
34
|
|
|
35
35
|
Both extension services carry their own timeout + retry boundary, cache nothing on disk (Horizons is stateless; the satellite TLE cache is an in-process TTL `Map`), and degrade loudly — on any upstream failure they catch the framework's status-mapped `McpError` and re-throw a clean typed domain error (`{ reason, recovery }`, no `statusCode` / `responseBody` / `requestId` / internal URL), carrying the original as `cause` for server-side logs only. They never substitute core output.
|
|
@@ -181,9 +181,9 @@ export function getServerConfig() {
|
|
|
181
181
|
}
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
`parseEnvConfig` maps Zod schema paths
|
|
184
|
+
`parseEnvConfig` loads the working directory's `.env` on Node and Bun, including when called before `createApp()`. It maps Zod schema paths to env var names such as `ASTRONOMY_REQUEST_TIMEOUT_MS`. A `ConfigurationError` raised in `setup()` appears in a startup banner. A call at import time exits with the stack.
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
Use `z.stringbool()` for env booleans. It accepts `true/false`, `1/0`, `yes/no`, `on/off`, `y/n`, and `enabled/disabled` case-insensitively and rejects other values. JavaScript boolean coercion treats the string `"false"` as true.
|
|
187
187
|
|
|
188
188
|
### Server identity and instructions
|
|
189
189
|
|
|
@@ -237,6 +237,8 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
237
237
|
|
|
238
238
|
Handlers throw — the framework catches, classifies, and formats.
|
|
239
239
|
|
|
240
|
+
For a declared reason, the framework fills `data.retryable` from the contract when the handler or service throw omits it. The text in `content[]` includes the corresponding `retryable` or `not retryable` marker.
|
|
241
|
+
|
|
240
242
|
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
241
243
|
|
|
242
244
|
Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range` and the `body_required` `resolveBody()` / `resolvePair()` raise, which carry none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`body_required` on `get_sky_position`, `get_rise_set`, and `find_events`, `find_events`'s `incomplete_observer`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
|
|
@@ -271,7 +273,7 @@ throw new Error('Item not found'); // → NotFound
|
|
|
271
273
|
throw new Error('Invalid query format'); // → ValidationError
|
|
272
274
|
|
|
273
275
|
// McpError — when no factory exists for the code
|
|
274
|
-
import {
|
|
276
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
275
277
|
throw new McpError(JsonRpcErrorCode.InitializationFailed, 'Connection failed', { pool: 'primary' });
|
|
276
278
|
```
|
|
277
279
|
|
|
@@ -449,7 +451,7 @@ security: false # optional — true ONLY for a source
|
|
|
449
451
|
```ts
|
|
450
452
|
// Framework — z is re-exported, no separate zod import needed
|
|
451
453
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
452
|
-
import {
|
|
454
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
453
455
|
|
|
454
456
|
// Server's own code — via path alias
|
|
455
457
|
import { getMyService } from '@/services/my-domain/my-service.js';
|
package/CLAUDE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.5.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
4
|
+
**Version:** 0.5.2
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
|
|
6
6
|
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
8
|
**Zod:** ^4.6.7
|
|
@@ -20,16 +20,16 @@ Observational astronomy, computed in-process. The core is keyless and offline
|
|
|
20
20
|
| Tool | What it computes |
|
|
21
21
|
|:-----|:-----------------|
|
|
22
22
|
| `astronomy_get_sky_position` | Apparent topocentric position of one body or named star — equatorial / horizontal / ecliptic, magnitude, angular diameter, phase, Sun elongation, constellation |
|
|
23
|
-
| `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
|
|
23
|
+
| `astronomy_get_rise_set` | Rise / set / transit cycles of one body or named star (31 per call), with optional `height_above_horizon` for an elevated viewpoint, plus twilight bands for the Sun and `night_in_progress` when the start falls at night; circumpolar / never-rises notes |
|
|
24
24
|
| `astronomy_get_moon_phase` | Phase longitude, illumination, synodic age, next four quarter phases |
|
|
25
25
|
| `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse (with a `timezone`, contacts also in `contacts_local`), opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee, meteor_shower (nine major showers' maxima from the bundled IMO table; `shower` narrows to one) |
|
|
26
|
-
| `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above
|
|
26
|
+
| `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) at or above `min_altitude`, ranked with above-horizon bodies first and a visibility note per body |
|
|
27
27
|
|
|
28
28
|
Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, meteor showers, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
|
|
29
29
|
|
|
30
30
|
**Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
|
|
31
31
|
|
|
32
|
-
- `astronomy_get_ephemeris` — small-body / spacecraft ephemeris from JPL Horizons, one page
|
|
32
|
+
- `astronomy_get_ephemeris` — small-body / spacecraft ephemeris from JPL Horizons, one page per call (`limit` defaults to 200 and clamps at 90,000). Gate: `ASTRONOMY_ENABLE_HORIZONS`.
|
|
33
33
|
- `astronomy_get_satellite_passes` — visible passes (kept by their sunlit, dark-sky stretch, returned as `visible_*`) via a CelesTrak TLE propagated with SGP4 offline, 10 days per call. Gate: `ASTRONOMY_ENABLE_SATELLITES`.
|
|
34
34
|
|
|
35
35
|
Both extension services carry their own timeout + retry boundary, cache nothing on disk (Horizons is stateless; the satellite TLE cache is an in-process TTL `Map`), and degrade loudly — on any upstream failure they catch the framework's status-mapped `McpError` and re-throw a clean typed domain error (`{ reason, recovery }`, no `statusCode` / `responseBody` / `requestId` / internal URL), carrying the original as `cause` for server-side logs only. They never substitute core output.
|
|
@@ -181,9 +181,9 @@ export function getServerConfig() {
|
|
|
181
181
|
}
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
`parseEnvConfig` maps Zod schema paths
|
|
184
|
+
`parseEnvConfig` loads the working directory's `.env` on Node and Bun, including when called before `createApp()`. It maps Zod schema paths to env var names such as `ASTRONOMY_REQUEST_TIMEOUT_MS`. A `ConfigurationError` raised in `setup()` appears in a startup banner. A call at import time exits with the stack.
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
Use `z.stringbool()` for env booleans. It accepts `true/false`, `1/0`, `yes/no`, `on/off`, `y/n`, and `enabled/disabled` case-insensitively and rejects other values. JavaScript boolean coercion treats the string `"false"` as true.
|
|
187
187
|
|
|
188
188
|
### Server identity and instructions
|
|
189
189
|
|
|
@@ -237,6 +237,8 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
237
237
|
|
|
238
238
|
Handlers throw — the framework catches, classifies, and formats.
|
|
239
239
|
|
|
240
|
+
For a declared reason, the framework fills `data.retryable` from the contract when the handler or service throw omits it. The text in `content[]` includes the corresponding `retryable` or `not retryable` marker.
|
|
241
|
+
|
|
240
242
|
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
|
|
241
243
|
|
|
242
244
|
Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()` / `resolvePair()`, and the two extension services — and carry their hint inline because those call sites take no `ctx` — except `resolveTime()`'s `time_out_of_range` and the `body_required` `resolveBody()` / `resolvePair()` raise, which carry none, so each calling tool's declared `recovery` fills it (the `start` tools say "start date", and `get_satellite_passes` names the element set's epoch). Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`body_required` on `get_sky_position`, `get_rise_set`, and `find_events`, `find_events`'s `incomplete_observer`, `invalid_target`, the `get_ephemeris` argument gates, `unknown_body`) are the ones that throw through `ctx.fail`. A contract entry whose hint is written at a service throw site must repeat that string verbatim, since nothing links the two — `tests/tools/error-contract-coverage.test.ts` holds both halves of that line.
|
|
@@ -271,7 +273,7 @@ throw new Error('Item not found'); // → NotFound
|
|
|
271
273
|
throw new Error('Invalid query format'); // → ValidationError
|
|
272
274
|
|
|
273
275
|
// McpError — when no factory exists for the code
|
|
274
|
-
import {
|
|
276
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
275
277
|
throw new McpError(JsonRpcErrorCode.InitializationFailed, 'Connection failed', { pool: 'primary' });
|
|
276
278
|
```
|
|
277
279
|
|
|
@@ -449,7 +451,7 @@ security: false # optional — true ONLY for a source
|
|
|
449
451
|
```ts
|
|
450
452
|
// Framework — z is re-exported, no separate zod import needed
|
|
451
453
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
452
|
-
import {
|
|
454
|
+
import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
|
|
453
455
|
|
|
454
456
|
// Server's own code — via path alias
|
|
455
457
|
import { getMyService } from '@/services/my-domain/my-service.js';
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/astronomy-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/astronomy-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -39,7 +39,7 @@ Observational astronomy for any place and time: sky positions, rise/set and twil
|
|
|
39
39
|
| `astronomy_get_rise_set` | Rise, set, and transit times for a body or named star, plus civil, nautical, and astronomical twilight for the Sun |
|
|
40
40
|
| `astronomy_get_moon_phase` | Illuminated fraction, phase name, synodic age, and the next four quarter phases |
|
|
41
41
|
| `astronomy_find_events` | Next eclipses, equinoxes, solstices, moon quarters, oppositions, conjunctions, greatest elongations, apsides, or meteor-shower maxima |
|
|
42
|
-
| `astronomy_list_visible` |
|
|
42
|
+
| `astronomy_list_visible` | Naked-eye bodies and optional bright stars meeting the altitude filter, with above-horizon bodies listed first and visibility notes for each |
|
|
43
43
|
| `astronomy_get_ephemeris` | Small-body or spacecraft ephemeris from JPL Horizons (opt-in) |
|
|
44
44
|
| `astronomy_get_satellite_passes` | Visible satellite passes from a CelesTrak element set propagated with SGP4 (opt-in) |
|
|
45
45
|
|
|
@@ -81,6 +81,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
81
81
|
|
|
82
82
|
- One `body` or `star` searched forward from `start` (default now) for the next `count` cycles, default 1; 31 are served per call, and a `count` up to 366 returns the first 31 with a notice naming the `start` and `count` that continue the series
|
|
83
83
|
- `star` takes the same catalog names as `astronomy_get_sky_position` and wins over `body`; `body` echoes the catalog name (`Sirius` for `α CMa`), a miss fails as `star_not_found`, and a star gets no twilight
|
|
84
|
+
- Set `elevation` to the observer’s altitude above sea level. At a summit or overlook, `height_above_horizon` gives the vertical distance in meters to the terrain or water forming the horizon (default 0). A lower horizon advances rise and delays set. Twilight uses its usual solar angles.
|
|
84
85
|
- Each cycle carries `rise_utc`, `set_utc`, `transit_utc`, and `transit_altitude_degrees`; a circumpolar or never-rising body or star gets `null` rise/set and a `note` instead of an error
|
|
85
86
|
- For `body: "sun"`, `twilight` holds civil, nautical, and astronomical dusk/dawn pairs for the night after each cycle's day. When the first day begins after `start`, `night_in_progress` holds the preceding night, including polar nights without a sunset; the first cycle otherwise carries its own night. Each pair stays within that night, and times before `start` remain included
|
|
86
87
|
|
|
@@ -108,7 +109,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
108
109
|
### `astronomy_list_visible` <sub>tool</sub>
|
|
109
110
|
|
|
110
111
|
- Observer coordinates and one evaluation instant, `time` (default now, not a window); `min_altitude` (default 0) and `include_stars` (default false) shape the list
|
|
111
|
-
- Returns `sky_condition` (`daylight`, `civil_twilight`, `nautical_twilight`, `astronomical_twilight`, `dark`), `sun_altitude_degrees`, and `bodies`
|
|
112
|
+
- Returns `sky_condition` (`daylight`, `civil_twilight`, `nautical_twilight`, `astronomical_twilight`, `dark`), `sun_altitude_degrees`, and `bodies`. A negative `min_altitude` includes objects below the horizon. Objects above it rank first, with each group ordered by brightness and then altitude. Each `visibility_note` accounts for the horizon, daylight, civil twilight, and glare within 15° of the Sun
|
|
112
113
|
|
|
113
114
|
---
|
|
114
115
|
|
|
@@ -116,7 +117,7 @@ Design reference: [`docs/design.md`](./docs/design.md).
|
|
|
116
117
|
|
|
117
118
|
- `designation` is passed to Horizons verbatim (`"433;"` for a numbered asteroid, `"DES=1P;CAP"` for a periodic comet, a negative SPK-ID for a spacecraft); `start` defaults to now, `stop` to 24 h later, and `step` to `"1h"` (a count plus `m`, `h`, `d`, `mo`, or `y`); `latitude` and `longitude` together add alt/az
|
|
118
119
|
- Each row carries `ra_hours`/`dec_degrees` as astrometric ICRF (J2000), not the apparent of-date values `astronomy_get_sky_position` returns, plus `distance_au`, `magnitude`, `constellation`, `sun_elongation_degrees`, and `visibility` (`morning`, `evening`, or null); with an observer, the elongation is measured from that place
|
|
119
|
-
-
|
|
120
|
+
- `limit` sets the rows per page (default 200). Requests above 90,000 use 90,000 and report the adjustment. When `truncated` is true, use the notice’s next `start` and keep the original `stop` and `step`. If you omitted `stop`, the notice supplies its resolved value. `target_name` identifies the object Horizons resolved
|
|
120
121
|
- Fails as `ambiguous_designation`, `observer_is_target`, `body_not_found`, `invalid_step`, `invalid_elevation`, `time_out_of_range`, or `request_rejected`, each naming the input to correct
|
|
121
122
|
- Registered only when `ASTRONOMY_ENABLE_HORIZONS=true`
|
|
122
123
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Model a lower horizon for rise and set, rank visible objects by horizon position, and choose how many JPL Horizons samples each page returns."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.5.2 — 2026-11-27
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`astronomy_get_rise_set`** accepts `height_above_horizon` in meters for observers above reference terrain or sea level. Twilight keeps its geometric thresholds and is bounded by the resulting night. ([#77](https://github.com/cyanheads/astronomy-mcp-server/issues/77))
|
|
12
|
+
- **`astronomy_get_ephemeris`** accepts a `limit` of up to 90,000 rows per page, with a default of 200. Continuation notices supply the resolved `stop` when the original request omitted it. ([#75](https://github.com/cyanheads/astronomy-mcp-server/issues/75))
|
|
13
|
+
|
|
14
|
+
## Changed
|
|
15
|
+
|
|
16
|
+
- **Framework tooling** syncs development and packaging checks and excludes Vitest caches from MCPB bundles.
|
|
17
|
+
|
|
18
|
+
## Fixed
|
|
19
|
+
|
|
20
|
+
- **`astronomy_list_visible`** ranks above-horizon objects first, then orders each group by magnitude and altitude. Objects at or below the horizon carry a visibility caveat. ([#78](https://github.com/cyanheads/astronomy-mcp-server/issues/78))
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
- `@cyanheads/mcp-ts-core` ^0.13.22 → ^0.13.24
|
|
25
|
+
- `@biomejs/biome` 2.6.7 → 2.6.9
|
|
26
|
+
- `@types/node` ^26.6.6 → 26.6.10
|
|
27
|
+
- `@vitest/coverage-istanbul` added at ^5.1.2
|
|
28
|
+
- `ignore` ^7.0.14 → ^7.0.17
|
|
29
|
+
- `tsc-alias` ^1.9.10 → ^1.9.11
|
|
30
|
+
- `vitest` ^5.1.0 → ^5.1.2
|
package/changelog/template.md
CHANGED
|
@@ -75,17 +75,19 @@ security: false
|
|
|
75
75
|
Example — same fact, right size:
|
|
76
76
|
|
|
77
77
|
TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
|
|
78
|
-
(#341). `fetch`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
the deadline when the body closes,
|
|
78
|
+
([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). `fetch`
|
|
79
|
+
resolves once headers arrive and the deadline was cleared as the helper
|
|
80
|
+
returned, so a peer that answered promptly and then stalled the stream
|
|
81
|
+
held the request open indefinitely. A 2xx carrying a body now comes back
|
|
82
|
+
as a passthrough wrapper that disarms the deadline when the body closes,
|
|
83
|
+
errors, or is cancelled; …
|
|
83
84
|
[+90 more words of mechanism and edge cases]
|
|
84
85
|
|
|
85
86
|
RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
|
|
86
|
-
exchange, not just the headers**
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
exchange, not just the headers**
|
|
88
|
+
([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). A stalled
|
|
89
|
+
body aborts with the same `Timeout` error; the returned `Response` is a
|
|
90
|
+
wrapper, so identity assertions (`toBe(response)`) no longer hold.
|
|
89
91
|
|
|
90
92
|
Narrative intro: skip by default. Add one short sentence only when the
|
|
91
93
|
release theme genuinely needs framing the bullets can't carry. When many
|
|
@@ -37,6 +37,7 @@ export declare const getEphemerisTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
37
37
|
start: z.ZodOptional<z.ZodString>;
|
|
38
38
|
stop: z.ZodOptional<z.ZodString>;
|
|
39
39
|
step: z.ZodDefault<z.ZodString>;
|
|
40
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
40
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
41
42
|
designation: z.ZodString;
|
|
42
43
|
target_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ephemeris.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-ephemeris.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ephemeris.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAmJjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;iBA6D1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+b3B,CAAC"}
|
|
@@ -11,8 +11,9 @@ import { SkyPositionOutput } from './get-sky-position.tool.js';
|
|
|
11
11
|
import { num, sig } from '../format-numbers.js';
|
|
12
12
|
import { parseIsoInstant } from '../../../services/ephemeris/iso-time.js';
|
|
13
13
|
import { getHorizonsService } from '../../../services/horizons/horizons-service.js';
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const DEFAULT_PAGE_LIMIT = 200;
|
|
15
|
+
/** Leaves room for the lookahead row below Horizons' observed 90,024-row ceiling. */
|
|
16
|
+
const MAX_PAGE_LIMIT = 90_000;
|
|
16
17
|
/**
|
|
17
18
|
* The calendar years JPL Horizons reads from the ISO 8601 date this tool sends, measured
|
|
18
19
|
* against its START_TIME parser. An expanded year past 9999 comes back "Cannot interpret
|
|
@@ -100,8 +101,8 @@ function nextStepInstant(instant, step) {
|
|
|
100
101
|
return undefined;
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
|
-
* The STOP_TIME to send for one page:
|
|
104
|
-
*
|
|
104
|
+
* The STOP_TIME to send for one page: one sample past the applied limit when that
|
|
105
|
+
* comes before the requested stop, otherwise the requested stop.
|
|
105
106
|
*
|
|
106
107
|
* Horizons prints every row through STOP_TIME and refuses outright, with no ephemeris
|
|
107
108
|
* block, a span projecting past its undocumented output-line ceiling (90,024 rows when
|
|
@@ -110,10 +111,16 @@ function nextStepInstant(instant, step) {
|
|
|
110
111
|
* series continues. The walk stops at the requested stop, and a step it cannot advance
|
|
111
112
|
* leaves the request as asked.
|
|
112
113
|
*/
|
|
113
|
-
function pageStop(start, stop, step) {
|
|
114
|
-
const stopMs =
|
|
114
|
+
function pageStop(start, stop, step, limit) {
|
|
115
|
+
const stopMs = Date.parse(stop);
|
|
116
|
+
if (step.unit === 'm' || step.unit === 'h' || step.unit === 'd') {
|
|
117
|
+
const lookaheadMs = Date.parse(start) + limit * step.count * FIXED_STEP_MS[step.unit];
|
|
118
|
+
return lookaheadMs < stopMs
|
|
119
|
+
? { stop: new Date(lookaheadMs).toISOString(), bounded: true }
|
|
120
|
+
: { stop, bounded: false };
|
|
121
|
+
}
|
|
115
122
|
let instant = start;
|
|
116
|
-
for (let row = 1; row <=
|
|
123
|
+
for (let row = 1; row <= limit; row++) {
|
|
117
124
|
instant = nextStepInstant(instant, step);
|
|
118
125
|
if (instant === undefined || new Date(instant).getTime() >= stopMs) {
|
|
119
126
|
return { stop, bounded: false };
|
|
@@ -170,7 +177,7 @@ export const EphemerisOutput = z.object({
|
|
|
170
177
|
});
|
|
171
178
|
export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
172
179
|
title: 'astronomy-mcp-server: get small-body ephemeris',
|
|
173
|
-
description:
|
|
180
|
+
description: `Fetch a time-series ephemeris for a small body (asteroid or comet) or spacecraft from JPL Horizons — RA/Dec, distance, apparent magnitude, the constellation, and the angle from the Sun with its morning or evening side over a span, optionally with observer-relative altitude/azimuth. RA/Dec are astrometric ICRF (J2000), the frame of modern star charts, so they differ from the apparent of-date values astronomy_get_sky_position returns by precession, nutation, and aberration — a gap that grows with distance from the year 2000. 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). Spacecraft take their negative SPK-ID. Anything else goes through the Horizons name search: a bare name matching nothing (e.g. "433 Eros") or several records (e.g. "1P/Halley") is rejected, but one matching a single object succeeds even when that object is not the one meant — "Eros" resolves to Kerberos, a moon of Pluto — so compare \`target_name\`, the object Horizons resolved, with the one intended. A major-body name matching several bodies (e.g. "Mars") is rejected with the ID number of each body it matched — pass one, such as "499" for the planet. \`start\` and \`stop\` are ISO 8601 UTC dates in the Gregorian calendar, extended before 1582, in years 0100 through 9999; \`stop\` must not be before \`start\`, and a \`stop\` equal to \`start\` returns the single row at that instant. \`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). Each page defaults to ${DEFAULT_PAGE_LIMIT} rows. Set \`limit\` to choose the page size, up to ${MAX_PAGE_LIMIT}. When the span continues, the notice names the exact \`start\` for the next page and supplies the original stop if it was defaulted. Horizons includes the start instant, so using the notice avoids repeating a sample. Splitting the range into smaller adjacent spans works too; keep the same step either way so no sample is lost.`,
|
|
174
181
|
annotations: { readOnlyHint: true, openWorldHint: true, idempotentHint: true },
|
|
175
182
|
input: z.object({
|
|
176
183
|
designation: z
|
|
@@ -205,14 +212,20 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
205
212
|
.string()
|
|
206
213
|
.default('1h')
|
|
207
214
|
.describe('Step size as a positive count up to 2147483647 plus a unit of m (minutes), h (hours), d (days), mo (months), or y (years), e.g. "10m", "1h", "1d". Default "1h".'),
|
|
215
|
+
limit: z
|
|
216
|
+
.number()
|
|
217
|
+
.int()
|
|
218
|
+
.positive()
|
|
219
|
+
.default(DEFAULT_PAGE_LIMIT)
|
|
220
|
+
.describe(`Rows per page. Defaults to ${DEFAULT_PAGE_LIMIT}. Values above ${MAX_PAGE_LIMIT} are clamped with a notice.`),
|
|
208
221
|
}),
|
|
209
222
|
output: EphemerisOutput,
|
|
210
223
|
enrichment: {
|
|
211
224
|
truncated: z
|
|
212
225
|
.boolean()
|
|
213
|
-
.describe('True when the requested span continues past the returned rows
|
|
226
|
+
.describe('True when the requested span continues past the returned rows. The notice gives the resume start and any defaulted stop.'),
|
|
214
227
|
shown: z.number().describe('Number of ephemeris rows returned.'),
|
|
215
|
-
cap: z.number().describe('The
|
|
228
|
+
cap: z.number().describe('The applied rows-per-page limit after defaulting or clamping.'),
|
|
216
229
|
dropped: z
|
|
217
230
|
.number()
|
|
218
231
|
.optional()
|
|
@@ -220,7 +233,7 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
220
233
|
notice: z
|
|
221
234
|
.string()
|
|
222
235
|
.optional()
|
|
223
|
-
.describe('
|
|
236
|
+
.describe('Reports a clamped limit, how to retrieve remaining samples, and any rows dropped during parsing when applicable.'),
|
|
224
237
|
},
|
|
225
238
|
errors: [
|
|
226
239
|
{
|
|
@@ -356,9 +369,8 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
356
369
|
throw ctx.fail('invalid_time_range', `stop "${stop}" is before start "${start}".`);
|
|
357
370
|
}
|
|
358
371
|
/**
|
|
359
|
-
* A stop equal to start asks for
|
|
360
|
-
*
|
|
361
|
-
* START_TIME equal to STOP_TIME ("Bad dates"), so the request closes one millisecond
|
|
372
|
+
* A stop equal to start asks for one row, as when the only remaining sample is at stop.
|
|
373
|
+
* Horizons refuses equal START_TIME and STOP_TIME, so the request closes one millisecond
|
|
362
374
|
* later, a window holding the start row and no other. The last millisecond of 9999 has
|
|
363
375
|
* no readable instant after it.
|
|
364
376
|
*/
|
|
@@ -411,10 +423,11 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
411
423
|
const observer = input.latitude !== undefined && input.longitude !== undefined
|
|
412
424
|
? { latitude: input.latitude, longitude: input.longitude, elevation: input.elevation }
|
|
413
425
|
: undefined;
|
|
426
|
+
const limit = Math.min(input.limit, MAX_PAGE_LIMIT);
|
|
414
427
|
const page = singleInstant
|
|
415
428
|
? { stop: closingStop.toISOString(), bounded: false }
|
|
416
|
-
: pageStop(start, stop, step);
|
|
417
|
-
const result = await svc.ephemeris(input.designation, start, page.stop, input.step, ctx, observer);
|
|
429
|
+
: pageStop(start, stop, step, limit);
|
|
430
|
+
const result = await svc.ephemeris(input.designation, start, page.stop, input.step, limit, ctx, observer);
|
|
418
431
|
/**
|
|
419
432
|
* A single-instant request returns at most the row at `start`. Horizons closes some
|
|
420
433
|
* year-step spans with an extra row at STOP_TIME when the next on-series instant falls
|
|
@@ -429,14 +442,16 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
429
442
|
* The service marks a page truncated when it sees a row past the cap. Under a bounded
|
|
430
443
|
* stop that row is the last one requested, so a dropped row leaves the cap unreached
|
|
431
444
|
* with nothing after it — yet the series still continues whenever one step past the
|
|
432
|
-
* last point lies inside the requested span.
|
|
445
|
+
* last point lies inside the requested span. A closing row in the 1 ms window of a
|
|
446
|
+
* single-instant call is outside the requested span and never signals a continuation.
|
|
433
447
|
*/
|
|
434
448
|
const endsAt = points.at(-1)?.timeUtc;
|
|
435
449
|
const nextRow = endsAt === undefined ? undefined : nextStepInstant(endsAt, step);
|
|
436
|
-
const truncated =
|
|
437
|
-
(
|
|
438
|
-
|
|
439
|
-
|
|
450
|
+
const truncated = !singleInstant &&
|
|
451
|
+
(result.truncated ||
|
|
452
|
+
(page.bounded &&
|
|
453
|
+
nextRow !== undefined &&
|
|
454
|
+
new Date(nextRow).getTime() <= stopInstant.getTime()));
|
|
440
455
|
/**
|
|
441
456
|
* Every advertised continuation has to be a call that succeeds, so a page that ends
|
|
442
457
|
* inside the span never resumes past its stop. One step past the last row computes
|
|
@@ -451,26 +466,26 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
451
466
|
: nextRow;
|
|
452
467
|
/**
|
|
453
468
|
* `truncated`/`shown`/`cap` are required, so every call populates them or the
|
|
454
|
-
* effective-output parse fails
|
|
469
|
+
* effective-output parse fails.
|
|
455
470
|
* `dropped` rides along only when a row was discarded, which takes a response
|
|
456
471
|
* whose layout disagrees with the one the parse expects — Horizons pads a
|
|
457
472
|
* quantity it cannot supply with "n.a." rather than shortening the row — so a
|
|
458
473
|
* `0` on every healthy call would be noise on the advertised surface.
|
|
459
474
|
*
|
|
460
|
-
*
|
|
461
|
-
* they are joined and written once. Two writers would leave the later one erasing
|
|
462
|
-
* the earlier.
|
|
475
|
+
* Join the caveats in one notice because enrichment writers replace earlier values.
|
|
463
476
|
*/
|
|
464
477
|
const caveats = [];
|
|
478
|
+
if (input.limit > limit) {
|
|
479
|
+
caveats.push(`Requested limit ${input.limit} exceeds the maximum; applied limit ${limit}.`);
|
|
480
|
+
}
|
|
465
481
|
if (truncated) {
|
|
466
482
|
/**
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
* resumes at that last row gets it back a second time and double-counts it when
|
|
470
|
-
* the pages are concatenated. Advertise the instant one step past it instead, so
|
|
471
|
-
* the continuation picks up the next sample of the same series.
|
|
483
|
+
* Horizons includes START_TIME. Advance the resume instant so adjacent pages
|
|
484
|
+
* never repeat the last returned sample, even when a dropped row shortens a page.
|
|
472
485
|
*/
|
|
473
|
-
|
|
486
|
+
// Otherwise the next call would compute a new 24-hour span from its new start.
|
|
487
|
+
const resumeStop = input.stop === undefined ? ` and stop set to ${stop}` : '';
|
|
488
|
+
caveats.push(`Capped at ${limit} rows${endsAt ? `, ending at ${endsAt}` : ''}. To retrieve the omitted samples, re-call with start set to ${resumeFrom ?? 'one step past that instant'}${resumeStop} — Horizons includes the start instant in its output, so resuming at the last row returned repeats it — 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.`);
|
|
474
489
|
}
|
|
475
490
|
if (result.dropped > 0) {
|
|
476
491
|
caveats.push(`Dropped ${result.dropped} of the rows Horizons returned — no usable time, position, or distance — so this series is shorter than the requested step count and has a gap where each dropped row would have been.`);
|
|
@@ -478,7 +493,7 @@ export const getEphemerisTool = tool('astronomy_get_ephemeris', {
|
|
|
478
493
|
ctx.enrich({
|
|
479
494
|
truncated,
|
|
480
495
|
shown: points.length,
|
|
481
|
-
cap:
|
|
496
|
+
cap: limit,
|
|
482
497
|
...(result.dropped > 0 ? { dropped: result.dropped } : {}),
|
|
483
498
|
});
|
|
484
499
|
if (caveats.length > 0)
|
|
@@ -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,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAC;AAC5F,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,4FAA4F;AAC5F,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B;;;GAGG;AACH,MAAM,wBAAwB,GAAG,CAAC,MAAM,CAAC;A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,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,CAAC,aAAa,CAAC,YAAY,YAAY,UAAU,GAAG,IAAI,GAAG,KAAK,EAAE,CAChR,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"}
|
|
@@ -80,6 +80,7 @@ export declare const getRiseSetTool: import("@cyanheads/mcp-ts-core").ToolDefini
|
|
|
80
80
|
latitude: z.ZodNumber;
|
|
81
81
|
longitude: z.ZodNumber;
|
|
82
82
|
elevation: z.ZodDefault<z.ZodNumber>;
|
|
83
|
+
height_above_horizon: z.ZodDefault<z.ZodNumber>;
|
|
83
84
|
start: z.ZodOptional<z.ZodString>;
|
|
84
85
|
count: z.ZodDefault<z.ZodNumber>;
|
|
85
86
|
timezone: z.ZodOptional<z.ZodString>;
|
|
@@ -159,6 +160,12 @@ export declare const getRiseSetTool: import("@cyanheads/mcp-ts-core").ToolDefini
|
|
|
159
160
|
readonly when: "The `star` name is not present in the bundled bright-star catalog. The error lists every catalog star, in the message and as `catalog_stars`.";
|
|
160
161
|
readonly recovery: "Pick a star from the catalog this error lists, by common name or Bayer designation (e.g. \"Sirius\", \"Alpha CMa\", \"α Canis Majoris\"). A star outside the catalog cannot be located.";
|
|
161
162
|
readonly thrownBy: "service";
|
|
163
|
+
}, {
|
|
164
|
+
readonly reason: "invalid_horizon";
|
|
165
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
166
|
+
readonly when: "The reference terrain is outside the modeled elevation range or the elevations do not produce a finite refracted horizon dip.";
|
|
167
|
+
readonly recovery: "Use meters for elevation and height_above_horizon. Set the height to the nonnegative difference between observer and terrain elevations, keep terrain between -500 and 100,000 m, and lower extreme observer elevations.";
|
|
168
|
+
readonly thrownBy: "service";
|
|
162
169
|
}, {
|
|
163
170
|
readonly reason: "body_required";
|
|
164
171
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rise-set.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-rise-set.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuEjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkExB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-rise-set.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-rise-set.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuEjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkExB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmPzB,CAAC"}
|