WeatherWake parks an agent's weather wait and resumes it with a signed webhook
An agent registers a forecast condition over MCP and ends its session. A budgeted worker watches the forecast and POSTs a Standard Webhooks call when the window shows. Forecasts in our runs are synthetic.
By David Discua
Measured in the lab
- 7
- checks to wake, storm-clears
- 9
- upstream calls, 3 wakes on one site
- 3
- budget deferrals at 6 calls/day
- 1.98 ms
- register_wake p50
- Replayed webhook answered 200 duplicate
- Tampered body and wrong secret rejected as bad_signature
- Timestamp 10 minutes old rejected
- Two 503s retried with the same webhook-id, then accepted
- confirmations: 2 avoided the false calm-spell wake
From reports/weatherwake-mcp.json · run on October 21, 2026. Synthetic forecast sequences under a simulated clock; real MCP server, worker, HTTP delivery, receiver and resume queue; Bun 1.4.3
How it is wired
01/03The agent registers a weather condition and the session can end.
Agents that wait on weather tend to poll it inside a long chat and keep the session open while the sky decides. WeatherWake MCP moves the wait out of the model. An agent calls register_wake with a site and a rule like "gust under 30 km/h and no precipitation for 3 hours, within 48 hours", the call returns in about 2 ms, and the session can end. A local worker checks the forecast on a budgeted cadence and POSTs a signed webhook when the window shows or the deadline passes. The catch is that every forecast in our measured runs is synthetic, and a wake means a forecast showed the window, which is weaker than the weather holding.
The catch
A wake.met webhook fires on a forecast, and forecasts move. The synthetic flapping run shows the cost. One forecast issuance shows a calm spell that never happens, and with confirmations: 1 the wake fires at hour 9 on a window that does not hold. With confirmations: 2, spaced at least 60 minutes apart, it fires at hour 30 on a window that does.
The two live sources differ. A live NWS preview and worker tick against api.weather.gov passed in the local gate, but NWS covers the US only. The Google Weather path is unit-tested against synthetic responses, and the live path was not run in this lab. The README also says plainly that token or dollar savings from ending the chat session are not measured here, and the mapping to Vercel Workflow, Trigger.dev and Hatchet was written from their type declarations and never executed.
What we ran (keyless)
bun install --frozen-lockfile
bun run demo
bun run report
bun run check
From reports/weatherwake-mcp.json, run on October 21, 2026 with synthetic forecasts under a simulated clock. Everything else is the real code path.
| Run | Event | Settled (h) | Holds in synthetic truth | Checks | Upstream calls | Budget deferrals |
|---|---|---|---|---|---|---|
| storm-clears | wake.met | 18 | yes | 7 | 7 | 0 |
| never-clears | wake.expired | 46 | n/a | 16 | 16 | 0 |
| flapping, 1 confirmation | wake.met | 9 | no | 4 | 4 | 0 |
| flapping, 2 confirmations | wake.met | 30 | yes | 13 | 13 | 0 |
| shared-site, 3 wakes | wake.met | 16 to 18 | yes | 21 | 9 | 0 |
| budget-cap, 6 calls/day | wake.expired | 46 | n/a | 17 | 14 | 3 |
In storm-clears the receiver answered 503 twice, and the third attempt with the same webhook-id was accepted. After delivery, a replay got 200 duplicate, a tampered body and a wrong secret got 401 bad_signature, a request 10 minutes stale got 401 timestamp_too_old, and an unsigned one got 401 missing_headers. The report also lists 15-minute polling for comparison (72 checks for storm-clears), which is arithmetic, not a measurement. Twenty register_wake calls had a p50 of 1.98 ms and made no upstream calls.
How it is wired
register_wake writes the wake to a file and returns. The worker checks again after 180 minutes when no window is in sight, or lead_hours before a window, clamped to 30 to 180 minutes. Wakes on one site share a 20-minute forecast cache, and every upstream call takes a unit from a per-day budget (200 by default). Webhooks follow Standard Webhooks with HMAC-SHA256, the target URL comes only from the environment so a prompt cannot redirect it, and the receiver enqueues one idempotent resume job per wake.
Minilab (open source)
WeatherWake MCP is our own lab, Apache-2.0 and written in TypeScript on Bun, at SkilledDragonCorp/weatherwake-mcp. Its signatures interoperate with the reference package from standard-webhooks/standard-webhooks (1,779 stars, Apache-2.0, Java, as of October 24, 2026). Run bun run demo, then try bun run src/cli.ts preview with a US latitude and longitude and --source nws.
Run it yourself
SkilledDragonCorp/weatherwake-mcp
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run demoSkilledDragon is not affiliated with, endorsed by, or sponsored by Google LLC, the US National Weather Service, Vercel Inc., Trigger.dev, Hatchet, or the Standard Webhooks project. A wake.met event means a forecast showed the window, not that work is safe. Numbers are from our own keyless lab run on synthetic forecasts.
All labs