Skylight MCP Server
# Skylight MCP Server
An MCP (Model Context Protocol) server for the Skylight Calendar. Lets Claude
(including Claude Duet, via the hosted mode) read and plan against your family
calendar, chores, lists, meals and rewards.
> **Unofficial.** This project is not affiliated with or endorsed by Skylight.
> Skylight has no public API; this talks to the same private endpoints their
> own apps use, discovered by observing app traffic. It can stop working or be
> blocked at any time, without notice. Use it with your own account, at your
> own risk, and keep request volume modest.
>
> Sign-in reuses the Skylight mobile app's own OAuth flow: it presents the app's
> client ID (`skylight-mobile`) and redirect, because Skylight issues no client
> of its own to third parties. Skylight's
> [Terms of Service](https://myskylight.com/tos/) prohibit access by means other
> than its supported interfaces and reverse engineering (§5.4), and let Skylight
> suspend accounts with or without cause (§16). Using this project is a risk to
> the Skylight account you sign in with, not only to the integration.
>
> Forked from [TheEagleByte/skylight-mcp](https://github.com/TheEagleByte/skylight-mcp)
> (MIT). The sign-in and credential-store design follows
> [kamilio/skylight-calendar-agent](https://github.com/kamilio/skylight-calendar-agent)
> (MIT). See `THIRD_PARTY_NOTICES.md`.
## Features
- **Calendar**: read events and connected calendars; create, update and delete events
- **Planning**: one-call week overview, overlap detection, free-slot search, bulk meal planning
- **Meals** (Plus): see, add, rename, move and delete scheduled meals; browse and edit recipes
- **Messages**: sending to specific devices, scheduling, repeating, voice notes, editing a message that was sent to specific profiles (the app's edit form does not allow changing recipients), and read-aloud (the option exists on `send_message` but was not tested live).
- **Chores and tasks**: read, create, update and delete chores; add to the task box
- **Lists**: read, create, update and delete lists and items
- **Family**: read profiles, devices and household info
- **Rewards** (Plus): read points and rewards; create, update, redeem and delete
See [What is supported](#what-is-supported) for what is tested, what is not, and
what the hosted server leaves out.
## Quick Start
You need Node 20+, a Skylight account, and an MCP client (Claude desktop, Claude
Code, or any other). Nothing to clone or build. Run the `npx` commands from any
normal folder, **not from inside a clone of this repo** (see Troubleshooting).
**Do I need the hosted server?** Probably not. The steps below give you the
*local* server: it runs on your own computer while your MCP client is open and
exposes every tool. The *hosted* server (a Cloudflare Worker) is optional. You
only need it if Claude Duet or Claude on another device has to reach Skylight
when this computer is off. It means cloning the repo, a free Cloudflare
account, `npx wrangler login`, `npm run worker:setup`, and a second sign-in,
and it exposes read and write tools plus a short list of deletes (chores, lists, list items, rewards, recipes, meal sittings, messages; not calendar events). Do the local
setup first; see
[Hosted server (Claude Duet, Claude on other devices)](#hosted-server-claude-duet-claude-on-other-devices)
if you need it later.
### 1. Run the setup
```bash
npx -y @davidwoods/skylight-mcp init
```
`init` asks for your timezone (it offers the one your computer uses), runs the
browser sign-in, finds your frame from your account, saves the frame ID and
timezone to a small settings file, runs `doctor`, and prints the lines to paste
into your MCP client. If your account has more than one frame it asks which;
if it cannot list frames it asks for the number from the address bar
(`https://ourskylight.com/my-skylight/<number>`; see
[Finding your Frame ID](#finding-your-frame-id)).
The sign-in works like this: `init` prints a Skylight URL and offers to open it:
press Enter and your browser opens it (or open the URL yourself). Sign in there. The browser bounces through
`https://ourskylight.com/welcome?code=...` and on to the home page too fast to
copy. Get the link from your browser history: `Cmd-Y` (Mac) / `Ctrl-H` (PC),
search `welcome?code`, right-click the Skylight result dated today (top of the
list; older ones are earlier sign-ins and will not work), Copy link address,
and paste it when `init` asks. Your password never touches this program; only
the resulting OAuth tokens are stored, encrypted with a key in the macOS
Keychain (plain `0600` file on Linux/Windows). macOS may ask once to allow
Keychain access. If the Keychain is unusable, `init` stops; it never falls back
to plaintext on macOS.
The settings file holds the frame ID and timezone only: no token, no host.
It lives in `~/Library/Application Support/skylight-mcp/config.json` (macOS),
`%APPDATA%\skylight-mcp\config.json` (Windows) or
`~/.config/skylight-mcp/config.json` (elsewhere), mode `0600`, and an
unrecognised key makes the server refuse to start. Environment variables
(`SKYLIGHT_FRAME_ID`, `SKYLIGHT_TIMEZONE`) override it. Run `init` again to
change either value.
### 2. Add to your MCP client
**Claude desktop** (Settings → Desktop app → Local MCP servers → Edit config; older versions: Settings → Developer → Edit Config), or any client that uses `mcp.json`:
```json
{
"mcpServers": {
"skylight": {
"command": "npx",
"args": ["-y", "@davidwoods/skylight-mcp"]
}
}
}
```
**Claude Code:**
```bash
claude mcp add skylight -- npx -y @davidwoods/skylight-mcp
```
Restart the client fully (Cmd-Q on Mac), then ask it "what's on the family
calendar this week?"
### 3. Check it any time
```bash
npx -y @davidwoods/skylight-mcp doctor
```
`doctor` checks Node, the frame ID, the timezone, your sign-in and one real call
to Skylight, and says what to fix. It never prints tokens or your frame ID.
Add `--offline` to skip the network call.
### What you can sync, and what this server can do
Skylight's **Sync Calendar** screen offers these. From the app's screen; the "this server" column is what changes here.
| Option in Skylight | Add it | Manage it with this server |
| --- | --- | --- |
| Calendar URL (team, school, league, iCloud published calendar) | `skylight-mcp calendars add`, or in the app | Rename, link to profiles, remove, list |
| Google, Outlook/Hotmail/Live, iCloud account, Cozi, TeamSnap | Sign in inside the Skylight app (cannot be done here) | List only |
| US Holidays, Individual Events | In the app | List only |
Calendars from a subscription link are one-way: Skylight reads them and cannot write back.
### Add a team, school or league calendar
```
npx -y @davidwoods/skylight-mcp calendars add
```
Paste the calendar's address when asked (the link ending in `.ics`, or starting with
`webcal://`). Nothing is shown as you paste, and the address never goes into your
shell history, a chat, or a log: it is a secret, because anyone with the link can
read that calendar. Skylight fetches the feed itself, names the calendar from it, and
the events appear on your frame. This is a command and deliberately not an MCP tool.
To stop syncing one, ask your assistant to remove it (`delete_source_calendar`, which
previews first), or remove it in the Skylight app. Google, Outlook, iCloud and Cozi
accounts are connected in the Skylight app, not here.
### Manual setup (without `init`)
If you would rather not use `init`, or it fails, set the two values yourself
and sign in with the lower-level commands. Find your frame ID as above; the
timezone is an IANA name such as `America/Chicago` and **must be set**: it
defaults to `America/New_York`, and event times come out wrong anywhere else.
```bash
# macOS / Linux
export SKYLIGHT_FRAME_ID=your_frame_id
export SKYLIGHT_TIMEZONE=America/New_York
# Windows PowerShell: $env:SKYLIGHT_FRAME_ID="your_frame_id"; $env:SKYLIGHT_TIMEZONE="America/New_York"
npx -y @davidwoods/skylight-mcp auth login
npx -y @davidwoods/skylight-mcp auth complete # then paste the welcome?code= link
```
Terminal variables are not inherited by your MCP client. Put them in the
client's `env` block instead:
`"env": {"SKYLIGHT_FRAME_ID": "your_frame_id", "SKYLIGHT_TIMEZONE": "America/New_York"}`
(Claude Code: `-e SKYLIGHT_FRAME_ID=... -e SKYLIGHT_TIMEZONE=...`).
`auth status` and `auth logout` do what they say.
### From source (contributors)
```bash
git clone https://github.com/dwooods/skylight-mcp.git
cd skylight-mcp && npm install && npm run build
node dist/index.js auth login # same steps as above, using node dist/index.js
```
In the client config use `"command": "node", "args": ["/path/to/skylight-mcp/dist/index.js"]`.
### Windows (partly verified)
Verified on one Windows machine (Node 24): `npx` runs the package, `doctor --offline`
works, `auth login` and `auth complete` finish the real sign-in, the credential is
saved to `%APPDATA%\skylight-mcp\credential.json`, and the Claude desktop app runs the
server from the config below and reads real calendar data. **Not yet verified:**
`doctor`'s Skylight check on Windows (it was broken on every platform in 1.7.0 and is
fixed in 1.8.0), the live test suite, and `worker:setup`.
- `npx` is a `.cmd` file on Windows, so in a client config use
`"command": "cmd", "args": ["/c", "npx", "-y", "@davidwoods/skylight-mcp"]`.
- Set variables in PowerShell like this, then run the command on the next line:
`$env:SKYLIGHT_FRAME_ID="your_frame_id"; $env:SKYLIGHT_TIMEZONE="America/New_York"`.
- In Windows Terminal you can hold Ctrl and click the sign-in URL. In the history
search, right-click the result dated today and choose Copy link address.
- The sign-in is stored **unencrypted** in `%APPDATA%\skylight-mcp\credential.json`.
There is no Keychain equivalent wired in, and Windows ignores Unix `0600`
permissions. Only your Windows user profile protects it.
### Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| `'skylight-mcp' is not recognized` (Windows) or `skylight-mcp: command not found` | You ran `npx` from inside a clone of this repo, so npx tried to run the local project, whose command is not linked. `cd` to any other folder and run it again. From a clone, use `node dist/index.js` instead. |
| Server fails to start, mentions configuration | No frame ID: run `init` (or `doctor` to see what is missing). An invalid settings file also stops the server; `doctor` names the problem. |
| "Not signed in" | Run `auth login` then `auth complete`. Logins expire after 10 minutes. |
| macOS Keychain error | The server refuses to fall back to plaintext. Unlock the Keychain or allow access when prompted. |
| Events show at the wrong hour | `SKYLIGHT_TIMEZONE` unset (defaults to New York). Set your zone. |
| Tools missing after an update | Fully quit and reopen the client; it caches the tool list. For a hosted connector use its "Refresh tools list". |
| Worked yesterday, fails today | Skylight has no public API and may have changed. Run `doctor`, then check the issues. |
To find out before it bites, run the [breakage canary](canary/README.md) weekly from a host scheduler (optional, Docker). It reads five things through the library entry and exits non-zero when one changes shape; your scheduler does the emailing.
### First five things to ask Claude
Once `doctor` is clean, try these in order. The first three only read. The last two show how the write guards work, so you see them before anything lands on your Skylight display.
1. **"What's on our family calendar this week?"** Reads events (`get_calendar_events`). If times are off by hours, your `SKYLIGHT_TIMEZONE` is wrong.
2. **"Give me an overview of the week and point out any conflicts."** One call that merges events, chores, meals and lists (`get_week_overview`, `find_conflicts`).
3. **"When are we all free for 90 minutes on Saturday?"** Finds gaps around the fixed events (`find_free_slots`).
4. **"Plan dinners for Monday to Thursday, but do a dry run first."** Shows what would be written and which slots are already filled (`plan_week_meals`). Nothing is written until you say so, and filled slots are never overwritten. Needs Skylight Plus.
5. **"Draft a message to everyone saying dinner is at 6, but don't send it yet."** The send tool previews the exact text and posts nothing until Claude is told to confirm. Messages show on your display, so say yes only when you mean it.
If a tool you expected is missing, see the [Troubleshooting](#troubleshooting) table, and check "What is supported" for tools that are local-only or Plus-only.
### Instructions for AI
Copy this into your AI's custom instructions or system prompt:
> You have access to the Skylight MCP server. Skylight is a smart family calendar display that shows calendars, chores, grocery lists, meals, and rewards. Use the Skylight tools to help manage family schedules and organization.
>
> Tips:
> - Call `get_family_members` before assigning chores to get member names
> - Grocery items default to the main grocery list if no list specified
> - Dates accept "today", "tomorrow", day names, or YYYY-MM-DD format
> - Some tools (rewards, meals, photos) require Skylight Plus subscription
## Prerequisites
- Node.js 20+
- A Skylight account with an active subscription
- Your Skylight Frame ID (see [Finding your Frame ID](#finding-your-frame-id))
## Authentication
Sources are tried in this order:
1. **`SKYLIGHT_TOKEN`** - an explicit token in the environment, if set.
2. **Stored OAuth credential** (recommended) - created by `skylight-mcp auth login`
/ `auth complete`. The access token is refreshed automatically; refresh tokens
rotate and the rotated token is persisted.
3. **`SKYLIGHT_EMAIL` + `SKYLIGHT_PASSWORD`** (deprecated) - the server replays
Skylight's web login form itself. This works but puts your password in your
MCP client config in plaintext. Prefer the browser sign-in above.
If none is present the server fails with instructions rather than starting.
The browser sign-in is the mobile app's flow, not one Skylight offers to third
parties: the server opens Skylight's own sign-in page with the app's client ID
(`skylight-mobile`), PKCE (S256) and a state check, and you paste back the
`ourskylight.com/welcome` address it lands on. Your password never reaches this
project. Skylight could change or block this flow at any time.
Where the credential lives:
| Platform | Location | Protection |
|----------|----------|------------|
| macOS | `~/Library/Application Support/skylight-mcp/credential.enc.json` | AES-256-GCM; key in Keychain (`skylight-mcp.encryption-key`) |
| Linux / other | `$XDG_CONFIG_HOME/skylight-mcp/credential.json` (default `~/.config/skylight-mcp/`) | `0600` file in a `0700` directory, no encryption |
| Windows | `%APPDATA%\\skylight-mcp\\credential.json` | Not encrypted. Windows ignores `0600`; only your user profile's own permissions protect it. Untested, see below. |
If the Keychain is unavailable on macOS the server refuses to read or write the
credential; it never silently downgrades to plaintext.
### Finding your Frame ID
The frame ID is the household identifier. The easy way: after signing in, the
Skylight web app lands on `https://ourskylight.com/my-skylight/<number>`. That
number is your frame ID. Treat it as a secret.
The hard way, if that URL doesn't appear:
1. Use a proxy tool ([Proxyman](https://proxyman.io/), [Charles](https://www.charlesproxy.com/), or [mitmproxy](https://mitmproxy.org/))
2. Capture any API request from the Skylight app
3. Look at the URL path: `/api/frames/{frameId}/...`
4. Example: `/api/frames/abc123/chores` → frame ID is `abc123`
## Configuration
| Variable | Required | Description |
|----------|----------|-------------|
| `SKYLIGHT_TOKEN` | No | Explicit API token; overrides the stored credential |
| `SKYLIGHT_AUTH_TYPE` | No | `bearer` (default) or `basic` (only with `SKYLIGHT_TOKEN`) |
| `SKYLIGHT_EMAIL` | No (deprecated) | Fallback email/password login |
| `SKYLIGHT_PASSWORD` | No (deprecated) | Fallback email/password login |
| `SKYLIGHT_FRAME_ID` | Yes, unless saved by `init` | Your household frame ID; overrides the settings file |
| `SKYLIGHT_TIMEZONE` | No | Default timezone; overrides the settings file (default: `America/New_York`) |
### Auth Notes
- The API host is pinned to `https://app.ourskylight.com`. No environment
variable or `.env` file can redirect requests (and the bearer token) elsewhere.
- `auth logout` deletes the local credential only; Skylight has no public way to
revoke a session, so change your password if a credential may have leaked.
- Skylight has no official API. This uses the same OAuth client the Skylight
app uses, and it may break or be blocked at any time.
## Hosted server (Claude Duet, Claude on other devices)
The same code also runs as a remote MCP server on Cloudflare Workers, which is
how Claude Duet (and any Claude client that can't reach your Mac) connects.
One Worker is both the OAuth authorization server Claude talks to and the MCP
resource server. Signing in is the same browser-paste flow as the CLI; your
Skylight password never reaches the Worker, and the Skylight tokens are kept
encrypted in the OAuth grant, not in a database you manage.
> [!CAUTION]
> **The hosted server can change and delete things other people own.** Whoever (or whatever) holds the
> connection can create, edit and delete anything in the connected Skylight frame, including events
> on every Google calendar connected to it, not only the shared family one. That includes another
> person's personal Google calendar if it is connected to Skylight: a delete or edit there is made at
> Google, shows on their phone, and cannot be undone from this server. Google records the change
> as made by the account that is connected to Skylight, not by you or by the AI. Deleting a repeating event
> with scope `all` removes the whole series, past and future. Claude Duet does not ask before a
> destructive tool call, and the preview step is a parameter the model sets, not something the server
> enforces. Limits that do hold: 60 changes an hour, at most 10 of them deletes, and events from
> subscribed feeds are read-only. Check which calendars your frame syncs (`get_source_calendars`)
> before you connect a client you do not supervise, and remove `delete_calendar_event` from
> `HOSTED_DESTRUCTIVE_ALLOWLIST` if that is more access than you want to give.
### Which tools the hosted server exposes, and why
The hosted server registers all **read and create/update tools**, plus these
deletes: `delete_chore`, `delete_list`, `delete_list_item`, `delete_reward`,
`delete_recipe`, `delete_meal_sitting`, `delete_task_box_item`, `delete_message` and
`delete_calendar_event` (events created in Skylight or on a Google calendar, repeating ones with an explicit scope, and occurrences edited on their own; never subscribed feeds). It does **not**
register `delete_source_calendar`, `delete_label` or photo uploads. The local (stdio) server
registers everything. This is a deliberate choice, not a limitation of the Worker:
- The hosted server is what Claude Duet drives proactively, sometimes
unattended. Every allowlisted delete previews and deletes nothing unless
`confirm: true`. That flag is set by the model, not by a person: the server
cannot tell whether anyone said yes, and some clients do not prompt before a
tool runs. The model is meant to show the exact target and wait for a yes, and
it can be told to in its instructions, but nothing here enforces it. The
server's hard limits are the write limiter (60 changes an hour, at most 10
deletes) and the fixed allowlist.
- `delete_source_calendar` (removing a synced calendar) and adding a feed stay
local-only: a feed address is a secret and a wider, rarer change than deleting
one event.
- Photo tools are uploads the Worker has no reason to carry.
The allowlist is one list, `HOSTED_DESTRUCTIVE_ALLOWLIST` in
`src/worker/mcp.ts`. Add or remove a tool name there and redeploy. For full
parity set `HOSTED_EFFECTS` to `["read", "write", "destructive"]` and
`photos: true` in the same file. Every tool's classification lives in
`src/tools/registry.ts`, so you can also carve out a profile of your own
(read-only, for example, is `["read"]`).
If you run both servers in the Claude desktop app, Claude sees two sets of
mostly duplicate tools and may use either for writes. Disable the local one
in Settings → Connectors when you do not need calendar deletes or photo tools, or
say "use the local Skylight server" when you do.
### Deploy (once)
You need a free Cloudflare account. From a clone of this repo:
```bash
npm install
npx wrangler login
npm run worker:setup # add -- --dry-run first to see the steps
```
`worker:setup` creates your KV namespace, writes a gitignored
`wrangler.local.jsonc` with your real ID (the committed `wrangler.jsonc` keeps a
placeholder, so nothing account-specific can be committed), asks you for a
sign-in passphrase, deploys, sets `WORKER_URL`, deploys again and prints the
connector URL. Re-deploy later with `npm run worker:deploy:local`.
**Upgrading a Worker deployed before 1.13.1:** add the change counter to your
`wrangler.local.jsonc` (a new setup gets it automatically), then deploy:
```jsonc
"durable_objects": { "bindings": [{ "name": "WRITE_LIMITER", "class_name": "WriteLimiter" }] },
"migrations": [{ "tag": "v1-write-limiter", "new_sqlite_classes": ["WriteLimiter"] }],
```
Without it the Worker still runs, but its change limit counts in memory and
limits nothing across requests. After a deploy, make a change and look for
`"limiter":"durable"` in the Worker's logs.
Doing it by hand instead:
```bash
cp wrangler.jsonc wrangler.local.jsonc # gitignored: your real IDs live only here
npx wrangler kv namespace create OAUTH_KV # paste the id into wrangler.local.jsonc, not wrangler.jsonc
npx wrangler secret put SETUP_PASSPHRASE -c wrangler.local.jsonc # 12+ chars; required to link an account
npm run worker:deploy:local # prints the Worker's URL
npx wrangler secret put WORKER_URL -c wrangler.local.jsonc # paste that URL (origin only, no path)
npm run worker:deploy:local
```
`WORKER_URL` must be exactly the public origin of the Worker; every token is
bound to it. It is a secret rather than a `vars` entry so the server's
address is not published with the source.
### Connect from Claude
In Claude (or Duet) → Settings → Connectors → Add custom connector:
- Name: `Skylight`
- URL: `https://skylight-mcp.<your-subdomain>.workers.dev/mcp`
Claude opens the consent page. Enter the setup passphrase, your frame ID and
timezone, then follow the two-step Skylight sign-in and paste the redirect
URL. Connectors are shared across your Claude account, so Duet sees it too.
The server also serves `/setup` (these steps, for the host it runs on) and
`/version` (just the version number, handy for confirming a redeploy took).
### What is stored where
| Thing | Where | Protection |
|---|---|---|
| Skylight access + refresh tokens | OAuth grant props in `OAUTH_KV` | Encrypted by workers-oauth-provider; the key is derived from the token Claude holds, so KV alone is not enough |
| PKCE verifier during sign-in | Upstream transaction in `OAUTH_KV` | Bound to your browser by a `__Host-` cookie; single use; 10-minute TTL |
| Setup passphrase | Worker secret | Never in the repo or `wrangler.jsonc` |
| Nothing else | | The Worker has no database and no logs of tokens |
To revoke: remove the connector in Claude (revokes the grant), or
`npx wrangler kv key list --binding OAUTH_KV` and delete, or change your
Skylight password.
## What is supported
Status vocabulary, used honestly:
- **Live-tested**: run against a real Skylight frame by this project, with the result checked by reading back.
- **Inherited**: came from the upstream project and works there, but this project has not re-run it live.
- **Mocked only**: covered by this project's mocked tests; not yet run against real data.
Skylight has no public API. Everything below can break when Skylight ships a
web release, which happens without notice. The web app version and API version
last captured are recorded in the repository's build log.
| Area | What works | Hosted server (Claude Duet) | Status |
|------|------------|------------------------------|--------|
| Calendar | Read events and source calendars; create (with profiles), update, delete events | All, delete included (preview first; never subscribed feed events). Removing a synced calendar or a label is local only | Read, create, update and delete live-tested, including repeating events (edit scopes one and all; delete scopes one, future and all), all-day series and a one-off event written to a Google calendar. Not yet live: a series written to Google |
| Planning | Week overview, conflicts, free slots, bulk meal plan | All four | All four live-tested (conflicts and free slots as reads; the bulk meal plan through the hosted server) |
| Meals (Plus) | Read categories and meals, with who each meal is for and how it repeats; create, rename, move, delete one-off meals; repeating meals with Skylight's repeat options (every N day, week, month or year; weekdays; day of the month or nth weekday; an end date), and a series' rule changed with scope `all` | All, delete included | Live-tested through the MCP tools and the library, except the full repeat options (since 1.28.0), which are live-tested through the library and through the MCP tools on the local server (2026-11-20); the hosted connector's handling of the new `repeat` parameter has not been exercised yet |
| Recipes (Plus) | Read, create, update, delete recipes; push ingredients to the grocery list | All, delete included | Inherited |
| Messages | Read; post to everyone or to named profiles (silent by default); edit text and sender (everyone-messages only); delete | All four, delete included | Live-tested |
| Chores and routines | Read (routines marked, Up for Grabs included); create, update, delete chores; mark one occurrence of a routine or recurring chore done or not done | All, delete included | Read, create and delete live-tested; completion captured live, tool not yet run live; the rest inherited |
| Task box | List items; add a task; delete a template by id | Yes, delete included | List and delete live-tested; add inherited |
| Lists | Read lists and items; create, update, delete lists and items | All, delete included | Inherited |
| Family and devices | Profiles with IDs, avatars, colours, household info, devices | Yes | Profiles live-tested; the rest inherited |
| Rewards (Plus) | Read points (by profile) and rewards; create, update, redeem, unredeem, delete | All, delete included | Points read, create and delete live-tested; the rest inherited |
| Photos (Plus) | List albums | No | Inherited |
### Not supported
Nothing here is hidden behind a flag. It is either unavailable from Skylight or not yet captured.
- **Messages**: sending to specific devices, scheduling, repeating, voice notes, and read-aloud (the option exists on `send_message` but was not tested live). Deleting works but the app has no delete button.
- **Meals**: changing a meal's repeat rule with scope `one` or `future`, making a one-off repeat, or turning a series into a one-off (refused; only scope `all` was captured), changing the rule of a series that uses rule parts the app cannot set (refused), an occurrence count (the app has none: give an end date), deleting a meal that was edited on its own after being in a series through the MCP tools (refused; the library can), saving a meal to the recipe box from the edit form, assigning a meal to a label or anything but a profile (`profiles` takes profile names only; the typed argument was run live on 2026-11-13 for create, rename, unassign and the planner, and later that day for weekly and multi-profile meals; not run: scope `one` on an assigned repeating meal, which detaches it and cannot then be deleted here), assigning every profile at once (Skylight has no "everyone" option, so name them), and Skylight's own "Plan Meals" feature.
- **Task box**: editing or completing tasks, and saving a routine template to it.
- **Chores**: completing a one-off (non-recurring) chore, Skip, daily or monthly routine schedules (only the weekly format has been captured), and editing a recurring chore's date, time, assignee or stars. Un-completing a routine cannot reduce its `longest_streak`. Whether "this and future" from a later day keeps the earlier days has not been checked (the capture started from the first day).
- **Profiles**: creating or editing them. Read-only.
- **Settings, account, notifications, sleep schedule, device navigation**: none of these are exposed.
- **Photos**: uploads and anything beyond listing albums.
- **Accounts with more than one frame**: the server is pinned to one frame ID.
- **Calendar feeds**: adding one is a CLI command, `skylight-mcp calendars add`, and deliberately not an MCP tool, because the feed address is a secret and a tool argument would put it in the chat transcript. You paste it into a hidden prompt; only the calendar's name and host are printed. Linking a feed to a profile or label, changing which calendar new events are saved to, and adding Google, Outlook, iCloud or Cozi accounts (browser sign-in in the Skylight app) are not supported.
- **Credentials**: sign-in, sign-out and token access are CLI commands (`skylight-mcp auth ...`) and are deliberately not MCP tools.
### Keeping this honest
Every tool must appear in the tables below with the effect it really has, and a
test fails if one is missing or mislabelled. When you add, change or remove a
tool, update this section in the same change.
## Available Tools
Effects: **read** changes nothing; **write** creates or edits and can be edited
again; **destructive** cannot be undone from the API. The hosted server registers
read and write tools plus a fixed list of deletes, each preview-first (see "Which tools the hosted server exposes, and why"); `delete_source_calendar` and `delete_label` exist on the local server alone.
Every tool refuses an argument it does not know and names it, so a misspelt argument is an error, never a call that quietly ran with defaults.
### Planning Tools
Built for "what does the week look like and what is for dinner" questions.
One call returns calendar, chores/tasks, meals and lists, merged per day.
| Tool | Effect | Description |
|------|--------|-------------|
| `get_week_overview` | read | Per-day events, chores/tasks (status, assignee, points), meals (every meal in a slot, with who it is for), overdue chores, conflicts and list summaries in one compact call. Omits owner emails and calendar IDs. |
| `find_conflicts` | read | Timed events that overlap in a date range. All-day events never conflict. A subscribed feed that lists the same event twice (same start, end and title apart from a trailing note such as "Arrive 20 minutes early") is reported separately as a duplicate, not a conflict. |
| `find_free_slots` | read | Gaps of at least N minutes inside a daily window (default 08:00 to 21:00). |
| `plan_week_meals` | write | Fill several meal slots at once. `dryRun` previews; occupied slots are skipped, never overwritten; all entries are validated before anything is written, and the text is checked: a placeholder such as `(plan doc URL)` refuses a real write, while an over-long name, a dessert over two words, non-ASCII characters or a cooking step in a note are reported as warnings that never block; optional grocery push for recipes. Entries can carry `note` and `description` (the app's "Instructions or ingredients" field), attached after the meal is created. |
Times are computed in the frame's time zone, including DST changes.
### Message Tools
Messages are the notes shown on the frame (Skylight's web app calls them "nudges").
| Tool | Effect | Description |
|------|--------|-------------|
| `get_messages` | read | Messages in a date range with time, text, recipients and sender. Never returns the presigned audio URLs. |
| `send_message` | write | Post a message to the frame now, on all devices. Previews by default and posts only with `confirm: true`. Read aloud is **off** unless asked for. `to` names the profiles to send to (see `get_family_members`); omit it for everyone. Optional sender profile. Up to 300 characters. The app has no delete button, but `delete_message` removes one. |
| `update_message` | write | Edit the text (and optionally the sender) of an existing message. Only messages sent to everyone on all devices that don't repeat; others must be edited in the app. |
| `delete_message` | destructive | Delete a message. The app has no delete button; this uses `DELETE /nudges/{id}`, documented by other Skylight clients and verified on a real frame. Available on both the local and hosted servers (the one destructive tool the hosted server offers). Previews unless `confirm: true`, then reads back and reports success only if the message is gone. |
### Calendar Tools
| Tool | Effect | Description |
|------|--------|-------------|
| `get_calendar_events` | read | Events for a date range |
| `get_source_calendars` | read | Connected calendar sources (Google, iCloud, etc.), with each one's role and whether it is editable. Private feed addresses are hidden: only the host is shown |
| `delete_source_calendar` | destructive | Stop syncing a subscribed calendar feed (a team, school or league schedule). Preview first, then `confirm: true`. Its events leave the family calendar and wall display until it is added again. Feeds only (`kind: webcal`); account calendars are refused. Local server only. |
| `update_source_calendar_profiles` | write | Link a subscribed calendar feed to family profiles, or unlink it (the "Link profiles" checkboxes). Preview first, then `confirm: true`; it sends the complete set so the calendar's label is kept, then reads it back. Feeds only (`kind: webcal`); a calendar can never be left with no profile or label. |
| `rename_source_calendar` | write | Rename a subscribed calendar feed as it appears in Skylight (feeds are named from the feed itself, often at length). Preview first, then `confirm: true`; reads it back and checks the linked profiles did not change. Feeds only (`kind: webcal`). |
| `create_calendar_event` | write | Add an event. `profiles` assigns it to named family members. Local times are sent with the frame's UTC offset. `repeat` makes a series: daily or weekly (ends by `until` or `count`, at most 104 occurrences), monthly (`monthlyOn` `date`, e.g. the 15th, or `weekday`, e.g. the 3rd Tuesday) or yearly (on the start's date); monthly and yearly may have no end. Skylight skips a month without the day (the 29th to 31st) or a 5th weekday, and years without Feb 29; the preview names the skipped months or years as a WARNING. Monthly and yearly verified live through the tool on 2026-11-16 (monthly on the 31st and yearly all-day on Skylight's calendar; monthly 3rd Tuesday on a Google calendar, checked in Google); a series is only previewed until `confirm: true`, goes to the calendar the event would (see `calendar` below), and is refused for multi-profile. An all-day series (`allDay: true`, one day per occurrence, `endsAt` the day after `startsAt`) is allowed (verified live 2026-11-09 on Skylight's own calendar). `calendar` chooses where it goes. Omitted, the event goes to the household's default calendar for new events (the one the Skylight app preselects, read from the calendar list; often a linked Google calendar), and with no default Google calendar it goes to Skylight's own as before. A name picks another linked Google calendar; `"skylight"` picks Skylight's own calendar (shows on Skylight only, not written to Google). Any event that goes to a Google calendar, the default included, shows for everyone who shares it and is previewed until `confirm: true`; the default is verified live (2026-11-16: a confirmed create and a delete through Duet, checked in Google; the no-default fallback, a read-only default and two defaults are mocked only); it refuses a read-only calendar and one whose account cannot be determined (the account is read from the calendar's own record, falling back to an existing event on it within 90 days). A one-off event written to a named Google calendar is verified live (2026-11-09), and so is a monthly series (2026-11-16). `dinner: true` makes a free-tier "Dinner plan" instead (Skylight's stand-in for Meals on an account without Plus: an all-day event of kind `meal`, tagged "Dinner Plan" by Skylight; date only, no profiles, calendar or repeat); shape captured from the web app; the same request body verified live on a free account 2026-11-10 (create, read back, delete), the tool call itself not yet. |
| `update_calendar_event` | write | Change an event, including who it is assigned to (`profiles`). For a repeating event give the occurrence's `date` and a `scope`: `one` (that occurrence only, which becomes its own event) or `all` (the whole series; overwrites earlier single-occurrence edits). On a series you can change the title, the assignment and the time of day (`startsAt` and `endsAt` together, on the occurrence's date); the time change is verified live for both scopes (`one` detaches that occurrence as its own event; ids change, so re-read before the next call). Notes, location and all-day stay refused. There is no `future` scope: Skylight's API refuses it. Events on a Google calendar change at Google too. |
| `delete_calendar_event` | destructive | Delete one event, or part of a repeating one. Needs the event's `date`; preview first, then `confirm: true`. A repeating event needs a `scope`: `one`, `future` (this and later occurrences) or `all` (the whole series); the preview says which. Events on a Google calendar are deleted at Google too, for everyone who shares it. An occurrence that was edited on its own is its own event: deleted without a scope, the rest of the series stays (request captured and checked in Skylight and Google 2026-11-16). Refuses subscribed-feed events, non-editable events, a repeating event with no scope, and a scope on a one-off or split-off event. Reads the day back to confirm it is gone. Also on the hosted server. |
### Chore Tools
| Tool | Effect | Description |
|------|--------|-------------|
| `get_chores` | read | Chores with their ids, with optional filters (date, assignee, status) |
| `create_chore` | write | Create a one-off chore for one family member (assignee required; Skylight rejects a chore with no profile). Repeating tasks: `create_routine` |
| `update_chore` | write | Rename, reschedule, reassign a one-off chore. For recurring chores and routines only a rename and a weekly schedule (`days` + `timeOfDay`) are supported; a schedule change needs `acknowledgeReset: true` because it can reset streak history, and Skylight re-keys the chore (the reply gives the new id). Completion goes through `complete_chore`. |
| `create_routine` | write | Create a weekly routine (morning, afternoon or evening) for one or more profiles, via `create_multiple`. Optional habit tracking and stars. Weekly schedules only. |
| `complete_chore` | write | Mark one occurrence of a routine or recurring chore done, or undo it. Previews unless `confirm: true`; awards real stars and streaks on the family display. Recurring chores only. |
| `delete_chore` | destructive | Delete a chore. Previews unless `confirm: true`. Recurring chores and routines need `scope`: `future` (this day and later) or `all` (whole series), sent as `apply_to`. Reads back to confirm. Available on the hosted server too. |
### Task Tools
| Tool | Effect | Description |
|------|--------|-------------|
| `get_task_box` | read | List the task box: reusable chore and routine templates (no assignee or date) |
| `create_task` | write | Add a template to the task box |
| `delete_task_box_item` | destructive | Delete one Task Box template by ID (shown by `get_task_box`). Previews unless `confirm: true`; the preview lists same-name scheduled chores as "link unverified" (a template and a scheduled chore are separate records, and nothing is matched by name). Reads the Task Box back to confirm it is gone. |
### List Tools
| Tool | Effect | Description |
|------|--------|-------------|
| `get_lists` | read | All lists |
| `get_list_items` | read | Items in one list |
| `create_list` | write | Create a list |
| `update_list` | write | Rename or change a list |
| `create_list_item` | write | Add an item |
| `update_list_item` | write | Edit or tick off an item |
| `delete_list` | destructive | Delete a list. Local server only. |
| `delete_list_item` | destructive | Delete an item. Local server only. |
### Family Tools
| Tool | Effect | Description |
|------|--------|-------------|
| `get_family_members` | read | Family member profiles, with the IDs and names that `to` and `profiles` use |
| `get_frame_info` | read | Household/frame information |
| `get_devices` | read | Skylight devices |
| `get_labels` | read | Calendar labels (team, school year, holiday feed: the groupings that are not family members), each with its count of upcoming events and whether a synced calendar still writes to it, so unused ones are easy to spot |
| `delete_label` | destructive | Delete one calendar label (the iOS app can do this; the web app cannot). Preview first, then `confirm: true`; the preview lists the upcoming events that carry only this label, because those are removed with it, while events that also have a profile or another label stay and lose it. Refuses, even with confirm, a profile (family member) and a label a synced calendar still writes to (that would unsync the calendar). Confirms by reading the label list back. Local server only |
| `get_avatars` | read | Available profile avatars |
| `get_colors` | read | Available profile colours |
### Meal Tools
Meals and recipes need Skylight Plus.
| Tool | Effect | Description |
|------|--------|-------------|
| `get_meal_categories` | read | Breakfast, Lunch, Dinner, Snack and their IDs |
| `get_meal_sittings` | read | Scheduled meals in a date range, with sitting IDs and who each is for (`for: name, name`; none printed means unassigned); `details: true` also prints notes and instructions |
| `create_meal_sitting` | write | Schedule a meal on a date (free text or a saved recipe). `repeat: "weekly"` repeats it every week on that weekday; `repeat: { every: "day" \| "week" \| "month" \| "year", interval?, weekdays?, monthlyOn?, until? }` takes Skylight's other repeat options (since 1.28.0; run live 2026-11-20 through the local server), and the reply lists the first dates, the last one when there is an end, and the months a 29th to 31st or a 5th weekday skips. `profiles` names who it is for (exact profile names; an unknown name changes nothing); one meal per person can share a day and category. Run live 2026-11-13: assigned create, weekly plus profiles, and `plan_week_meals` with one meal per person. |
| `update_meal_sitting` | write | Rename, re-categorise, or set the note or the instructions (`description`) of a meal, by sitting ID and its current date; one-offs can also be moved. `profiles` replaces who it is for (`[]` unassigns; omitted keeps it). Repeating meals need `scope` (`one`, `future`, `all`), are preview-first and need `confirm: true`; they cannot be moved. `one` and `future` return a new sitting ID. `repeat` (same shape as on create) replaces a series' rule with scope `all` only, for example to change or add its end date; the rule is taken from the series' start and checked on reading back (since 1.28.0; run live 2026-11-20 through the local server). Run live 2026-11-13 (hosted Worker): `profiles` on a whole series (`all`) and on a split (`future`, which gave later dates a different person and a new ID). `one` with `profiles` not run live. |
| `delete_meal_sitting` | destructive | Delete a meal. For a repeating meal, `scope` is `one` (default), `future` or `all` (whole series). Previews unless `confirm: true`; reports success only when Skylight confirms the removal. A meal edited on its own after being in a series is refused. |
| `get_recipes` / `get_recipe` | read | Browse saved recipes |
| `create_recipe` / `update_recipe` | write | Add or change a recipe |
| `delete_recipe` | destructive | Delete a recipe. Local server only. |
| `add_recipe_to_grocery_list` | write | Push a recipe's ingredients to the grocery list |
### Reward Tools
Rewards need Skylight Plus.
| Tool | Effect | Description |
|------|--------|-------------|
| `get_rewards` | read | Available rewards |
| `get_reward_points` | read | Reward points balance |
| `create_reward` | write | Add a reward for one family member (assignee required) |
| `update_reward` | write | Change a reward |
| `redeem_reward` | write | Redeem a reward, spending points |
| `unredeem_reward` | write | Undo a redemption |
| `delete_reward` | destructive | Delete a reward. Local server only. |
### Photo Tools
Needs Skylight Plus. Local server only.
| Tool | Effect | Description |
|------|--------|-------------|
| `get_albums` | read | Photo albums |
## Use as a library (experimental)
The package root is a small read-only library for apps such as a family display. It is **experimental**: breaking changes are allowed in minor versions, and are documented in the changelog, until a real app has used it for a while. The CLI and the MCP servers are unchanged (`skylight-mcp` runs `dist/index.js`).
```ts
import { createSkylight } from "@davidwoods/skylight-mcp";
const skylight = createSkylight({
frameId: "your_frame_id",
timezone: "America/Los_Angeles",
credential: yourCredentialStore, // or { token: "..." } for a fixed token that does not refresh
});
const events = await skylight.calendar.events({ from: "2026-11-09", to: "2026-11-15" });
```
Read methods: `calendar.events`, `calendar.sources`, `profiles.list`, `labels.list`, `chores.list`, `meals.sittings`, `meals.recipes`, `meals.categories`, `lists.list`, `lists.items`. They return plain objects, never raw Skylight records: no emails, event uids, calendar or account ids, or subscription feed addresses (a feed shows only its host; an email-shaped calendar label is replaced). Event ids are opaque: a repeating event's occurrence ids change after a time edit, so do not store or compare them. Writes: events (`calendar.previewCreate`, `create`, `previewUpdate`, `update`, `previewDelete`, `delete`, see "Writing events" below) and meals (`meals.previewCreate`, `create`, `previewUpdate`, `update`, `previewDelete`, `delete`, see "Writing meals" below).
Behaviour an importer should plan for:
- `meals.sittings` returns, per sitting, `description` (the app's "Instructions or ingredients", often a recipe link plus steps) and `note`, each exactly as stored with line breaks kept and `null` when empty; `profiles` and `profileIds` (who the meal is for; empty when unassigned; an email-shaped profile name becomes `Calendar`, an id with no name reads `Someone`); `detached` (an occurrence edited on its own: its own sitting with its own id, still marked as repeating, with no link back to the series); `repeat` (since 1.28.0: `null` for a one-off or a detached day, the rule's parts for a series as `{ every, interval, weekdays?, monthlyOn?, until }` with `until` inclusive or `null`, or `{ every: "other" }` for a rule using parts the app cannot set); and `version`, a fingerprint of the title, category, recipe, description, note, people and repeat rule (not of the other days of a series). Skylight gives meals no update stamp, so `version` is the only stale check there is. `description` and `note` are text a person wrote: links in them are returned as text, never fetched, and a link or address pasted there is not redacted. The meal read now asks Skylight for the people with `include=profiles` under API version 2026-10-15, as the app does.
- `chores.list` takes one day (`{ date }`) or a range (`{ from, to }`, both included, at most 31 days), plus an optional `profile`. A repeating chore appears once per day it falls on, and each item's `date` is that day. The range is not yet verified against live Skylight.
- One `createSkylight` client holds one sign-in and caches what it read from your store, including "nothing stored". After `completeLogin` writes a new credential, or after any `AuthenticationError`, make a new client.
- Profile and label names and colours are cached for up to 5 minutes per client (one read of Skylight's categories serves `profiles.list`, `labels.list` and the names on events), so a renamed profile or label can show its old name or colour for up to 5 minutes.
- Colouring an event the way Skylight does: it uses every category on the event. `labels.list()` returns `{ id, label, color }[]` for every category that is not a profile (a feed, the holidays calendar, a team), including labels no event uses; `profiles.list()` returns the same shape for people. An event's `profileIds` and `labelIds` hold the ids of its `profiles` and `labels` (same order), so look colours up by id. Names are not unique: two labels can share one, and an email-shaped name is replaced by `Calendar` (in the lists and on events alike), so match by id, not by name.
- `color` is the string Skylight stores, or `null`. Seen live: six-digit hex with a leading `#`, in either case (`#2178AF`, `#fdb305`), including colours outside the app's palette. The library does not normalise it, so match case-insensitively and validate it before using it as a style.
- If a refreshed credential cannot be written to your store, the call fails with `CredentialSaveError` (an `AuthenticationError`, `code` `CREDENTIAL_SAVE_FAILED`). Refresh tokens rotate, so the old one in your store is already spent: treat it as signed out and sign in again. The error never includes your store's own message.
- The library writes no per-request log lines. Errors and warnings still go to `console.error`.
What is not there, on purpose: event updates and deletes (planned next), other writes, messages, source-calendar and feed management, and any function that takes a URL or a feed address (sign-in lives in the separate setup entry below, which accepts exactly one address: the Skylight redirect you paste). There is no host or fetch option; the API host is fixed in code and an unknown option is refused. Only the package root and `/setup` are importable (deep imports such as `dist/api/client.js` fail). The library holds a live sign-in, so it stops accidents and token leaks, not a malicious importer. Verified read-only against a real frame on 2026-11-09 (chores and list items were empty that day).
### Writing events (experimental)
```ts
const entry = { title: "Dentist", start: "2026-12-03T15:00", end: "2026-12-03T16:00", profileIds: ["123"], calendar: "456" };
const preview = await skylight.calendar.previewCreate(entry); // changes nothing; show it, get a yes
const event = await skylight.calendar.create(entry); // same arguments; returns the stored event
// later, from a read: id, the date it was read on, and its version
const ref = { id: event.id, date: "2026-12-03", version: event.version };
await skylight.calendar.previewUpdate({ ...ref, changes: { title: "Dentist (moved)" } });
await skylight.calendar.update({ ...ref, changes: { title: "Dentist (moved)" } }); // returns the event under its id after the change
await skylight.calendar.delete({ ...ref, scope: "one" }); // scope only for a repeating event
```
- Two functions, identical arguments. Both run the same check against fresh reads (profiles, labels, calendars), so the preview cannot drift from the write. `create` checks again, writes once, then reads the event back and resolves only when the read-back shows every field as asked.
- `calendar` is required: `"skylight"` for Skylight's own calendar (shows on Skylight only), or the `id` of a calendar from `calendar.sources()` whose `writable` is true: a Google calendar this account can edit. Skylight writes the event through to Google, where everyone who shares that calendar sees it, with that calendar's default reminders. The calendar's address and account are looked up inside the call and never returned.
- Times are wall-clock in the frame's time zone: `start` and `end` as `YYYY-MM-DDTHH:MM`, no offset or `Z`. A time the clocks skip is refused; an ambiguous time (the repeated hour) is read as the earlier one. All day: `allDay: true`, `start` as `YYYY-MM-DD`, `end` left out (one day). The preview shows the times as they will be sent (ISO with the frame's offset).
- Optional: `location` (500 characters), `notes` (5,000), `profileIds` (from `profiles.list()`), `labelIds` (from `labels.list()`; a label a synced calendar writes to is refused, Skylight assigns it itself). Title: one line, 200 characters. These limits are the library's; Skylight's own are not known.
- Repeating: `repeat: { every: "day" | "week" | "month" | "year", interval?, monthlyOn?: "date" | "weekday", until?: "YYYY-MM-DD", count? }`. Daily and weekly need an end (`until` or `count`); monthly and yearly may be open-ended (a birthday, a bill). Weekly repeats on the start's weekday; monthly on the start's day (`"date"`, e.g. the 15th) or its weekday (`"weekday"`, e.g. the 3rd Tuesday, as the Skylight app offers); yearly on the start's date. The preview's `repeat` gives the rule in words, the first dates and what is skipped, and `warnings` says so in a sentence: Skylight skips months without the day (a series on the 31st has no February, April, June, September or November occurrence) and years without Feb 29; nothing is moved. Show the warning with the preview. Multi-day all-day events are not supported yet.
- Update and delete take `{ id, date, version }` from a read. `version` is a fingerprint of the event's fields (including notes and the rule); if the event changed since that read, the call is refused with `stale` and nothing is written. Skylight has no conditional write, so a change landing between the library's re-read and its write is not caught.
- A repeating event's occurrence needs `scope`: update `"one"` (it becomes its own event with a new id) or `"all"`; Skylight refuses "this and following" for an edit. Delete `"one"`, `"future"` (this and every later one) or `"all"` (the whole series, including occurrences edited on their own). A one-off event, or an occurrence already edited on its own (`detached: true`), takes no scope. A missing or wrong scope is refused, never guessed.
- On a series, update changes only the title, people, labels and the time of day (start and end on the same date); location, notes and all-day on a series are refused as not verified. A one-off event can change any field. People and labels not mentioned stay as they are, including the label Skylight puts on a Google calendar's events.
- `update` resolves with the event as read back under its id after the change: an occurrence's id embeds its start time, so a time edit changes it, and a scope-`"one"` edit makes a new event. `delete` resolves `{ deleted: true, id, scope }` once the event is gone from that date.
- Verified live on 2026-11-16 on Skylight's calendar and a linked Google calendar: monthly (by date and by weekday), weekly and yearly series; scope-one and whole-series edits; deletes with every scope; deleting an occurrence edited on its own; a stale version refused. All test events deleted afterwards.
- More codes: `invalid_repeat`, `not_found` (no event with that id on that date), `stale`, `not_editable` (a subscribed calendar or an event Skylight locks), `scope_required`, `scope_not_allowed`.
- Errors are plain `Error`s with `name` `"SkylightWriteError"` and a `code`; check `name` and `code`, not `instanceof` (the root exports no classes). Input: `bad_input`, `invalid_title`, `invalid_time`, `end_before_start`, `unknown_profile`, `unknown_label`, `label_not_assignable` (each with `ids`), `unknown_calendar`, `calendar_not_writable`, `unsupported`. Around the write: `read_failed` (a read before the write failed, in a preview or a commit: nothing was written, safe to retry; since 1.27.1), `skylight_refused` (Skylight said no, with `status`; nothing was written), `outcome_unknown` (a network or server error after sending; since 1.27.1 the library then reads back by itself, and resolves normally if the write shows up as exactly one new or changed record, so `outcome_unknown` now means it did not show within about 2 seconds: probably not written, but read before retrying), `not_confirmed` (accepted, with `eventId`, but the read-back did not show it as asked within about 2 seconds, or the read-back itself failed; Skylight's list can lag, so read before retrying). Messages are the library's own; Skylight's response text is never included, for reads made inside a preview or commit too. A create that resolves after an `outcome_unknown` self-check costs one extra read (the commit notes what was already on the day before writing, so an identical record already there is not taken for the new one). A sign-in failure stays an `AuthenticationError`.
- After `create` resolves, a read of that day through the library shows the event (the read-back used the same list). On a Google calendar Skylight adds that calendar's own label to the event, and (seen live) writes it to Google during the create call itself; the library does not check Google.
- Verified on a real frame on 2026-11-16: a create on Skylight's calendar with a profile, and a create on a linked Google calendar that then showed in Google Calendar with the same title and times. Both test events were deleted afterwards.
- Nothing de-duplicates: two `create` calls make two events. Debounce taps in your app.
### Writing meals (experimental)
Meals need Skylight Plus. Every meal write is a preview/commit pair that shares one plan, like an event write: the preview changes nothing and returns exactly what the commit would write; the commit re-runs every check against a fresh read (including `version`), writes, reads back, and resolves with the meal as Skylight stored it. Errors are `SkylightWriteError` with a stable `code`; Skylight's response text is never passed through. Skylight gives meals no update stamp, so `version` (from `meals.sittings()`) is a fingerprint of the fields shown and the rule; a change that lands between the commit's re-read and its write is not caught.
```js
const preview = await sky.meals.previewCreate({ title: "Tacos", date: "2027-03-01", category: categoryId, note: "Meatless night." });
const meal = await sky.meals.create({ title: "Tacos", date: "2027-03-01", category: categoryId, note: "Meatless night." });
await sky.meals.update({ id: meal.id, date: "2027-03-01", version: meal.version, changes: { description: "Brown the beef." } });
await sky.meals.delete({ id: meal.id, date: "2027-03-01", version: meal.version });
```
- **Create**: `{ title, date, category, description?, note?, profileIds?, repeat? }`. `category` is an id from `meals.categories()`, `profileIds` come from `profiles.list()`, `repeat` is `"weekly"` (every week on the weekday of `date`, no end) or, since 1.28.0, `{ every: "day" | "week" | "month" | "year", interval?: 1-99, weekdays?: ["MO", ...] (week only; must include the weekday of `date`), monthlyOn?: "date" | "weekday" (month only; both taken from `date`), until?: "YYYY-MM-DD" (inclusive) }`, the options of Skylight's Plan Meal form. There is no count. The preview gives `repeat` as that object (also for `"weekly"`), `occurrences` (`first`: up to 5 dates; `last`: the last date when there is an end), and `notices` (`{ code: "skips_months", months }` for a 29th to 31st or a 5th weekday); the read-back compares the stored rule part by part, because Skylight rewrites the end date when it stores it. A bad rule is `invalid_repeat`. `changes.repeat` on update replaces a series' rule with scope `"all"` only; other scopes, a one-off, a detached day, `null` and a series whose rule is `{ every: "other" }` are `unsupported`, an unchanged rule is `bad_input`, and the read-back looks at the series' start, since a new end can drop the day you edited. `description` is the app's "Instructions or ingredients". Text keeps its line breaks, is trimmed at the ends, and is at most 5000 characters; a title is at most 200 characters on one line.
- **Update**: `{ id, date, version, scope?, changes }` where `changes` holds any of `title`, `category`, `description`, `note`, `profileIds` and, for a one-off meal, `date`; anything left out stays. An empty string clears `description` or `note`; `profileIds: []` unassigns.
- **Delete**: `{ id, date, version, scope? }`, resolves with `{ deleted: true, id, scope }` after the date reads back without the meal.
- **Which scope**: a one-off meal takes no scope (`scope_not_allowed` otherwise). A repeating meal needs one (`scope_required`): `"one"` (that day only), `"future"` (that day and every later one) or `"all"` (the whole series). An occurrence that was edited on its own (`detached: true` on the read) takes no scope either, because it is already a meal of its own.
- **Ids change**: with scope `"one"` the day becomes a new meal under a new id, `detached: true`, still marked as repeating, with no link back to the series; with `"future"` the later days get a new id; with `"all"` the id stays. The commit resolves with the meal under its id after the change; do not keep the old id for the changed days.
- **Refused as `unsupported`**: moving an occurrence of a repeating meal, or of a detached meal, to another day; editing a whole series whose start date cannot be found (a guess would delete earlier days).
- **Other codes**: `bad_input`, `invalid_title`, `invalid_repeat`, `unknown_profile` and `unknown_meal_category` (both with `ids`), `not_found`, `stale`, `read_failed`, `skylight_refused`, `outcome_unknown`, `not_confirmed` (with the id Skylight gave); they mean the same as for events, including the self-check after `outcome_unknown`. A text field holding a placeholder such as `(recipe URL needed)` is `bad_input`; warnings such as a long name or a cooking step in a note are returned in the preview and never block.
- **Live status (2026-11-19)**: run on a real frame through the library: a one-off (create with `description` and `note`, edit, a stale `version` refused, delete) and a repeating series (scope `one`, `future` and `all` edits, a detached day edited and deleted, deletes at each scope), each read back with the other days checked untouched. The read-back uses the library's own read, not a second client. Not run live: the `profiles` read on an assigned meal, and `profileIds` on create or update.
### Signing in from your own app (setup entry, experimental)
An app that keeps its own credential store signs in with the same browser-paste flow as the CLI, through a separate entry. Call it from a setup page only, and protect that page yourself.
```ts
import { beginLogin, completeLogin, loginStatus } from "@davidwoods/skylight-mcp/setup";
const { loginUrl } = await beginLogin({ pending }); // show loginUrl; the person signs in at Skylight
await completeLogin({ pending, credential, redirectUrl }); // the https://ourskylight.com/welcome?code=... address they paste
await loginStatus({ credential }); // { signedIn, expired, expiresAt }
```
- `pending` is your store for the ten-minute pending sign-in: `save(value)` and an atomic `take()` (read and delete in one step). `credential` is the same store you give `createSkylight`.
- Nothing secret is returned: the credential is written straight into your store. PKCE (S256) and the state check are always on, and a pending sign-in works once.
- The pasted address must be the Skylight redirect (`https://ourskylight.com/welcome`); anything else is refused before any request and is never echoed in an error. There is no host or fetch option.
- Give each app its own sign-in. Refresh tokens rotate, so two apps sharing one credential break each other. A new sign-in did not interrupt two other sessions on the same account: both kept reading in the minutes after it (2026-11-09) and again about 36 hours later, after at least one token refresh each (2026-11-11), with a further sign-in in between. This is one account observed on two days, not a guarantee from Skylight.
- Verified against live Skylight under Node on 2026-11-09, and inside the Workers runtime (`nodejs_compat`) against a stubbed token endpoint. Not yet run with a Durable Object store.
## Skylight API calls used
All calls go to `https://app.ourskylight.com/api` (pinned in code). `{f}` is the frame ID. "Live" means run against a real frame by this project; everything else came from upstream and has not been re-run. Messages and meal edit/delete send `Skylight-Api-Version: 2026-10-15`, the version the web app sends; other calls use the client default.
| Function | Calls |
|----------|-------|
| Calendar | `GET/POST /frames/{f}/calendar_events` (live), `PUT /calendar_events/{id}`, `DELETE /calendar_events/{id}` (live), `GET /frames/{f}/source_calendars` (live) |
| Messages | `GET /frames/{f}/nudges?after&before`, `POST /nudges` (everyone or `category_ids`), `PATCH /nudges/{id}`, `DELETE /nudges/{id}` (all live) |
| Meals | `GET /meals/categories`, `GET/POST /meals/sittings`, `PATCH/DELETE /meals/sittings/{id}/instances/{date}` (all live) |
| Recipes | `GET/POST /meals/recipes`, `GET/PATCH/DELETE /meals/recipes/{id}`, `POST /meals/recipes/{id}/add_to_grocery_list` |
| Profiles and family | `GET /frames/{f}/categories` (live), `GET /frames/{f}`, `GET /frames/{f}/devices`, `GET /api/avatars`, `GET /api/colors` |
| Chores and routines | `GET /frames/{f}/chores` (live; `include_up_for_grabs`), `POST /chores`, `PUT/DELETE /chores/{id}` (one-off), `PUT /chores/{occurrence id}` (flat `{summary}` or `{recurrence_set}`; re-keys the chore), `DELETE /chores/{occurrence id}?apply_to=future\|all`, `PUT /chores/{series id}/completions` (body `status` `complete`/`pending`, `instance_date`, `instance_time`), `POST /chores/create_multiple`. All routine calls captured from the web app; the tools are not yet run live |
| Task box | `GET /frames/{f}/task_box/items` (live), `POST /frames/{f}/task_box/items`, `DELETE /frames/{f}/task_box/items/{id}` (live) |
| Lists | `GET/POST /lists`, `GET/PUT/DELETE /lists/{id}`, `POST /lists/{id}/list_items`, `PUT/DELETE /lists/{id}/list_items/{itemId}` |
| Rewards | `GET/POST /rewards`, `PATCH/DELETE /rewards/{id}`, `POST /rewards/{id}/redeem`, `POST /rewards/{id}/unredeem`, `GET /reward_points` |
| Photos | `GET /frames/{f}/albums` (local only) |
The planning tools make no calls of their own; they combine the calendar, chore, meal and list calls above.
## Example Queries
Once configured, you can ask Claude things like:
- "What's on my calendar today?"
- "What chores do I need to do this week?"
- "Add 'take out trash' to my chores for tomorrow"
- "What's on the grocery list?"
- "Add milk to my task list"
- "Who are the family members on Skylight?"
- "How many reward points does each person have?"
## Development
```bash
# Run in development mode (with hot reload)
npm run dev
# Build
npm run build
# Run tests
npm test
# Type check
npm run typecheck
```
### Live tests
`npm test` uses mocked network calls and is what CI runs. A separate, opt-in
suite runs the real tools against your own Skylight frame to catch drift in
Skylight's API: read smoke checks, response-shape contract checks, and a
create/edit/move/delete round trip on a throwaway meal. It does nothing unless
you set `SKYLIGHT_LIVE=1`, never sends messages, and cleans up after itself.
Each test is one file in `tests/live/`, so adding or removing one is adding or
deleting a file. See [tests/live/README.md](tests/live/README.md).
```bash
SKYLIGHT_FRAME_ID=your_frame_id SKYLIGHT_TIMEZONE=America/Los_Angeles \
SKYLIGHT_LIVE=1 npm run test:live
```
Each new terminal starts without these variables; if one is missing the suite
says which and prints the full command. To keep them, add the `export` lines to
`~/.zshrc` (or `~/.bashrc`). On Windows PowerShell use `setx` and open a new window.
Set `SKYLIGHT_TIMEZONE` to your frame's zone. It defaults to `America/New_York`,
which shifts every date window the suite asks for if your frame is elsewhere.
Sign in first with `skylight-mcp auth login`.
## API Documentation
This MCP server is built on top of the reverse-engineered Skylight API. The API endpoints were documented using the [skylight-api](https://github.com/TheEagleByte/skylight-api) project, which converts browser network traffic (HAR files) into an OpenAPI specification.
**API Resources:**
- [Interactive API Docs (Swagger UI)](https://theeaglebyte.github.io/skylight-api/swagger.html)
- [API Reference (ReDoc)](https://theeaglebyte.github.io/skylight-api/redoc.html)
- [OpenAPI Specification](https://theeaglebyte.github.io/skylight-api/openapi/openapi.yaml)
If you discover new API endpoints or find issues with the current documentation, please contribute to the [skylight-api](https://github.com/TheEagleByte/skylight-api) repository.
## Contributing
Contributions are welcome! Here's how you can help:
1. **Fork the repository** and create a feature branch
2. **Make your changes** with clear, descriptive commits
3. **Run tests** (`npm test`) and linting (`npm run lint`) before submitting
4. **Open a pull request** with a description of your changes
### Development Setup
```bash
git clone https://github.com/dwooods/skylight-mcp.git
cd skylight-mcp
npm install
npm run dev # Start with hot reload
```
### Areas for Contribution
- Adding support for new Skylight API endpoints
- Improving error handling and edge cases
- Enhancing documentation
- Writing additional tests
## Issues & Support
See [SUPPORT.md](SUPPORT.md) for what to run first and what must never be pasted into an issue.
- **Bug reports and feature requests**: [open an issue](https://github.com/dwooods/skylight-mcp/issues/new/choose) and pick a template.
- **Security problems**: use private vulnerability reporting, not a public issue (see SUPPORT.md).
## License
MIT
## Disclaimer
This is an unofficial integration, not affiliated with or endorsed by Skylight. The Skylight API is reverse-engineered from observed app and web traffic and may change without notice. Sign-in reuses the mobile app's OAuth client. Skylight's [Terms of Service](https://myskylight.com/tos/) prohibit unsupported access and reverse engineering (§5.4) and allow account suspension (§16); you take that risk for the account you use. This project only exposes features your Skylight subscription includes. Use at your own risk.
TDQS
Scored across 30 tools
Most tools target clearly distinct resources and actions, and descriptions explicitly clarify boundaries like create_task vs create_chore vs create_list_item. The main overlap is get_week_overview duplicating individual getters for calendar, chores, and lists, plus possible confusion between dedicated conflict/free-slot tools and overview features.
Names consistently use snake_case and a predictable verb_noun pattern: get_*, create_*, update_*, delete_*, plus send_message and plan_week_meals. The special verbs still fit the resource-oriented convention and do not introduce inconsistent casing or styles.
The server covers several distinct domains (calendar, chores, lists, messages, meals, profiles/devices), so many CRUD tools are justified. However, 30 tools is heavy for an MCP surface, and some metadata getters or aggregate/individual overlaps could likely be consolidated.
Calendar events, chores, lists, and list items have full CRUD coverage, and messages are well covered given the permanent-post limitation. Notable gaps remain around tasks (create only, with no standalone update/delete) and meals (planning exists, but retrieval/update/delete lifecycle is thin).