Open State: Camping - Parks Canada
Find and prepare Parks Canada reservations while keeping the citizen in control.
Open source Open in the app JSON README (API)
About
Find and prepare Parks Canada reservations while keeping the citizen in control.
Details
- Kind
- MCP servers
- Topic
- No topic detected
- Publisher
- jcrossman
- Origin
- official
- Category
- ferramentas
- Transport
- local
- Version
- 1.0.7
- Open pull requests
- 4
- Last push
- 2026-09-07T07:13:57Z
- Repository state
- ativo
- Language
- TypeScript
- License
- MIT
- Added
- 2026-08-29 03:01:58
- Updated
- 2026-08-29 03:01:58
- Origin id
io.github.JCrossman/open-state-camping
README
# Open State: Camping — Parks Canada Part of **The Open State**, a reference implementation of the **Civic Access Protocol**. This lets a citizen reach **Parks Canada** reservations through their own AI assistant, in plain language, while keeping their credentials and their control. > Your services. Your assistant. Your access. It is a **local MCP bundle** (`.mcpb`) you add to your assistant on your own machine. It runs over **stdio**, searches Parks Canada's public availability, and **prepares** a booking right up to the payment screen in *your own* session. It never sees your password or payment details. Session cookies are encrypted on your device; you directly approve consequential actions and pay yourself. For the binding rules and design, see The Open State: [`CONSTITUTION.md`](https://github.com/JCrossman/the-open-state/blob/main/CONSTITUTION.md), [`AGENTS.md`](AGENTS.md), [`docs/00-overview.md`](https://github.com/JCrossman/the-open-state/blob/main/docs/00-overview.md), [`docs/01-architecture.md`](https://github.com/JCrossman/the-open-state/blob/main/docs/01-architecture.md). The verified Parks Canada API contract is in [`docs/parks-canada-api-findings.md`](docs/parks-canada-api-findings.md). ## What it does All four Parks Canada booking families — **search and book, end-to-end**: | Family | Search | Prepare booking | |---|---|---| | Frontcountry campsites & group sites | ✅ | ✅ | | Accommodations (oTENTik, cabin, yurt, …) | ✅ | ✅ | | Day Use (shuttles, parking, guided events) | ✅ | ✅ | | Backcountry zone permits (entry point + per-night zones) | ✅ | ✅ | Plain-language tools, grouped: - **Search / discovery:** `search_parks`, `search_park_availability`, `search_sites` (with a `category` of campsite / group / accommodation), `search_day_use`, `search_backcountry`, `get_site_details`, `list_equipment_types`, `resolve_dates`. - **Account (your session):** `connect_account` opens *your own* browser to sign in yourself; the session is stored encrypted in a local vault. `disconnect_account`, `connection_status`. - **Booking:** `prepare_booking` shows the exact action in a trusted host form, then assembles the cart and drives it to the **payment screen** only after your approval. You review and pay (Constitution Art. 2). - **Alerts:** `create_alert` / `list_alerts` / `delete_alert` — watch a campground and get pinged when a cancellation opens a site. - **Policies:** `get_reservation_policies` — Parks Canada's reservation rules in plain language (fees, change/cancel deadlines and refunds, check-in times, no-shows, and that park entry isn't included). The assistant also surfaces the key deadline and fee right in the booking preview, so you confirm with the terms in front of you. **Accessibility is the point.** Where Parks Canada exposes an accessibility attribute, sites are flagged per-site and filterable (`accessible_only`); output is written to read cleanly with a screen reader (Constitution Art. 3). ## Build Part of the repo-root pnpm workspace: `packages/core` (provider, booking cart, availability) and `packages/bundle` (the MCP server + the `.mcpb`), on [`@open-state/kit`](https://www.npmjs.com/package/@open-state/kit) for the session vault and citizen-driven sign-in. ```bash # at the repository root pnpm install pnpm -r build ``` ## Run (local, stdio) ```bash node packages/bundle/standalone/server.js ``` The server speaks MCP over stdio and waits for an assistant to connect. ## Install from npm Node.js 20 or newer is required. Configure any stdio MCP client to run: ```bash npx --yes @open-state/camping@1.0.7 ``` For upgrades, change the pinned version and restart the client. To uninstall, remove the MCP client configuration. Local state is intentionally retained; after disconnecting, delete `~/.open-state-camping` to remove alerts and all remaining data. See [`PRIVACY.md`](PRIVACY.md). ## Install in Claude Desktop (the .mcpb) **Easiest — download the prebuilt bundle.** Grab `open-state-camping.mcpb` from the latest [**release**](https://github.com/JCrossman/can-fed-camp-mcp/releases) (tagged `camping-v*`). In **Claude Desktop → Settings → Extensions**, install that file and restart. (When upgrading, remove the old version first, then install the new one.) **Or build it yourself** from source: ```bash # from the repo root pnpm --filter @open-state/camping build pnpm --filter @open-state/camping pack:mcpb ``` Then install `packages/bundle/open-state-camping.mcpb` the same way. ## Connect it to Claude Code The repo root ships a [`.mcp.json`](.mcp.json) that registers the built bundle for [Claude Code](https://claude.com/claude-code) with a **relative** path (works for anyone who clones the repo). Build first (`pnpm -r build`), open the repo in Claude Code, and approve the `open-state-camping` server when prompted. ### Try it - "Find me a Parks Canada campground in Banff." - "Any accessible sites at Two Jack Lakeside for the August long weekend, two people?" - "Find a cabin or oTENTik in PEI for mid-September." - "Moraine Lake shuttle times for July 17, party of 2." - "Search Forillon backcountry for Aug 28 — then prepare Lean-to Les Lacs via Le Portage trailhead." - "Nothing's open — watch it and let me know if a cancellation comes up." - "What's the cancellation policy if I book a cabin and have to back out?" To book: ask the assistant to **prepare** it; it opens *your* cart at the Parks Canada payment screen, where you sign in (if you haven't via `connect_account`), review, and pay yourself. Consequential tools require MCP form elicitation so the host can show the prepared action directly to you. Hosts without it retain anonymous search and read-only tools but intentionally cannot book, update/disconnect an account, or create/delete alerts. See [`COMPATIBILITY.md`](COMPATIBILITY.md). ## Alerts `create_alert` saves a search and the in-process poller re-checks it on a polite schedule (never faster than every 5 minutes). When a site opens, the watch is retired and — if you gave a `notify_target` — a short message is sent there. - **Easiest:** ask to be notified — the assistant calls `create_alert` with `notify_target="auto"`, which provisions a **private, random [ntfy.sh](https://ntfy.sh) topic** (no sign-up), sends a **test message**, and hands back a subscribe link plus an `ntfy://` app deep link. - **Bring your own:** pass an `http(s)` ntfy link **you** control as `notify_target` (for safety, links must be on an allowed notification host — not an arbitrary site — to prevent SSRF/open-relay abuse). - No account, password, or personal information is stored — only the search and the link. An auto topic's random suffix is its secret; treat the link as private, or point `OPEN_STATE_NTFY_BASE` at a self-hosted ntfy. - **Local limitation:** the bundle runs as a local stdio process, so the poller checks **only while your assistant is connected** to it. The watch persists on disk; notifications fire only while a session is live. ## Configuration All optional, via environment variables: | Variable | Default | Meaning | |---|---|---| | `OPEN_STATE_HOME` | `~/.open-state-camping` | Local dir for the encrypted session vault and the alerts file. | | `OPEN_STATE_USER_AGENT` | a browser UA | See the honest note below. | | `OPEN_STATE_HTTP_TIMEOUT_MS` | `30000` | Upstream request timeout (ms). | | `OPEN_STATE_POLL_INTERVAL_MINUTES` | `10` | Alert poll interval; floored at 5. | | `OPEN_STATE_MAX_ALERTS` | `25` | Max concurrent cancellation watches. | | `OPEN_STATE_NTFY_BASE` | `https://ntfy.sh` | Base for auto-provisioned notify topics; set to a self-hosted ntfy for privacy. | | `OPEN_STATE_NOTIFY_ALLOWED_HOSTS` | (none) | Extra hosts a citizen-supplied `notify_target` may point at, comma-separated. | ## Tests ```bash pnpm -r test ``` Tests run fully offline against recorded fixtures — no live network calls. Booking carts are diffed key-for-key against real captured sessions. ## Public project policies - [Privacy and local data deletion](PRIVACY.md) - [Security reporting and supported versions](SECURITY.md) - [Compatibility](COMPATIBILITY.md) - [Contributing](CONTRIBUTING.md), [Code of Conduct](CODE_OF_CONDUCT.md), and [support](SUPPORT.md) - [Release history](CHANGELOG.md) and [release process](RELEASING.md) ## Honest notes and known limits Reality, recorded rather than guessed (Constitution Art. 7): - **Price is not shown.** Parks Canada exposes no read-only price; a price only exists as a cart/checkout line item — which is the payment step this tool stops before. You see the price in your own session. - **User-Agent tension.** Parks Canada returns HTTP 403 to non-browser User-Agents, so the default UA is browser-like to function. This sits awkwardly with "honest identification" (Art. 7.3); it is configurable and is a candidate for resolution through an official relationship. - **Backcountry `availability` is a status, not a count** — `0` means available (like frontcountry). Booking carts differ by family (site vs quota-zone holds); all are matched to real captured sessions. See the findings doc. *No citizen should be excluded from what is already theirs.*