@cyanheads/astronomy-mcp-server 0.2.9 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/AGENTS.md +25 -14
  2. package/CLAUDE.md +25 -14
  3. package/README.md +96 -77
  4. package/changelog/0.2.x/0.2.10.md +33 -0
  5. package/changelog/0.3.x/0.3.0.md +30 -0
  6. package/changelog/template.md +9 -26
  7. package/dist/index.js +9 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +1 -1
  10. package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
  11. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +20 -7
  12. package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
  13. package/dist/mcp-server/tools/definitions/find-events.tool.js +75 -18
  14. package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +2 -0
  16. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +3 -1
  18. package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts +3 -0
  20. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +4 -1
  22. package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +3 -0
  24. package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +4 -1
  26. package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +9 -0
  28. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
  29. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +10 -1
  30. package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
  31. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts +5 -1
  32. package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
  33. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +7 -2
  34. package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
  35. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts +3 -0
  36. package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
  37. package/dist/mcp-server/tools/definitions/list-visible.tool.js +4 -1
  38. package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
  39. package/dist/services/ephemeris/ephemeris-service.d.ts +30 -1
  40. package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
  41. package/dist/services/ephemeris/ephemeris-service.js +105 -42
  42. package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
  43. package/dist/services/ephemeris/types.d.ts +16 -1
  44. package/dist/services/ephemeris/types.d.ts.map +1 -1
  45. package/dist/services/horizons/horizons-service.d.ts.map +1 -1
  46. package/dist/services/horizons/horizons-service.js +11 -7
  47. package/dist/services/horizons/horizons-service.js.map +1 -1
  48. package/dist/services/satellite/satellite-service.d.ts.map +1 -1
  49. package/dist/services/satellite/satellite-service.js +7 -4
  50. package/dist/services/satellite/satellite-service.js.map +1 -1
  51. package/package.json +9 -9
  52. package/server.json +3 -3
package/AGENTS.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.2.9
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
- **Engines:** Bun ≥1.3.0, Node ≥24.0.0
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
6
+ **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
- **Zod:** ^4.4.3
8
+ **Zod:** ^4.6.5
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.
11
11
 
@@ -207,7 +207,9 @@ Nothing this server advertises varies by caller, so `createApp({ cacheHints })`
207
207
 
208
208
  ### Session mode
209
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.
210
+ `stateless`, declared in `src/index.ts` via `createApp({ sessionMode: 'stateless' })`, set in the `Dockerfile`, and set actively in `.env.example`. The `src/` declaration is the durable form — the posture travels with the source rather than with whatever a deployment happens to export — and `MCP_SESSION_MODE` still wins when it carries a meaningful value, which is how an operator overrides it. 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. That absent call site is also why `require: 'stateful'` is not declared: there is no capability worth failing startup over. 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
+
212
+ No service allocates a watcher, socket, or ref'd timer — the satellite TLE cache is a plain `Map` whose entries expire on read — so `createApp({ teardown })` is deliberately not declared. Add it the moment a service grows a handle that outlives a request.
211
213
 
212
214
  ---
213
215
 
@@ -233,7 +235,9 @@ Handlers receive a unified `ctx` object. Key properties:
233
235
 
234
236
  Handlers throw — the framework catches, classifies, and formats.
235
237
 
236
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` 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. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
238
+ **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. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`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. Forwarding it is lint-enforced per throw site (`error-contract-recovery-unforwarded`). 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.
239
+
240
+ Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()`, and the two extension services — and carry their hint inline because those call sites take no `ctx`. Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`find_events`'s `incomplete_observer` and `body_required`, `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.
237
241
 
238
242
  ```ts
239
243
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -308,9 +312,9 @@ src/
308
312
 
309
313
  ## Skills
310
314
 
311
- Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
315
+ Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` — this one ships both — would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
312
316
 
313
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
317
+ **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
314
318
 
315
319
  Available skills:
316
320
 
@@ -329,8 +333,9 @@ Available skills:
329
333
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
330
334
  | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
331
335
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
332
- | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
333
- | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
336
+ | `git-wrapup` | Land working-tree changes as a commit stack — version bump, changelog, verify, commit by concern, release commit on top. No tag, no push to main; opens the release PR when the project declares release PR mode |
337
+ | `release-pr-review` | Review pass on an open release PR — simplifier + correctness review, fixes as ordinary commits on top of the stack, PR body kept in sync. Release PR mode only |
338
+ | `release-and-publish` | Fast-forward merge (release PR mode) + tag + push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
334
339
  | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
335
340
  | `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
336
341
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
@@ -349,7 +354,7 @@ Available skills:
349
354
  | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
350
355
  | `api-workers` | Cloudflare Workers runtime |
351
356
 
352
- **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
357
+ **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `framework-skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
353
358
 
354
359
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
355
360
 
@@ -383,11 +388,11 @@ When you complete a skill's checklist, check the boxes and add a completion time
383
388
 
384
389
  ## Bundling
385
390
 
386
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
391
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
387
392
 
388
393
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
389
394
 
390
- **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
395
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `framework-skills/polish-docs-meta/references/readme.md`.
391
396
 
392
397
  ---
393
398
 
@@ -412,12 +417,18 @@ security: false # optional — true ONLY for a source
412
417
 
413
418
  `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
414
419
 
415
- **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
420
+ **Section order:** the Keep a Changelog sequence — Added, Changed, Deprecated, Removed, Fixed, Security — then `Dependencies` last. Include only sections with entries — don't ship empty headers.
416
421
 
417
422
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
418
423
 
419
424
  ---
420
425
 
426
+ ## Publishing
427
+
428
+ **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
429
+
430
+ ---
431
+
421
432
  ## Imports
422
433
 
423
434
  ```ts
package/CLAUDE.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.2.9
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
- **Engines:** Bun ≥1.3.0, Node ≥24.0.0
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
6
+ **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
- **Zod:** ^4.4.3
8
+ **Zod:** ^4.6.5
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.
11
11
 
@@ -207,7 +207,9 @@ Nothing this server advertises varies by caller, so `createApp({ cacheHints })`
207
207
 
208
208
  ### Session mode
209
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.
210
+ `stateless`, declared in `src/index.ts` via `createApp({ sessionMode: 'stateless' })`, set in the `Dockerfile`, and set actively in `.env.example`. The `src/` declaration is the durable form — the posture travels with the source rather than with whatever a deployment happens to export — and `MCP_SESSION_MODE` still wins when it carries a meaningful value, which is how an operator overrides it. 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. That absent call site is also why `require: 'stateful'` is not declared: there is no capability worth failing startup over. 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
+
212
+ No service allocates a watcher, socket, or ref'd timer — the satellite TLE cache is a plain `Map` whose entries expire on read — so `createApp({ teardown })` is deliberately not declared. Add it the moment a service grows a handle that outlives a request.
211
213
 
212
214
  ---
213
215
 
@@ -233,7 +235,9 @@ Handlers receive a unified `ctx` object. Key properties:
233
235
 
234
236
  Handlers throw — the framework catches, classifies, and formats.
235
237
 
236
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` 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. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
238
+ **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. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`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. Forwarding it is lint-enforced per throw site (`error-contract-recovery-unforwarded`). 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.
239
+
240
+ Most of this server's declared reasons are raised below the handler — `EphemerisService.resolveTime()` / `resolveTimezone()` / `lookupStar()`, `resolveBody()`, and the two extension services — and carry their hint inline because those call sites take no `ctx`. Those entries are marked `thrownBy: 'service'`; the handler-local preconditions (`find_events`'s `incomplete_observer` and `body_required`, `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.
237
241
 
238
242
  ```ts
239
243
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -308,9 +312,9 @@ src/
308
312
 
309
313
  ## Skills
310
314
 
311
- Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
315
+ Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` — this one ships both — would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
312
316
 
313
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
317
+ **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
314
318
 
315
319
  Available skills:
316
320
 
@@ -329,8 +333,9 @@ Available skills:
329
333
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
330
334
  | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
331
335
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
332
- | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
333
- | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
336
+ | `git-wrapup` | Land working-tree changes as a commit stack — version bump, changelog, verify, commit by concern, release commit on top. No tag, no push to main; opens the release PR when the project declares release PR mode |
337
+ | `release-pr-review` | Review pass on an open release PR — simplifier + correctness review, fixes as ordinary commits on top of the stack, PR body kept in sync. Release PR mode only |
338
+ | `release-and-publish` | Fast-forward merge (release PR mode) + tag + push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
334
339
  | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
335
340
  | `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
336
341
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
@@ -349,7 +354,7 @@ Available skills:
349
354
  | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
350
355
  | `api-workers` | Cloudflare Workers runtime |
351
356
 
352
- **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
357
+ **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `framework-skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
353
358
 
354
359
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-03-11`).
355
360
 
@@ -383,11 +388,11 @@ When you complete a skill's checklist, check the boxes and add a completion time
383
388
 
384
389
  ## Bundling
385
390
 
386
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
391
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
387
392
 
388
393
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
389
394
 
390
- **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
395
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `framework-skills/polish-docs-meta/references/readme.md`.
391
396
 
392
397
  ---
393
398
 
@@ -412,12 +417,18 @@ security: false # optional — true ONLY for a source
412
417
 
413
418
  `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
414
419
 
415
- **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
420
+ **Section order:** the Keep a Changelog sequence — Added, Changed, Deprecated, Removed, Fixed, Security — then `Dependencies` last. Include only sections with entries — don't ship empty headers.
416
421
 
417
422
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
418
423
 
419
424
  ---
420
425
 
426
+ ## Publishing
427
+
428
+ **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
429
+
430
+ ---
431
+
421
432
  ## Imports
422
433
 
423
434
  ```ts
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.2.9-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/astronomy-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/astronomy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/astronomy-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.3.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/astronomy-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/astronomy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/astronomy-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -27,9 +27,11 @@
27
27
 
28
28
  ---
29
29
 
30
- ## Tools
30
+ ## Overview
31
31
 
32
- Seven tools — five form the keyless, offline, deterministic core (always registered); two are network-backed extensions that register only when their config gate is enabled.
32
+ Observational astronomy computed in-process from [`astronomy-engine`](https://github.com/cosinekitty/astronomy) — sky positions, rise/set and twilight times, moon phases, and eclipse/conjunction/opposition events for any place and time, plus two optional network-backed extensions for small-body ephemerides and satellite passes. List what's visible right now, plan a dark-sky window, or search forward for the next sky event — deterministic and keyless for the five core tools, given the same body, time, and observer. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
33
+
34
+ ### Tools
33
35
 
34
36
  | Tool | Description |
35
37
  |:---|:---|
@@ -41,119 +43,129 @@ Seven tools — five form the keyless, offline, deterministic core (always regis
41
43
  | `astronomy_get_ephemeris` | *(gated extension)* Time-series ephemeris for a small body (asteroid/comet) or spacecraft via JPL Horizons — covers what the in-process major-body set cannot. Off by default. |
42
44
  | `astronomy_get_satellite_passes` | *(gated extension)* Visible passes of a satellite (by NORAD catalog number, or by a name resolved against the catalog) over an observer, from a CelesTrak GP element set propagated with SGP4 in-process. Off by default. |
43
45
 
44
- This server computes geometry — where a body is, when an event happens — not astrophysics. The core wraps [`astronomy-engine`](https://github.com/cosinekitty/astronomy) (sub-arcminute accuracy, ≈1900–2100), so given the same `(body, time, observer)` every core tool returns identical output with no network, no rate limit, and no API key. It does not geocode: resolve a place name to latitude/longitude upstream (e.g. via an OpenStreetMap server) and pass an IANA `timezone` to receive observer-local times alongside UTC.
46
+ ### Resources
45
47
 
46
- ### `astronomy_get_sky_position`
48
+ | Resource | Description |
49
+ |:---|:---|
50
+ | `astronomy://body/{body}` | Static reference card for a solar-system body — canonical name, type, mean radius (km), and naked-eye visibility. `{body}` is one of `sun`, `moon`, `mercury` … `pluto`. |
47
51
 
48
- Apparent topocentric position of one solar-system body or a named bright star.
52
+ Also reachable via tools — `astronomy_get_sky_position` returns the same body metadata inline — so tool-only clients lose nothing.
49
53
 
50
- - Equatorial (RA/Dec), refraction-corrected horizontal (altitude/azimuth), and ecliptic coordinates in one call
51
- - Distance, apparent magnitude, angular diameter, phase angle, illuminated fraction, and the constellation the body falls in
52
- - Parallax- and aberration-corrected for the observer; default elevation 0 m, default time now
53
- - Supply `star` (e.g. `"Sirius"`, `"Polaris"`) instead of `body` to target a catalog star; `star` takes precedence over `body`
54
- - `null` magnitude / angular diameter / phase fields where the engine cannot compute them — never fabricated
54
+ ### Prompts
55
55
 
56
- ---
56
+ | Prompt | Description |
57
+ |:---|:---|
58
+ | `astronomy_stargazing_plan` | Structures a "plan tonight's stargazing from \<place\>" workflow, chaining the tools in order and naming the cross-server geocoding and weather steps. |
57
59
 
58
- ### `astronomy_get_rise_set`
60
+ Design reference: [`docs/design.md`](./docs/design.md).
59
61
 
60
- Rise, set, and culmination times, with twilight for the Sun.
62
+ ## Capability reference
61
63
 
62
- - Searches forward from `start` and returns the next `count` cycles (default 1, max 31)
63
- - For `body: "sun"`, bundles the three twilight pairs (civil −6°, nautical −12°, astronomical −18°) so a single call answers "when does the sun set and when is it truly dark"
64
- - Circumpolar / never-rises situations are reported as `null` rise/set fields with an explanatory `note` rather than an error — the fact is the answer
65
- - Optional observer-local times when an IANA `timezone` is supplied
64
+ ### `astronomy_get_sky_position` <sub>tool</sub>
66
65
 
67
- ---
66
+ - Target one solar-system body (`body`) or a named bright star (`star`, takes precedence over `body`) — one of the two is required
67
+ - Returns equatorial (RA/Dec), refraction-corrected horizontal (alt/az), and ecliptic coordinates plus distance, magnitude, angular diameter, phase angle, illuminated fraction, and constellation in one call
68
+ - For a solar-system body, also inlines its `astronomy://body/{body}` reference card (type, mean radius, naked-eye visibility) — absent for a star, which has no card
69
+ - `magnitude`, `angular_diameter_arcsec`, `phase_angle_degrees`, and `illuminated_fraction` are `null`, never fabricated, where the engine can't compute them
70
+ - Default elevation 0 m, default time now; pass `timezone` for observer-local output alongside UTC
68
71
 
69
- ### `astronomy_find_events`
72
+ ---
70
73
 
71
- Forward search across nine event classes under one `event` enum.
74
+ ### `astronomy_get_rise_set` <sub>tool</sub>
72
75
 
73
- - `solar_eclipse`, `lunar_eclipse`, `equinox`, `solstice`, `moon_quarter`, `opposition`, `conjunction`, `max_elongation`, `perigee_apogee`
74
- - Solar eclipses require an observer (`latitude`/`longitude`) and report local visibility and contact times; lunar eclipses are geocentric and need no location
75
- - The body-relative events (`opposition`, `conjunction`, `max_elongation`, `perigee_apogee`) require a `body`, gated to the bodies each event exists for: `opposition` to the superior planets (mars through pluto), `conjunction` to any planet, `max_elongation` to mercury and venus, `perigee_apogee` to the moon, earth, or a planet
76
- - `perigee_apogee` on `earth` returns its perihelion and aphelion; `conjunction` on mercury or venus returns both the inferior and superior passes, labelled by `conjunction_kind`
77
- - Returns the next `count` occurrences (default 1, max 20)
76
+ - Searches forward from `start` (default now) and returns the next `count` cycles — default 1, max 31
77
+ - For `body: "sun"`, each cycle also carries the three twilight pairs (civil −6°, nautical −12°, astronomical −18°) as dawn/dusk times
78
+ - Circumpolar or never-rises situations return `null` rise/set fields with an explanatory `note`, not an error
79
+ - When the body is already up at `start`, that cycle's `rise` is `null` (it precedes the search) so a `set` is never reported earlier than its paired `rise`
80
+ - Default elevation 0 m; pass `timezone` for observer-local times alongside UTC
78
81
 
79
82
  ---
80
83
 
81
- ### `astronomy_list_visible`
84
+ ### `astronomy_get_moon_phase` <sub>tool</sub>
82
85
 
83
- The workflow flagship — one call returns a ranked, condition-gated "what's up" list.
86
+ - Geocentric — no observer location needed
87
+ - Returns illuminated fraction, phase angle, phase name, synodic age in days, and the next four quarter phases (new/first/full/last) in one call
88
+ - `time` defaults to now; pass `timezone` for observer-local timestamps alongside UTC
84
89
 
85
- - Iterates every naked-eye solar-system body (and, with `include_stars`, the bundled bright stars), keeps those above the horizon, and ranks them brightest-and-highest first
86
- - Attaches a plain-language `visibility_note` to each body, computed from real magnitude and altitude — no synthetic score
87
- - Returns the whole-sky condition (`daylight` / `civil_twilight` / `nautical_twilight` / `astronomical_twilight` / `dark`) and the Sun's altitude alongside the list
88
- - `time` is a single evaluation instant, not a window — for "tonight" pass a time after astronomical dusk (use `astronomy_get_rise_set` on the Sun to find it)
89
- - Use `min_altitude` to skip objects grazing the horizon
90
+ ---
91
+
92
+ ### `astronomy_find_events` <sub>tool</sub>
93
+
94
+ - One `event` enum covers nine classes: `solar_eclipse`, `lunar_eclipse`, `equinox`, `solstice`, `moon_quarter`, `opposition`, `conjunction`, `max_elongation`, `perigee_apogee`
95
+ - Both eclipse classes take an optional observer (`latitude` and `longitude` together — one alone is rejected):
96
+ - `solar_eclipse` without one returns global eclipses, with the peak's `peak_latitude_degrees`/`peak_longitude_degrees` for total and annular eclipses; with one it returns only eclipses visible from that point, with local contact times
97
+ - `lunar_eclipse` contact times are geocentric either way; an observer adds local circumstances
98
+ - Local circumstances are `local_visible` (the eclipsed body above the horizon at any contact) and `contact_altitudes_degrees` (its altitude at each contact), so a sunrise or sunset eclipse reads differently from a midday one
99
+ - Every other class is geocentric and ignores a location
100
+ - Body-relative events require `body`, gated to which bodies each applies to: `opposition` to mars through pluto, `conjunction` to any planet, `max_elongation` to mercury or venus, `perigee_apogee` to the moon, earth, or a planet
101
+ - Returns the next `count` occurrences, default 1, max 20; searches stop at the end of 2100, and a notice says so when that returns fewer than `count`
102
+ - `perigee_apogee` on earth returns perihelion/aphelion; `conjunction` on mercury or venus returns both the inferior and superior pass, labelled by `conjunction_kind`
90
103
 
91
104
  ---
92
105
 
93
- ### `astronomy_get_ephemeris` *(gated extension)*
106
+ ### `astronomy_list_visible` <sub>tool</sub>
107
+
108
+ - One call for every naked-eye solar-system body (plus, with `include_stars`, the bundled bright stars) above the horizon, ranked brightest-and-highest first
109
+ - Each body carries a deterministic `visibility_note` computed from real magnitude and altitude
110
+ - Returns the whole-sky `sky_condition` (`daylight` / `civil_twilight` / `nautical_twilight` / `astronomical_twilight` / `dark`) and the Sun's altitude alongside the list
111
+ - `time` is a single evaluation instant, not a window; `min_altitude` (default 0) filters out bodies grazing the horizon
112
+ - Default elevation 0 m; pass `timezone` for observer-local times per body
113
+
114
+ ---
94
115
 
95
- Time-series ephemeris for a small body or spacecraft via the keyless JPL Horizons API. Registered only when `ASTRONOMY_ENABLE_HORIZONS` is set.
116
+ ### `astronomy_get_ephemeris` <sub>tool</sub>
96
117
 
97
- - Covers asteroids, comets, and spacecraft the in-process major-body engine cannot see
98
- - The designation is passed to Horizons verbatim and must resolve to a single record:
99
- - **Numbered asteroid** — trailing-semicolon record lookup: `"433;"` (Eros), `"1;"` (Ceres)
100
- - **Periodic comet** — DES + closest-apparition flag: `"DES=1P;CAP"` (Halley), `"DES=2P;CAP"` (Encke)
101
- - **Spacecraft** — negative SPK-ID: `"-48"` (Hubble)
102
- - A bare name like `"433 Eros"` or `"1P/Halley"` returns no match or an ambiguous record list and is rejected. Look up designations at [ssd.jpl.nasa.gov/tools/sbdb_lookup.html](https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html).
103
- - `start`/`stop` are ISO 8601 UTC and `stop` must be after `start`; `step` is a positive count plus a unit of `m`, `h`, `d`, `mo`, or `y` (`"10m"`, `"1h"`, `"1d"`)
104
- - Supplying observer `latitude`/`longitude` yields topocentric coordinates and adds alt/az — pass both or neither; one alone is rejected rather than silently downgraded to a geocentric query. Horizons is asked for refracted elevation on a topocentric request, so `altitude_degrees` carries the same refraction correction the offline core tools report
105
- - Large spans truncate inline at 200 rows. The disclosure names the instant the returned rows end at and the `start` to resume from — one step past it, because Horizons includes the start instant in its output, so resuming at the last row returned repeats it. Re-call with that `start`, or split the range into smaller adjacent spans — keep the same `step` and repeat until `truncated` is `false`, which concatenates back into the original series with no repeated sample. Widening the step discards samples the original range asked for
118
+ - Registered only when `ASTRONOMY_ENABLE_HORIZONS` is set; off by default
119
+ - Time-series ephemeris for a small body or spacecraft via JPL Horizons — RA/Dec, distance, magnitude, and optional alt/az when observer `latitude`/`longitude` are both supplied (one alone is rejected)
120
+ - `designation` must resolve to a single Horizons record: numbered asteroid as `"433;"`, periodic comet as `"DES=1P;CAP"`, spacecraft as a negative SPK-ID — a bare name is rejected
121
+ - `step` is a count plus unit (`m`/`h`/`d`/`mo`/`y`, e.g. `"1h"`); `stop` must be after `start` (defaults to a 24h span from now)
122
+ - Truncates inline at 200 rows; the truncation notice names the exact `start` to resume from, one step past the last row returned
106
123
 
107
124
  ---
108
125
 
109
- ### `astronomy_get_satellite_passes` *(gated extension)*
126
+ ### `astronomy_get_satellite_passes` <sub>tool</sub>
110
127
 
111
- Visible passes of a satellite over an observer. Registered only when `ASTRONOMY_ENABLE_SATELLITES` is set.
128
+ - Registered only when `ASTRONOMY_ENABLE_SATELLITES` is set; off by default
129
+ - Identify the satellite by exactly one of `norad_id` or `name` (case-insensitive substring match against CelesTrak's catalog) — both or neither is rejected
130
+ - Fetches the current GP element set from CelesTrak and propagates it with SGP4 in-process; only naked-eye-plausible passes (sunlit at peak, observer sky dark) are returned
131
+ - `start` must be within about a month of the element set's epoch — older elements no longer describe the orbit, and an element set that won't propagate inside that window is rejected as a reentry
132
+ - Searches the next `days` ahead, default 7, max 10; pass `timezone` for observer-local pass times
112
133
 
113
- - Identify the satellite by exactly one of `norad_id` (e.g. `25544` for the ISS) or `name` — both, or neither, is rejected before any request goes out
114
- - Fetches the object's current GP element set from CelesTrak as OMM JSON and propagates it with SGP4 in-process. JSON rather than TLE because the legacy format cannot encode a catalog number above 99999, and CelesTrak already assigns six-digit numbers
115
- - `name` is matched as a case-insensitive substring of the catalog name, so it resolves only when it picks out a single object — either the sole match, or the one match carrying that name outright. A broader query is rejected with the matching objects and their catalog numbers to choose from, capped at 20 and stating the full match count. The result echoes the query that resolved it as `resolved_from_name`
116
- - Returns each pass's rise, peak, and set times with azimuths and the peak elevation
117
- - Only naked-eye-plausible passes are returned — the satellite must be sunlit at peak while the observer's sky is dark
118
- - Every returned pass rises inside the requested window. A pass already underway at `start` is omitted rather than reported with `start` as its `rise_utc`; move `start` earlier to see it. A pass rising exactly at `start` is kept, so feeding a reported `rise_utc` back as `start` never loses it
119
- - A `start` further from the element set's epoch than the horizon below is rejected as out of range on that distance alone, and an element set that will not propagate to a window inside the horizon is rejected as a reentry — so an empty `passes` list means only "no visible passes in this window"
120
- - `start` must be within about a month of the element set's epoch, which for a tracked object is hours old — so in practice within about a month of today. Past that the mean elements no longer describe the orbit, and SGP4 keeps returning positions built from them, which is why the horizon is enforced on the epoch distance rather than on whether the propagation succeeds
121
- - NORAD catalog numbers and catalog names are found at [celestrak.org](https://celestrak.org) or [heavens-above.com](https://heavens-above.com)
122
- - Searches the next `days` (default 7, max 10); optional observer-local pass times
134
+ ---
123
135
 
124
- ## Resources and prompts
136
+ ### `astronomy://body/{body}` <sub>resource</sub>
125
137
 
126
- | Type | Name | Description |
127
- |:---|:---|:---|
128
- | Resource | `astronomy://body/{body}` | Static reference card for a solar-system body — canonical name, type, mean radius (km), and naked-eye visibility. `{body}` is one of `sun`, `moon`, `mercury` … `pluto`. |
129
- | Prompt | `astronomy_stargazing_plan` | Structures a "plan tonight's stargazing from \<place\>" workflow, chaining the tools in order and naming the cross-server geocoding and weather steps. Anchors every step to the requested night in the observer timezone, and opts into the bright-star catalog. |
138
+ - Static reference card as `application/json`: canonical name, type (`star`/`planet`/`moon`/`dwarf`), mean radius in km, naked-eye visibility
139
+ - `{body}` is one of `sun`, `moon`, `mercury` … `pluto`; supports name completion
140
+ - Also returned inline by `astronomy_get_sky_position` for solar-system bodies, so tool-only clients lose nothing
130
141
 
131
- All resource data is also reachable via tools — `astronomy_get_sky_position` returns the same body metadata inline — so tool-only clients lose nothing. Design reference: [`docs/design.md`](./docs/design.md).
142
+ ---
132
143
 
133
- ## Features
144
+ ### `astronomy_stargazing_plan` <sub>prompt</sub>
134
145
 
135
- Built on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):
146
+ - Arguments: `location` required; `date` optional (`YYYY-MM-DD`), defaults to tonight
147
+ - Returns one user message chaining the five core tools in order — sunset/dusk, moon phase and moon rise/set, then the ranked visible list with `include_stars` on
148
+ - Names the cross-server geocoding and weather steps this server doesn't cover, and anchors every step to the observer's local night rather than UTC midnight
136
149
 
137
- - Declarative tool, resource, and prompt definitions — single file per primitive, framework handles registration and validation
138
- - Unified error handling — handlers throw, framework catches, classifies, and formats
139
- - Pluggable auth: `none`, `jwt`, `oauth`
140
- - Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`
141
- - Structured logging with optional OpenTelemetry tracing
142
- - STDIO and Streamable HTTP transports; the keyless core is Cloudflare Workers-portable (pure JS, no native deps)
150
+ ## Features
151
+
152
+ Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
143
153
 
144
154
  Astronomy-specific:
145
155
 
146
- - Keyless, offline, deterministic core — `astronomy-engine` is the source of truth for positional astronomy; no network, no rate limit, no API key for the five core tools
156
+ - Keyless, offline, deterministic core — `astronomy-engine` is the source of truth for positional astronomy; no network, no rate limit, no API key for the five core tools, and the keyless core is pure JS with no native deps
157
+ - Positions are accurate to sub-arcminute precision within the engine's ≈1900–2100 span; a `time`/`start` outside that range is rejected as `time_out_of_range`
147
158
  - Both UTC and observer-local time on every output when a `timezone` is supplied; the server never guesses a timezone from coordinates
148
159
  - Bundled bright-star catalog so `astronomy_list_visible` and `astronomy_get_sky_position` answer for named stars
149
160
  - Two gated extensions (off by default) reach beyond the major-body set — JPL Horizons small bodies and CelesTrak satellite passes — each with its own timeout/retry boundary; they degrade loudly and never silently fall back to the core
161
+ - Does not geocode — resolve a place name to coordinates upstream (e.g. via an OpenStreetMap server) and pass an IANA `timezone` for observer-local output
150
162
 
151
163
  Agent-friendly output:
152
164
 
153
- - Preserves uncertainty — magnitude, angular diameter, phase, and illumination are `null` (not 0, not omitted) when unavailable, and `format()` renders "unavailable" rather than inventing a value
154
- - Server-computed visibility notes are deterministic prose from real magnitude and altitude — no synthetic confidence scores
155
- - Typed error contracts with recovery hints (out-of-range time, missing observer/body, unresolved designation) so callers can correct and retry
156
- - `format()` is content-complete on every tool — `content[]`-only clients see the same fields as `structuredContent` clients, and the same numbers: a value reads as a rounded display figure followed by its exact counterpart in brackets, e.g. `RA 4.4116 h [4.411597993526305]`, dropped when the rounding already round-trips. `astronomy_list_visible` rounds hardest, since its per-body line is read at a glance down a list of dozens of bodies, and still carries every value's exact tail — no listed body needs a second call to recover its coordinates
165
+ - Preserves uncertainty — magnitude, angular diameter, phase, and illuminated fraction are `null` (never fabricated or zeroed) where the engine can't compute them, and `format()` renders "unavailable" rather than inventing a value
166
+ - Deterministic visibility notes — `astronomy_list_visible`'s plain-language headline is computed from real magnitude and altitude, never a synthetic confidence score
167
+ - Typed error contracts with recovery hints — out-of-range time, missing observer/body, unresolved designation — so callers can correct and retry
168
+ - Rounded-plus-exact dual values — `format()` pairs a rounded display figure with its exact counterpart in brackets (e.g. `RA 4.4116 h [4.411597993526305]`), dropped only when the rounding already round-trips, so a `content[]`-only client never needs a second call to recover full precision
157
169
 
158
170
  ## Getting started
159
171
 
@@ -233,7 +245,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
233
245
 
234
246
  ### Prerequisites
235
247
 
236
- - [Bun v1.3.0](https://bun.sh/) or higher (or Node.js v24+).
248
+ - [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
237
249
  - No API key required — both the offline core and the two keyless extensions (JPL Horizons, CelesTrak) need no credentials.
238
250
 
239
251
  ### Installation
@@ -256,6 +268,13 @@ cd astronomy-mcp-server
256
268
  bun install
257
269
  ```
258
270
 
271
+ 4. **Configure environment (optional):**
272
+
273
+ ```sh
274
+ cp .env.example .env
275
+ # edit .env only to enable the gated extensions or override a default
276
+ ```
277
+
259
278
  ## Configuration
260
279
 
261
280
  All configuration is optional and validated at startup via Zod schemas in `src/config/server-config.ts`. The core runs with no configuration at all.
@@ -337,7 +356,7 @@ See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rule
337
356
 
338
357
  ## Contributing
339
358
 
340
- Issues and pull requests are welcome. Run checks and tests before submitting:
359
+ Issues are welcome. Run checks and tests before submitting:
341
360
 
342
361
  ```sh
343
362
  bun run devcheck
@@ -0,0 +1,33 @@
1
+ ---
2
+ summary: "Adopts mcp-ts-core ^0.12.3 → ^0.13.6: a schema-rejected tool call now carries structuredContent.error, tool errors close with a reason/retryable suffix and a Recovery hint, and a client-injected metadata key is dropped before validation instead of rejecting the call. Skill tree moves to framework-skills/; releases now ship through a release PR."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.10 — 2026-09-19
8
+
9
+ ## Added
10
+
11
+ - **`.github/workflows/codeql.yml`** — the fleet-standard CodeQL workflow, now shipped in the repo (runs only while GitHub's CodeQL default setup is off).
12
+ - **`createApp({ sessionMode: 'stateless' })`** declared in `src/index.ts` — the durable form of the session posture this server already ran under (`.env.example` and the `Dockerfile` set it too); `MCP_SESSION_MODE` still overrides when set.
13
+ - **`errors[]` entries carry `thrownBy: 'service'`** on every reason raised below the handler, so the new `error-contract-unthrown` lint rule verifies it without a false miss.
14
+
15
+ ## Changed
16
+
17
+ - **A schema-rejected tool call (unknown key, wrong type, missing required field) now carries `structuredContent.error`** alongside its `content[]` text — a client that reads only the structured envelope no longer misses an argument-validation rejection.
18
+ - **A client-injected metadata key (`_meta`, `tool_call_description`, `toolCallId`, or any undeclared underscore-prefixed key) is dropped before schema validation** instead of triggering the strict-input rejection added in 0.2.9; a declared key or one whose case/separator-folded form names exactly one declared key is unaffected. `inputSchema` is unchanged.
19
+ - **Tool error text ends with `(reason <reason> · not retryable)`** when the thrown error carries a `data.reason` or a boolean `data.retryable`, and an argument rejection appends a `Recovery: <hint>` line derived from the schema — dropped when the message already states the hint verbatim.
20
+ - **Skill tree moved from `skills/` to `framework-skills/`** — Claude Code and Codex auto-load a plugin's root `skills/`, so shipping `.claude-plugin/`/`.codex-plugin/` handed these development skills to every installing agent. The agent-facing mirrors (`.claude/skills/`, `.agents/skills/`) keep their names.
21
+ - **Releases now ship through a release PR** (`CLAUDE.md`/`AGENTS.md` `## Publishing`, mode `straight-through`) — `git-wrapup` lands the commit stack on `release/<version>` and opens the PR; `release-and-publish` fast-forwards `main` and tags from there.
22
+ - **README reorganized** around an Overview section and a per-tool capability reference, matching the framework's updated `polish-docs-meta` reference.
23
+
24
+ ## Dependencies
25
+
26
+ - `@cyanheads/mcp-ts-core` `^0.12.3` → `^0.13.6`
27
+ - `zod` `^4.4.3` → `^4.6.5`
28
+ - `@biomejs/biome` (dev) `2.5.10` → `2.5.14`
29
+ - `vitest` (dev) `^4.1.11` → `^5.0.1`
30
+ - `@types/node` (dev) `^26.2.0` → `^26.6.1`
31
+ - `ignore` (dev) `^7.0.6` → `^7.0.9`
32
+ - `tsc-alias` (dev) `^1.9.2` → `^1.9.5`
33
+ - `engines.bun` floor raised `>=1.3.0` → `>=1.4.0` (already pinned to `bun@1.4.0` in `packageManager`/`Dockerfile` since 0.2.9)
@@ -0,0 +1,30 @@
1
+ ---
2
+ summary: "astronomy_find_events: solar_eclipse now searches globally without an observer, reporting the peak location of total/annular eclipses; both eclipse classes gain any-contact local_visible and per-contact altitudes; incomplete_observer replaces observer_required; searches stop at 2100."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.3.0 — 2026-09-23
8
+
9
+ ## Added
10
+
11
+ - **`astronomy_find_events`: `solar_eclipse` without an observer now searches globally**, returning `kind`, `peak_utc`, `obscuration`, and — for a total or annular eclipse — the `peak_latitude_degrees`/`peak_longitude_degrees` where it is greatest.
12
+ - **Both eclipse classes report `contact_altitudes_degrees`** — the eclipsed body's altitude at each contact — when an observer is supplied.
13
+ - **Every `find_events` search stops at the end of 2100**, the close of the supported span; a result short of the requested `count` carries an enrichment `notice` saying so.
14
+
15
+ ## Changed
16
+
17
+ - **`local_visible` is now any-contact, not peak-only**, on both eclipse classes — an eclipse visible only near sunrise or sunset used to read as not visible.
18
+ - **Lunar eclipses accept an optional observer** for local circumstances; contact times stay geocentric either way.
19
+
20
+ ## Removed
21
+
22
+ - **`observer_required` is gone.** `solar_eclipse` no longer requires an observer. A lone `latitude` or `longitude` on either eclipse class (not both) now throws `incomplete_observer` instead.
23
+
24
+ ## Fixed
25
+
26
+ - **`astronomy_stargazing_plan` step 1** named the nonexistent `openstreetmap_geocode`; it now names `openstreetmap_search_places` and `ref_timezone_lookup` (#37).
27
+
28
+ ## Dependencies
29
+
30
+ - `@types/node` (dev) `^26.6.1` → `^26.6.2`