@cyanheads/astronomy-mcp-server 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.16`
4
+ **Version:** 0.5.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
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.
@@ -25,7 +25,7 @@ Observational astronomy, computed in-process. The core is keyless and offline
25
25
  | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee |
26
26
  | `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above the horizon, ranked, with a sky-condition gate |
27
27
 
28
- Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow).
28
+ Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
29
29
 
30
30
  **Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
31
31
 
@@ -314,9 +314,18 @@ src/
314
314
 
315
315
  ## Skills
316
316
 
317
- 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.
317
+ Two skill trees live at the project root, written for different readers:
318
318
 
319
- **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.
319
+ | Tree | For | Written by |
320
+ |:-----|:----|:-----------|
321
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
322
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
323
+
324
+ Development skills are modular instructions. 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. Their 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 them to every agent that installs it.
325
+
326
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
327
+
328
+ **Agent skill directory:** Copy `framework-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.
320
329
 
321
330
  Available skills:
322
331
 
@@ -328,6 +337,7 @@ Available skills:
328
337
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
329
338
  | `add-resource` | Scaffold a new resource definition |
330
339
  | `add-prompt` | Scaffold a new prompt definition |
340
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
331
341
  | `add-service` | Scaffold a new service integration |
332
342
  | `add-test` | Scaffold test file for a tool, resource, or service |
333
343
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -375,7 +385,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
375
385
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
376
386
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
377
387
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
378
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
388
+ | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
379
389
  | `bun run list-skills` | Print the skill registry |
380
390
  | `bun run tree` | Generate directory structure doc |
381
391
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -393,7 +403,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
393
403
 
394
404
  ## Bundling
395
405
 
396
- `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.
406
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files such as `/CITATION.cff` and `/.tsbuildinfo` — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`), the directory trees matched only at a package root because the MCP SDK loads its own `dist/ext/skills/` at startup ([cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
397
407
 
398
408
  **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, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
399
409
 
@@ -460,7 +470,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
460
470
  - [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
461
471
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
462
472
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
463
- - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
464
- - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
465
- - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
473
+ - [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
474
+ - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
475
+ - [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
476
+ - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
477
+ - [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
478
+ - [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
466
479
  - [ ] `npm run devcheck` passes
package/CLAUDE.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** astronomy-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.16`
4
+ **Version:** 0.5.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
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.
@@ -25,7 +25,7 @@ Observational astronomy, computed in-process. The core is keyless and offline
25
25
  | `astronomy_find_events` | Next N (20 per call) of: equinox, solstice, moon_quarter, lunar/solar eclipse, opposition, conjunction (with the Sun, or two bodies via `body2`), max_elongation, perigee_apogee |
26
26
  | `astronomy_list_visible` | One-call "what is up now" — naked-eye bodies (+ optional catalog stars) above the horizon, ranked, with a sky-condition gate |
27
27
 
28
- Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow).
28
+ Plus the `astronomy://body/{body}` resource (static reference card) and the `astronomy_stargazing_plan` prompt (chains the tools for a "plan tonight from <place>" workflow). One published skill, `skills/astronomy-guide/SKILL.md`, carries the cross-tool workflows and gates the tool descriptions can't (local-night anchoring, listed ≠ visible, Moon interference, eclipses from a place, the extension gates); `createApp({ skills: 'skills' })` serves it over MCP. A behavior change that falsifies one of its claims updates the skill in the same commit.
29
29
 
30
30
  **Two gated, network-backed extensions** register only when their env gate is on (default deployment is keyless + offline):
31
31
 
@@ -314,9 +314,18 @@ src/
314
314
 
315
315
  ## Skills
316
316
 
317
- 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.
317
+ Two skill trees live at the project root, written for different readers:
318
318
 
319
- **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.
319
+ | Tree | For | Written by |
320
+ |:-----|:----|:-----------|
321
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
322
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
323
+
324
+ Development skills are modular instructions. 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. Their 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 them to every agent that installs it.
325
+
326
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
327
+
328
+ **Agent skill directory:** Copy `framework-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.
320
329
 
321
330
  Available skills:
322
331
 
@@ -328,6 +337,7 @@ Available skills:
328
337
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
329
338
  | `add-resource` | Scaffold a new resource definition |
330
339
  | `add-prompt` | Scaffold a new prompt definition |
340
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
331
341
  | `add-service` | Scaffold a new service integration |
332
342
  | `add-test` | Scaffold test file for a tool, resource, or service |
333
343
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -375,7 +385,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
375
385
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
376
386
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
377
387
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
378
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
388
+ | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
379
389
  | `bun run list-skills` | Print the skill registry |
380
390
  | `bun run tree` | Generate directory structure doc |
381
391
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -393,7 +403,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
393
403
 
394
404
  ## Bundling
395
405
 
396
- `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.
406
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files such as `/CITATION.cff` and `/.tsbuildinfo` — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`), the directory trees matched only at a package root because the MCP SDK loads its own `dist/ext/skills/` at startup ([cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794)); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp`, which records the packing machine's paths; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. `tests/scripts/packaging-regexes.test.ts` pins the cleaner's and the linter's matchers against each other. 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.
397
407
 
398
408
  **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, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
399
409
 
@@ -460,7 +470,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
460
470
  - [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
461
471
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
462
472
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
463
- - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
464
- - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
465
- - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
473
+ - [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
474
+ - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
475
+ - [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
476
+ - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
477
+ - [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
478
+ - [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
466
479
  - [ ] `npm run devcheck` passes
package/Dockerfile CHANGED
@@ -29,6 +29,11 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
29
29
  # Copy the rest of the source code
30
30
  COPY . .
31
31
 
32
+ # The skills a server publishes (`createApp({ skills: 'skills' })`) are read at
33
+ # runtime from the application root. Created when the project has none, so the
34
+ # production stage's copy below holds with or without one.
35
+ RUN mkdir -p skills
36
+
32
37
  # Build the application
33
38
  RUN bun run build
34
39
 
@@ -94,10 +99,11 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
94
99
  fi
95
100
 
96
101
  # `--os`/`--cpu` have no libc counterpart, so a native dependency published in
97
- # glibc and musl variants installs both. The runtime image is Debian (glibc) and
98
- # never loads the musl copy; the script deletes every package whose own `libc`
99
- # admits only musl. It follows every install, since a later `bun install`
100
- # restores what it removes.
102
+ # glibc and musl variants (DuckDB's bindings, for one) installs both. The
103
+ # runtime image is Debian (glibc) and never loads the musl copy; the script
104
+ # deletes every package whose own `libc` admits only musl. It follows every
105
+ # install, since a later `bun install` restores what it removes. A server on a
106
+ # musl (Alpine) runtime image drops these two lines.
101
107
  COPY scripts/prune-musl-packages.ts ./scripts/
102
108
  RUN bun scripts/prune-musl-packages.ts
103
109
 
@@ -135,6 +141,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
135
141
 
136
142
  # Copy the compiled application code from the build stage
137
143
  COPY --from=build /usr/src/app/dist ./dist
144
+ COPY --from=build /usr/src/app/skills ./skills
138
145
 
139
146
  # The 'oven/bun' image already provides a non-root user named 'bun'.
140
147
  # We will use this existing user for enhanced security.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <div align="center">
2
2
  <h1>@cyanheads/astronomy-mcp-server</h1>
3
3
  <p><b>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.</b>
4
- <div>7 Tools • 1 Resource • 1 Prompt</div>
4
+ <div>7 Tools • 1 Resource • 1 Prompt • 1 Skill</div>
5
5
  </p>
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.4.3-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.3.1-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.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.5.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.4.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.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -57,6 +57,14 @@ Tool-only clients get the same type, radius, and naked-eye fields inline from `a
57
57
  |:---|:---|
58
58
  | `astronomy_stargazing_plan` | Plan a night of stargazing from a place, chaining the astronomy tools with geocoding and weather steps |
59
59
 
60
+ ### Skills
61
+
62
+ | Skill | Description |
63
+ |:---|:---|
64
+ | [`astronomy-guide`](./skills/astronomy-guide/SKILL.md) | Chaining the tools for observing questions: anchoring dates to the observer's local night, what "visible" means per tool, Moon interference, eclipses from a place, and the opt-in Horizons and satellite tools |
65
+
66
+ Plugin installs load it from `skills/`; MCP clients that support the Skills extension read it as `skill://astronomy-guide/SKILL.md`.
67
+
60
68
  Design reference: [`docs/design.md`](./docs/design.md).
61
69
 
62
70
  ## Capability reference
@@ -0,0 +1,29 @@
1
+ ---
2
+ summary: "Publishes the astronomy-guide skill over MCP and in every install surface, and moves to mcp-ts-core 0.13.18, which stops the HTTP transport retaining memory for every request (a leak 0.4.3 shipped with on Bun, the Docker runtime) and trims the .mcpb to the files the server runs."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.0 — 2026-10-28
8
+
9
+ ## Added
10
+
11
+ - **`astronomy-guide` skill** (`skills/astronomy-guide/SKILL.md`): chains the `astronomy_*` tools for observing questions — anchoring dates to the observer's local night, what each tool means by visible, Moon interference, eclipses from a place, the 1900–2100 span, and the opt-in Horizons and satellite tools. Served over MCP as `skill://astronomy-guide/SKILL.md` with the `skill://{+path}` template through `createApp({ skills })` (mcp-ts-core 0.13.18), and ships in the npm package, the Docker image, the `.mcpb`, and plugin installs.
12
+ - **Root Agent Plugins manifest pair**, `plugin.json` + `mcp.json` (template from mcp-ts-core 0.13.18).
13
+
14
+ ## Changed
15
+
16
+ - **The `.mcpb` carries only the runtime files**: the root `README.md`, `LICENSE`, `CHANGELOG.md`, `manifest.json`, `package.json`, and `server.json`, plus `dist/`, `skills/`, and `node_modules/`. 0.4.3's bundle also shipped `src/`, `scripts/`, `changelog/`, `docs/`, `.github/`, `.vscode/`, the `.claude-plugin/` and `.codex-plugin/` directories, `CLAUDE.md`, `AGENTS.md`, `CITATION.cff`, `devcheck.config.json`, `.gitattributes`, `.dockerignore`, and the framework package's build-only files. The root-anchored `.mcpbignore` and the `clean-mcpb` build-only stripping (mcp-ts-core 0.13.18) account for it. The bundle cleaner keeps the MCP SDK's `dist/ext/skills/` runtime, which a skills-serving bundle needs at startup, as a local workaround for open upstream [cyanheads/mcp-ts-core#794](https://github.com/cyanheads/mcp-ts-core/issues/794).
17
+ - **`visibility_note` output-field description**: the example uses an 8-point compass label (`W`), the precision the server emits (it showed `WSW`). `docs/design.md` corrects its star-catalog description (a 32-star in-source table) and its `astronomy_list_visible` bounds and field notes.
18
+ - **Repo upkeep**: framework skills and scripts resynced (`add-skill` new), issue templates, and the `bunfig.toml` `minimumReleaseAge` guard at 1 day (template, mcp-ts-core 0.13.17).
19
+
20
+ ## Fixed
21
+
22
+ - On mcp-ts-core 0.13.16, which 0.4.3 shipped with, the HTTP transport retained memory for every request, so an HTTP deployment running under Bun — the runtime of the Docker image — grew until it ran out of memory. mcp-ts-core 0.13.17 releases each request's resources when its response ends ([cyanheads/mcp-ts-core#786](https://github.com/cyanheads/mcp-ts-core/issues/786)).
23
+
24
+ ## Dependencies
25
+
26
+ - `@cyanheads/mcp-ts-core` ^0.13.16 → ^0.13.18 (brings `@modelcontextprotocol/server` ^2.3.1 → ^2.4.0).
27
+ - `@biomejs/biome` 2.6.2 → 2.6.3 (dev).
28
+ - `ignore` ^7.0.13 → ^7.0.14 (dev).
29
+ - `tsc-alias` ^1.9.8 → ^1.9.9 (dev).
package/dist/index.js CHANGED
@@ -47,6 +47,8 @@ await createApp({
47
47
  * still wins when it carries a meaningful value, which is how an operator overrides this.
48
48
  */
49
49
  sessionMode: 'stateless',
50
+ /** The published `skills/` tree, served over the MCP Skills extension; resolved against the application root. */
51
+ skills: 'skills',
50
52
  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.',
51
53
  /**
52
54
  * Every catalog a client can list here is decided once, at startup: the tool array is
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,uDAA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D;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"}
@@ -23,7 +23,7 @@ const VisibleBodySchema = SkyPositionOutput.omit({ body_metadata: true })
23
23
  rank: z.number().describe('1-based rank, brightest-and-highest first.'),
24
24
  visibility_note: z
25
25
  .string()
26
- .describe('Server-computed one-line headline from real values, e.g. "Venus, mag -4.1, 12° above the WSW horizon — very bright". It states when the conditions hide a body: "daylight, not naked-eye visible" when the Sun is up, "N° from the Sun, lost in glare" within 15° of the Sun, and "civil twilight, sky still bright" in civil twilight. The Moon and a negative-magnitude Venus take no daylight or twilight caveat, being visible in a blue sky; the Sun takes none.'),
26
+ .describe('Server-computed one-line headline from real values, e.g. "Venus, mag -4.1, 12° above the W horizon — very bright". It states when the conditions hide a body: "daylight, not naked-eye visible" when the Sun is up, "N° from the Sun, lost in glare" within 15° of the Sun, and "civil twilight, sky still bright" in civil twilight. The Moon and a negative-magnitude Venus take no daylight or twilight caveat, being visible in a blue sky; the Sun takes none.'),
27
27
  })
28
28
  .describe('A sky position above the horizon, with its rank and a plain-language visibility note.');
29
29
  export const ListVisibleOutput = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"list-visible.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-visible.tool.ts"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AAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"list-visible.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-visible.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,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;KACtE,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACvE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,CACP,qcAAqc,CACtc;CACJ,CAAC;KACD,QAAQ,CACP,uFAAuF,CACxF,CAAC;AAEJ,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,CAAC;SACb,IAAI,CAAC,CAAC,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,CAAC,CAAC;SAC1F,QAAQ,CACP,oGAAoG,CACrG;IACH,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8DAA8D,CAAC;IAChG,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,iBAAiB,CAAC;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,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.4.3",
3
+ "version": "0.5.0",
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",
@@ -18,7 +18,8 @@
18
18
  "CLAUDE.md",
19
19
  "AGENTS.md",
20
20
  "Dockerfile",
21
- "server.json"
21
+ "server.json",
22
+ "skills/"
22
23
  ],
23
24
  "scripts": {
24
25
  "build": "bun run scripts/build.ts",
@@ -88,19 +89,19 @@
88
89
  "access": "public"
89
90
  },
90
91
  "dependencies": {
91
- "@cyanheads/mcp-ts-core": "^0.13.16",
92
+ "@cyanheads/mcp-ts-core": "^0.13.18",
92
93
  "astronomy-engine": "^2.1.19",
93
94
  "pino-pretty": "^13.2.0",
94
95
  "satellite.js": "^7.1.0",
95
96
  "zod": "^4.6.7"
96
97
  },
97
98
  "devDependencies": {
98
- "@biomejs/biome": "2.6.2",
99
+ "@biomejs/biome": "2.6.3",
99
100
  "@socketsecurity/bun-security-scanner": "^1.1.3",
100
101
  "@types/node": "^26.6.5",
101
102
  "depcheck": "^1.4.7",
102
- "ignore": "^7.0.13",
103
- "tsc-alias": "^1.9.8",
103
+ "ignore": "^7.0.14",
104
+ "tsc-alias": "^1.9.9",
104
105
  "typescript": "^7.0.2",
105
106
  "vitest": "^5.0.5"
106
107
  }
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.4.3",
9
+ "version": "0.5.0",
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": "npx",
22
- "version": "0.4.3",
22
+ "version": "0.5.0",
23
23
  "environmentVariables": [
24
24
  {
25
25
  "name": "MCP_LOG_LEVEL",
@@ -58,7 +58,7 @@
58
58
  "registryBaseUrl": "https://registry.npmjs.org",
59
59
  "identifier": "@cyanheads/astronomy-mcp-server",
60
60
  "runtimeHint": "npx",
61
- "version": "0.4.3",
61
+ "version": "0.5.0",
62
62
  "environmentVariables": [
63
63
  {
64
64
  "name": "MCP_TRANSPORT_TYPE",
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: astronomy-guide
3
+ description: Chain the astronomy_* tools for observing questions — what is up tonight from a place, whether and when a planet can be seen, the next eclipse from a location and how long totality lasts, satellite passes, comet or asteroid positions. Covers anchoring dates to the observer's local night, what each tool means by visible, the Moon's interference, the 1900–2100 span, and the opt-in Horizons and satellite tools.
4
+ license: Apache-2.0
5
+ metadata:
6
+ author: cyanheads
7
+ version: "1.0"
8
+ ---
9
+
10
+ ## Scope
11
+
12
+ - In-process and keyless: the Sun, the Moon, Mercury through Neptune, Pluto, and a 32-star bright-star catalog, for 1900–2100.
13
+ - Not covered: deep-sky objects (galaxies, nebulae, clusters), meteor showers, cloud cover, light pollution, aurora. Pair with a weather server for cloud cover and a space-weather server for aurora.
14
+ - Two network tools exist only where the deployment enables them: `astronomy_get_ephemeris` (JPL Horizons: asteroids, comets, spacecraft, and major bodies by Horizons ID number) and `astronomy_get_satellite_passes` (CelesTrak element sets).
15
+
16
+ ## Gates
17
+
18
+ - **Check the tool list before promising an extension answer.** When `astronomy_get_ephemeris` or `astronomy_get_satellite_passes` is not listed, it is switched off on this deployment and a call fails with "Tool … not found". Tell the user the question needs that tool; never approximate a comet position or a satellite pass from the core tools.
19
+ - **Anchor a date to the observer's local day.** A bare date (`2026-10-28`) or a UTC-midnight start resolves to 00:00 UTC, which west of Greenwich is the previous local afternoon, so `astronomy_get_rise_set` returns the previous evening's sunset. Pass local midday of the target date, converted to UTC, as `start`: the first Sun cycle then carries that evening's sunset and dusk and the next morning's dawn. Pass `timezone` and confirm the night from the `*_local` fields.
20
+ - **Dark starts at astronomical dusk, not sunset.** The dark-sky window runs from astronomical (−18°) dusk to astronomical dawn. In `astronomy_list_visible`, `civil_twilight`, `nautical_twilight`, and `astronomical_twilight` are all brighter than `dark`.
21
+ - **`astronomy_list_visible` lists what is above the horizon, not what can be seen.** It returns the Sun in daylight and a planet beside the Sun alike; judge each from `sky_condition` and its `visibility_note` ("daylight, not naked-eye visible", "lost in glare"), never from membership in the list. It never includes Uranus, Neptune, or Pluto, and includes stars only with `include_stars` — ask `astronomy_get_sky_position` for the outer planets.
22
+ - **Moon phase does not say whether the Moon is up.** The phase is geocentric. Before calling a night moon-washed or moon-free, get the Moon's rise and set with `astronomy_get_rise_set` over the same night and compare them with the dark window.
23
+ - **Outside 1900–2100 every core tool fails `time_out_of_range`.** Where `astronomy_get_ephemeris` is listed, it reaches other dates for a major body by its Horizons ID number — `301` for the Moon, `499` for Mars — returning position, distance, and magnitude (altitude and azimuth with an observer), but no phase name, rise/set, or event search. Without it, the date is out of reach.
24
+
25
+ Magnitude runs backwards: lower is brighter, negative is very bright, and about 6 is the naked-eye limit under a dark sky.
26
+
27
+ ## Workflows
28
+
29
+ ### Tonight's sky from a place
30
+
31
+ The `astronomy_stargazing_plan` prompt templates this chain for users.
32
+
33
+ 1. Resolve coordinates and an IANA timezone upstream.
34
+ 2. `astronomy_get_rise_set` for `sun`, `start` at local midday: sunset, astronomical dusk, and the next astronomical dawn.
35
+ 3. `astronomy_get_moon_phase` for the illuminated fraction, and `astronomy_get_rise_set` for `moon` with `count` 2 — when the Moon is already up at the start, the first cycle holds only its set and the next rise is in the second — for the hours the Moon is up inside the dark window.
36
+ 4. `astronomy_list_visible` at an instant after astronomical dusk, with `include_stars` set and a `min_altitude` of about 10 to drop horizon-grazers. It evaluates one instant; a second call before astronomical dawn finds the objects that rise late.
37
+ 5. Cloud cover and transparency from a weather server.
38
+
39
+ ### Can I see a planet this week?
40
+
41
+ - `astronomy_get_rise_set` for the planet with `count` 7, read against the Sun's dark window: it shows whether the planet is an evening object, a morning object rising after midnight, or up only in daylight.
42
+ - `astronomy_find_events` places it in its cycle: `conjunction` with `body` alone is when it sits beside the Sun, lost in its glare for weeks around that date; `opposition` (Mars through Pluto) is when it is up all night; `max_elongation` is the best showing for Mercury and Venus.
43
+ - Confirm a chosen time with `astronomy_list_visible` or `astronomy_get_sky_position`.
44
+
45
+ ### Eclipses
46
+
47
+ - **From a place**, pass `latitude` and `longitude` to `astronomy_find_events`. `kind`, the times, and the contacts are then what that place sees: an eclipse that is total elsewhere can be partial here. To find the next total eclipse from a place, page through the results and keep those whose `kind` is `total`; a notice that the search reached the end of the supported span before one appears means none through 2100, not never.
48
+ - **Totality lasts** from `total_begin_utc` to `total_end_utc` in `contacts`; subtract them. For an annular eclipse the same pair bounds the ring phase; for a partial one both are null.
49
+ - **Where it is total**: the global search (no observer) returns at most the point of greatest eclipse. No tool returns the path of totality, so test a specific place with the local search instead of judging from that point.
50
+
51
+ ### Satellites and small bodies
52
+
53
+ - Tell the user where to look from the visible stretch — `visible_start_utc` to `visible_end_utc` with their altitudes and azimuths — not from rise and set: the satellite can rise in Earth's shadow and only appear partway through the pass.
54
+ - `start` must fall within 30 days of the current element set's epoch, before or after it — in practice, roughly the past month or the next month from today. Passes from earlier or further ahead fail `time_out_of_range`.
55
+ - For "where will this comet be next month", request a `1d` step across the month with observer coordinates for altitude and azimuth, and confirm `target_name` is the object meant. Rows carry RA/Dec but no constellation.