@cyanheads/astronomy-mcp-server 0.2.8 → 0.2.9
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 +21 -8
- package/CLAUDE.md +21 -8
- package/Dockerfile +2 -2
- package/README.md +1 -1
- package/changelog/0.2.x/0.2.9.md +24 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/resources/definitions/body.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/body.resource.js +8 -0
- package/dist/mcp-server/resources/definitions/body.resource.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +10 -0
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
- package/package.json +6 -6
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.2.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.2.9
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -43,7 +43,7 @@ Both extension services carry their own timeout + retry boundary, cache nothing
|
|
|
43
43
|
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
44
44
|
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
45
45
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
46
|
-
- **
|
|
46
|
+
- **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler. No handler here does — every tool is a pure computation over its arguments, which is why the server runs stateless.
|
|
47
47
|
- **Secrets in env vars only** — never hardcoded.
|
|
48
48
|
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
49
49
|
|
|
@@ -90,6 +90,10 @@ export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
|
90
90
|
});
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
`tool()` stores `input` with `.strict()` applied, so an argument key the schema does not declare is rejected by name before the handler runs rather than stripped. Root level only — a nested `z.object()` still strips unless it is strict itself — and an input that already declares a catchall is left alone. `astronomy_get_satellite_passes` uses that carve-out: it calls `.strict()` itself so its `.meta({ oneOf })` exclusivity survives onto the advertised `inputSchema`, which a framework-applied `.strict()` would drop when it rebuilds the schema.
|
|
94
|
+
|
|
95
|
+
`error` is a reserved name on `output` and `enrichment` — that key is the wire's failure envelope, and `tool()` throws at definition time on a collision.
|
|
96
|
+
|
|
93
97
|
### Resource
|
|
94
98
|
|
|
95
99
|
```ts
|
|
@@ -103,6 +107,7 @@ export const bodyResource = resource('astronomy://body/{body}', {
|
|
|
103
107
|
title: 'astronomy-mcp-server: body reference card',
|
|
104
108
|
description: 'Static reference card for a solar-system body: name, type, mean radius (km), and naked-eye visibility.',
|
|
105
109
|
mimeType: 'application/json',
|
|
110
|
+
cacheHint: { ttlMs: 86_400_000, cacheScope: 'public' }, // static table — see Caching below
|
|
106
111
|
params: z.object({ body: z.string().describe('One of sun, moon, mercury … pluto.') }),
|
|
107
112
|
output: BodyCardOutput,
|
|
108
113
|
errors: [
|
|
@@ -196,6 +201,14 @@ await createApp({
|
|
|
196
201
|
|
|
197
202
|
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
198
203
|
|
|
204
|
+
### Caching
|
|
205
|
+
|
|
206
|
+
Nothing this server advertises varies by caller, so `createApp({ cacheHints })` declares the list operations (`tools/list`, `prompts/list`, `resources/list`, `resources/templates/list`, `server/discover`) cacheable for an hour with `cacheScope: 'public'`. They are all decided once at startup — the tool array by the two extension gates, the rest by literals — and an hour bounds how long a client can hold a catalog from a build whose gates have since changed. `resources/read` is deliberately left off that map: `bodyResource` carries its own 24-hour `cacheHint`, and a server-wide default would silently extend that policy to whichever resource is added next. Hints exist only on protocol revision 2026-07-28; a 2025-era response is unchanged either way.
|
|
207
|
+
|
|
208
|
+
### Session mode
|
|
209
|
+
|
|
210
|
+
`stateless`, set in the `Dockerfile` and documented in `.env.example`. The mode a stateless server gives up is the 2025-era multi-round-trip shim, and no handler here calls `ctx.requestInput` — every tool is a pure function of its arguments — so there is nothing to give up. stdio and 2026-07-28 clients behave identically under either mode, so a green field test says nothing about this choice; the absent call site is the reason.
|
|
211
|
+
|
|
199
212
|
---
|
|
200
213
|
|
|
201
214
|
## Context
|
|
@@ -204,13 +217,13 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
204
217
|
|
|
205
218
|
| Property | Description |
|
|
206
219
|
|:---------|:------------|
|
|
207
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
220
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
208
221
|
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
209
|
-
| `ctx.
|
|
222
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
223
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
210
224
|
| `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
|
|
211
225
|
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
212
226
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
213
|
-
| `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
|
|
214
227
|
| `ctx.requestId` | Unique request ID. |
|
|
215
228
|
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
216
229
|
|
|
@@ -326,7 +339,7 @@ Available skills:
|
|
|
326
339
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
327
340
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
328
341
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
329
|
-
| `api-context` | Context interface, logger, state,
|
|
342
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
330
343
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
331
344
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
332
345
|
| `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** astronomy-mcp-server
|
|
4
|
-
**Version:** 0.2.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.2.9
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
@@ -43,7 +43,7 @@ Both extension services carry their own timeout + retry boundary, cache nothing
|
|
|
43
43
|
- **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
|
|
44
44
|
- **Use `ctx.log`** for request-scoped logging. No `console` calls.
|
|
45
45
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
46
|
-
- **
|
|
46
|
+
- **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler. No handler here does — every tool is a pure computation over its arguments, which is why the server runs stateless.
|
|
47
47
|
- **Secrets in env vars only** — never hardcoded.
|
|
48
48
|
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
49
49
|
|
|
@@ -90,6 +90,10 @@ export const getMoonPhaseTool = tool('astronomy_get_moon_phase', {
|
|
|
90
90
|
});
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
`tool()` stores `input` with `.strict()` applied, so an argument key the schema does not declare is rejected by name before the handler runs rather than stripped. Root level only — a nested `z.object()` still strips unless it is strict itself — and an input that already declares a catchall is left alone. `astronomy_get_satellite_passes` uses that carve-out: it calls `.strict()` itself so its `.meta({ oneOf })` exclusivity survives onto the advertised `inputSchema`, which a framework-applied `.strict()` would drop when it rebuilds the schema.
|
|
94
|
+
|
|
95
|
+
`error` is a reserved name on `output` and `enrichment` — that key is the wire's failure envelope, and `tool()` throws at definition time on a collision.
|
|
96
|
+
|
|
93
97
|
### Resource
|
|
94
98
|
|
|
95
99
|
```ts
|
|
@@ -103,6 +107,7 @@ export const bodyResource = resource('astronomy://body/{body}', {
|
|
|
103
107
|
title: 'astronomy-mcp-server: body reference card',
|
|
104
108
|
description: 'Static reference card for a solar-system body: name, type, mean radius (km), and naked-eye visibility.',
|
|
105
109
|
mimeType: 'application/json',
|
|
110
|
+
cacheHint: { ttlMs: 86_400_000, cacheScope: 'public' }, // static table — see Caching below
|
|
106
111
|
params: z.object({ body: z.string().describe('One of sun, moon, mercury … pluto.') }),
|
|
107
112
|
output: BodyCardOutput,
|
|
108
113
|
errors: [
|
|
@@ -196,6 +201,14 @@ await createApp({
|
|
|
196
201
|
|
|
197
202
|
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
198
203
|
|
|
204
|
+
### Caching
|
|
205
|
+
|
|
206
|
+
Nothing this server advertises varies by caller, so `createApp({ cacheHints })` declares the list operations (`tools/list`, `prompts/list`, `resources/list`, `resources/templates/list`, `server/discover`) cacheable for an hour with `cacheScope: 'public'`. They are all decided once at startup — the tool array by the two extension gates, the rest by literals — and an hour bounds how long a client can hold a catalog from a build whose gates have since changed. `resources/read` is deliberately left off that map: `bodyResource` carries its own 24-hour `cacheHint`, and a server-wide default would silently extend that policy to whichever resource is added next. Hints exist only on protocol revision 2026-07-28; a 2025-era response is unchanged either way.
|
|
207
|
+
|
|
208
|
+
### Session mode
|
|
209
|
+
|
|
210
|
+
`stateless`, set in the `Dockerfile` and documented in `.env.example`. The mode a stateless server gives up is the 2025-era multi-round-trip shim, and no handler here calls `ctx.requestInput` — every tool is a pure function of its arguments — so there is nothing to give up. stdio and 2026-07-28 clients behave identically under either mode, so a green field test says nothing about this choice; the absent call site is the reason.
|
|
211
|
+
|
|
199
212
|
---
|
|
200
213
|
|
|
201
214
|
## Context
|
|
@@ -204,13 +217,13 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
204
217
|
|
|
205
218
|
| Property | Description |
|
|
206
219
|
|:---------|:------------|
|
|
207
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
220
|
+
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
|
|
208
221
|
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
209
|
-
| `ctx.
|
|
222
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
223
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
210
224
|
| `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
|
|
211
225
|
| `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
|
|
212
226
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
213
|
-
| `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
|
|
214
227
|
| `ctx.requestId` | Unique request ID. |
|
|
215
228
|
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
216
229
|
|
|
@@ -326,7 +339,7 @@ Available skills:
|
|
|
326
339
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
327
340
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
328
341
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
329
|
-
| `api-context` | Context interface, logger, state,
|
|
342
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
330
343
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
331
344
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
332
345
|
| `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
|
package/Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# This stage installs all dependencies (including dev), builds the TypeScript
|
|
5
5
|
# source code into JavaScript, and prepares the production assets.
|
|
6
6
|
# ==============================================================================
|
|
7
|
-
FROM oven/bun:1.
|
|
7
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build
|
|
8
8
|
|
|
9
9
|
WORKDIR /usr/src/app
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ RUN bun run build
|
|
|
30
30
|
# application. It uses a slim base image and only includes production
|
|
31
31
|
# dependencies and build artifacts.
|
|
32
32
|
# ==============================================================================
|
|
33
|
-
FROM oven/bun:1.
|
|
33
|
+
FROM oven/bun:1.4.0-slim AS production
|
|
34
34
|
|
|
35
35
|
WORKDIR /usr/src/app
|
|
36
36
|
|
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
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Adopts mcp-ts-core ^0.12.3: a tool call with an argument key the schema doesn't declare is now rejected by name instead of accepted, every tool's outputSchema declares the error envelope, and list operations plus the body resource advertise cache hints. Bun pinned to 1.4.0."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.2.9 — 2026-08-25
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **Cache hints** — `createApp` declares hour-long `public` hints on `tools/list`, `prompts/list`, `resources/list`, `resources/templates/list`, and `server/discover`; `astronomy://body/{body}` carries its own day-long `public` `cacheHint`. Effective on protocol revision 2026-07-28 only.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **A tool call with an argument key the schema doesn't declare is now rejected by name** instead of accepted and stripped — `@cyanheads/mcp-ts-core` ^0.12.3 applies `.strict()` to every tool's root input, advertising `additionalProperties: false`. `astronomy_get_satellite_passes` applies `.strict()` itself so its `norad_id`/`name` `oneOf` exclusivity survives onto the advertised `inputSchema`.
|
|
16
|
+
- **Every tool's advertised `outputSchema` now declares the error envelope.** Success fields become optional, an `error` object is added, and an `anyOf` recovers the original `required` list per branch — a client that validates `structuredContent` without checking `isError` stops rejecting error results as schema mismatches.
|
|
17
|
+
|
|
18
|
+
## Dependencies
|
|
19
|
+
|
|
20
|
+
- `@cyanheads/mcp-ts-core` `^0.11.5` → `^0.12.3`
|
|
21
|
+
- `@biomejs/biome` (dev) `2.5.8` → `2.5.10`
|
|
22
|
+
- `tsc-alias` (dev) `^1.9.1` → `^1.9.2`
|
|
23
|
+
- `vitest` (dev) `^4.1.10` → `^4.1.11`
|
|
24
|
+
- `packageManager` `bun@1.3.14` → `bun@1.4.0` (also pinned in `Dockerfile`)
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,23 @@ await createApp({
|
|
|
39
39
|
name: 'astronomy-mcp-server',
|
|
40
40
|
title: 'astronomy-mcp-server',
|
|
41
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
|
+
/**
|
|
43
|
+
* Every catalog a client can list here is decided once, at startup: the tool array is
|
|
44
|
+
* fixed by the two gates read above, and the resource, template, and prompt sets are
|
|
45
|
+
* literals. None of them varies by caller — no definition declares an auth scope — so
|
|
46
|
+
* the results are shareable rather than per-client, and an hour is short enough that a
|
|
47
|
+
* redeploy flipping a gate reaches a reconnecting client on its next miss. Deliberately
|
|
48
|
+
* absent is a `resources/read` entry: the one resource states its own longer hint, and a
|
|
49
|
+
* server-wide default would silently apply that policy to whatever is added next. Cache
|
|
50
|
+
* hints exist only on protocol revision 2026-07-28; 2025-era responses are unchanged.
|
|
51
|
+
*/
|
|
52
|
+
cacheHints: {
|
|
53
|
+
'tools/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
54
|
+
'prompts/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
55
|
+
'resources/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
56
|
+
'resources/templates/list': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
57
|
+
'server/discover': { ttlMs: 3_600_000, cacheScope: 'public' },
|
|
58
|
+
},
|
|
42
59
|
setup() {
|
|
43
60
|
initEphemerisService();
|
|
44
61
|
if (cfg.enableHorizons) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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;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C,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;;;;;;;;;OASG;IACH,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACxD,cAAc,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC1D,gBAAgB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC5D,0BAA0B,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACtE,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KAC9D;IACD,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"}
|
|
@@ -1 +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;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;GAmEvB,CAAC"}
|
|
@@ -14,6 +14,14 @@ export const bodyResource = resource('astronomy://body/{body}', {
|
|
|
14
14
|
title: 'astronomy-mcp-server: body reference card',
|
|
15
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
16
|
mimeType: 'application/json',
|
|
17
|
+
/**
|
|
18
|
+
* The card is a lookup into a compiled-in table of IAU/NASA figures — the same bytes
|
|
19
|
+
* for every caller, on every request, for the life of the build. A day is the horizon
|
|
20
|
+
* over which a redeploy would be the only thing to invalidate it, and `public` is
|
|
21
|
+
* accurate because nothing here is observer-, tenant-, or auth-scoped. Applies to
|
|
22
|
+
* protocol revision 2026-07-28 only; 2025-era reads are unchanged.
|
|
23
|
+
*/
|
|
24
|
+
cacheHint: { ttlMs: 86_400_000, cacheScope: 'public' },
|
|
17
25
|
params: z.object({
|
|
18
26
|
body: z
|
|
19
27
|
.string()
|
|
@@ -1 +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;AAC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.ZodDefault<z.ZodNumber>;
|
|
37
37
|
start: z.ZodOptional<z.ZodString>;
|
|
38
38
|
timezone: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
40
|
norad_id: z.ZodNumber;
|
|
41
41
|
satellite_name: z.ZodOptional<z.ZodString>;
|
|
42
42
|
resolved_from_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-satellite-passes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBA2DhC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-satellite-passes.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBA2DhC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmPjC,CAAC"}
|
|
@@ -103,6 +103,16 @@ export const getSatellitePassesTool = tool('astronomy_get_satellite_passes', {
|
|
|
103
103
|
.optional()
|
|
104
104
|
.describe('IANA timezone for localized pass times, e.g. "America/Los_Angeles". When omitted, output is UTC-only.'),
|
|
105
105
|
})
|
|
106
|
+
/**
|
|
107
|
+
* Strictness is declared here rather than left to `tool()`, which applies its own
|
|
108
|
+
* `.strict()` to an input that declares no catchall. That call builds a new schema,
|
|
109
|
+
* and Zod keys `.meta()` to the instance it was set on — so a framework-applied
|
|
110
|
+
* `.strict()` would drop the `oneOf` below and publish an `inputSchema` that no
|
|
111
|
+
* longer states the exclusivity. Strictening first puts `.meta()` on the schema that
|
|
112
|
+
* survives, so the emitted shape carries both `additionalProperties: false` and the
|
|
113
|
+
* branches. Same semantics either way — `.strict()` is the catchall `tool()` looks for.
|
|
114
|
+
*/
|
|
115
|
+
.strict()
|
|
106
116
|
/**
|
|
107
117
|
* `norad_id` and `name` are two ways of naming one object, so neither can be marked
|
|
108
118
|
* required on its own. `oneOf` carries the exclusivity into the emitted JSON Schema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-satellite-passes.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC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CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CACtc,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"}
|
|
1
|
+
{"version":3,"file":"get-satellite-passes.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-satellite-passes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IAClF,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0EAA0E,CAAC;IACvF,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iHAAiH,CAClH;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC;SACE,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,CAAC,6DAA6D,CAAC;QAC1E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QAC3E,OAAO,EAAE,CAAC,CAAC,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AAC,CAAC,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CACtc,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/astronomy-mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"mcpName": "io.github.cyanheads/astronomy-mcp-server",
|
|
5
5
|
"description": "What's in the sky, computed offline — planet and moon positions, rise/set, phases, eclipses, and seasons for any place and time via MCP. STDIO or Streamable HTTP.",
|
|
6
6
|
"type": "module",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"license": "Apache-2.0",
|
|
80
|
-
"packageManager": "bun@1.
|
|
80
|
+
"packageManager": "bun@1.4.0",
|
|
81
81
|
"engines": {
|
|
82
82
|
"bun": ">=1.3.0",
|
|
83
83
|
"node": ">=24.0.0"
|
|
@@ -86,20 +86,20 @@
|
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@cyanheads/mcp-ts-core": "^0.
|
|
89
|
+
"@cyanheads/mcp-ts-core": "^0.12.3",
|
|
90
90
|
"astronomy-engine": "^2.1.19",
|
|
91
91
|
"pino-pretty": "^13.1.3",
|
|
92
92
|
"satellite.js": "^7.1.0",
|
|
93
93
|
"zod": "^4.4.3"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@biomejs/biome": "2.5.
|
|
96
|
+
"@biomejs/biome": "2.5.10",
|
|
97
97
|
"@socketsecurity/bun-security-scanner": "^1.1.2",
|
|
98
98
|
"@types/node": "^26.2.0",
|
|
99
99
|
"depcheck": "^1.4.7",
|
|
100
100
|
"ignore": "^7.0.6",
|
|
101
|
-
"tsc-alias": "^1.9.
|
|
101
|
+
"tsc-alias": "^1.9.2",
|
|
102
102
|
"typescript": "^7.0.2",
|
|
103
|
-
"vitest": "^4.1.
|
|
103
|
+
"vitest": "^4.1.11"
|
|
104
104
|
}
|
|
105
105
|
}
|
package/server.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/astronomy-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.9",
|
|
10
10
|
"remotes": [
|
|
11
11
|
{
|
|
12
12
|
"type": "streamable-http",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
20
20
|
"identifier": "@cyanheads/astronomy-mcp-server",
|
|
21
21
|
"runtimeHint": "bun",
|
|
22
|
-
"version": "0.2.
|
|
22
|
+
"version": "0.2.9",
|
|
23
23
|
"packageArguments": [
|
|
24
24
|
{
|
|
25
25
|
"type": "positional",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
69
69
|
"identifier": "@cyanheads/astronomy-mcp-server",
|
|
70
70
|
"runtimeHint": "bun",
|
|
71
|
-
"version": "0.2.
|
|
71
|
+
"version": "0.2.9",
|
|
72
72
|
"packageArguments": [
|
|
73
73
|
{
|
|
74
74
|
"type": "positional",
|