Repository avatar
Other Tools
v0.1.0
active

eclipseguide

io.github.CloudCorpRecords/eclipseguide

2027 total solar eclipse guide: destinations, totality, lodging costs and flight fares read.

Documentation

eclipseguide

On 2 August 2027 a total solar eclipse crosses North Africa and southern Spain. eclipseguide is a local forwarding client for the hosted EclipseMission MCP service: it answers tools/list locally from the captured tool definitions and forwards every call to the service, returning the answers exactly as the service sends them back.

The six tools cover the published 2027 dataset the service has measured: destinations ranked by lodging price with their totality, cloud, heat and access figures; a full per-destination dossier including the entry regime for a given passport; side-by-side comparisons; a trip filter that pairs a traveller's airport and passport with destinations and the fares read from that airport; the dated airfare readings themselves; and the fixed points along the path of totality with their computed durations and cloud ranges. Nothing here books, buys, or registers anything — the fares and lodging figures are readings, each dated and sourced by the service.

The tools

  • list_destinations — Every measured destination, cheapest lodging first. Optional filters: max_price_per_person_eur, min_totality_seconds, country, open_to_all_visitors. No required arguments.
  • get_destination — Everything held on one place, figure by figure with sources. Requires destination; optional passport selects that passport's entry regime in full.
  • compare_destinations — Two to four destinations side by side on the figures a choice turns on. Requires destinations (2–4 keys); optional passport.
  • plan_trip — Destinations that fit one traveller, with fares read from their airport shown beside — never summed with — the stay. All arguments optional: origin, passport, max_price_per_person_eur, min_totality_seconds, country, open_to_all_visitors.
  • get_flights — The airfares read for the eclipse, dated and sourced; two fare families that must never be added together. Optional origin and destination. No required arguments.
  • list_eclipse_sites — Fixed points along the 2027 path with totality and cloud. Optional filters: country, min_totality_seconds, max_cloud_pct, in_path, sort. No required arguments.

Install and run

As an MCP server via npm:

npx -y @reneturcios/eclipseguide mcp

MCP client configuration:

{
  "mcpServers": {
    "eclipseguide": {
      "command": "npx",
      "args": ["-y", "@reneturcios/eclipseguide", "mcp"]
    }
  }
}

As a container:

docker run -i ghcr.io/cloudcorprecords/eclipseguide
docker run --rm ghcr.io/cloudcorprecords/eclipseguide get_destination '{"destination":"luxor","passport":"US"}'

CLI

One binary serves both the command line and the MCP server. Each tool is a subcommand taking a single JSON string with that tool's arguments:

eclipseguide list_destinations '{"country":"Egypt"}'
eclipseguide compare_destinations '{"destinations":["luxor","cadiz"]}'
eclipseguide --version

Exit codes: 0 when the forwarded call succeeds, 1 when the upstream result is an error, and 2 for usage problems such as an unknown subcommand or a malformed JSON argument.

Configuration

  • ECLIPSEGUIDE_MCP_URL — Overrides the upstream endpoint. The default is the pinned hosted endpoint, https://eclipsemission.com/mcp. (The override variable is a reconstruction added by this rebuild.)

The upstream registry record declares no headers, so no authentication header is ever sent; the tool surface was captured keyless.

Upstream failures — a JSON-RPC error from the service, a non-2xx response, an unreadable body, or a request that fails outright — are reported to the caller as an error result whose text starts with eclipseguide error:.

How forwarding works

The first forwarded call opens a session: an initialize request (protocol version 2025-03-26), followed by a notifications/initialized notification, then the tools/call itself. If the service answers the initialize request with an Mcp-Session-Id header, that value is carried on every later request, and the open session is reused for the rest of the process. Replies are accepted either as plain JSON or as server-sent events. Successful results pass through verbatim, including any isError flag and any extra fields the service includes.

Development

npm install
npm run build   # tsc -> dist/ (dist/cli.js is the bin)
npm test        # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev     # run the CLI from source

The test suite checks the served tool list against the captured surface (the 6 tools, deep-equal, with their title keys and required lists exactly as captured), exercises the session handshake and its reuse, verifies that no Authorization or X-API-Key header is ever sent under any environment, and verifies that arguments go upstream untouched and results come back untouched.

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.

NPM
@reneturcios/eclipseguide
Install Command
npm install @reneturcios/eclipseguide
Runtime: npx
OCI
ghcr.io/cloudcorprecords/eclipseguide:0.1.0
Install Command
docker pull ghcr.io/cloudcorprecords/eclipseguide:0.1.0:undefined
Runtime: docker