@chrischall/hellofresh-mcp 0.3.0 → 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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +18 -1
- package/dist/bundle.js +1057 -168
- package/dist/client.js +6 -0
- package/dist/index.js +4 -1
- package/dist/normalize.js +50 -0
- package/dist/session-cache.js +33 -0
- package/dist/session.js +115 -10
- package/dist/support.js +256 -0
- package/dist/tools/index.js +2 -0
- package/dist/tools/reads.js +28 -4
- package/dist/tools/support.js +290 -0
- package/dist/tools/writes/shared.js +1 -1
- package/dist/version.js +1 -1
- package/manifest.json +28 -2
- package/mint.yaml +15 -1
- package/package.json +1 -1
- package/server.json +14 -2
- package/skills/hellofresh/SKILL.md +27 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "HelloFresh (US) tools for Claude Code",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.5.0"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"displayName": "HelloFresh",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Unofficial HelloFresh (US) tools for Claude — subscription, weekly deliveries, menus, meal picks, skips and box sizes via MCP",
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.5.0",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Chris Chall"
|
|
19
19
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hellofresh",
|
|
3
3
|
"displayName": "HelloFresh",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description": "Unofficial HelloFresh (US) tools for Claude — subscription, weekly deliveries, menus, meal picks, skips and box sizes via MCP",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Chris Chall"
|
package/README.md
CHANGED
|
@@ -90,6 +90,20 @@ If calls fail with "Not signed in to HelloFresh", sign in again at hellofresh.co
|
|
|
90
90
|
| `MCP_CONFIRM_ELICITATION` | `on` | `off` never shows a confirmation prompt, so every client takes the `MCP_CONFIRM_MODE` path. Use it for clients that declare prompts but never render them. |
|
|
91
91
|
| `HELLOFRESH_PROFILES` | unset | The meal-planner profiles as an inline JSON array (wins over the file). See [Planner profiles](#planner-profiles). |
|
|
92
92
|
| `HELLOFRESH_PROFILES_FILE` | `~/.config/hellofresh-mcp/profiles.json` | A JSON file of planner profiles, read when it exists. With neither set, the built-in `couple` and `family` profiles apply. |
|
|
93
|
+
| `HELLOFRESH_SESSION_FILE` | `~/.hellofresh-mcp/session.json` (under `MCP_DATA_DIR` when hosted) | Where the session is kept so it survives a restart. See [Session across restarts](#session-across-restarts). |
|
|
94
|
+
| `HELLOFRESH_SESSION_CACHE` | on | `false` keeps the session in memory only. |
|
|
95
|
+
|
|
96
|
+
### Session across restarts
|
|
97
|
+
|
|
98
|
+
The server keeps the newest HelloFresh token set in `HELLOFRESH_SESSION_FILE`. It never stores your customer id or email, and the file is `0600`. A restart reuses that file.
|
|
99
|
+
|
|
100
|
+
- **Browser reachable:** the browser's cookie is read as before. Whichever set is newer wins.
|
|
101
|
+
- **Browser not reachable** (closed, or the bridge is down):
|
|
102
|
+
- A stored access token keeps working until it expires (about 30 minutes).
|
|
103
|
+
- A refresh this server made but could not write back to the browser can still be refreshed. Only this server holds that refresh token.
|
|
104
|
+
- Any other stored refresh token is never used without the browser. HelloFresh rotates refresh tokens, and the browser may already have spent it.
|
|
105
|
+
|
|
106
|
+
Processes that share the file (Claude Desktop beside Claude Code, say) take a lock before refreshing. A process that refreshed first is reused rather than raced. A rejected refresh deletes the file.
|
|
93
107
|
|
|
94
108
|
### Planner profiles
|
|
95
109
|
|
|
@@ -146,7 +160,7 @@ Read tools take `view: compact | full` (default `compact`). A box `price` with `
|
|
|
146
160
|
| `hf_healthcheck` | Check the ContextMint Bridge link, the HelloFresh session token and a subscriptions probe (status only). |
|
|
147
161
|
| `hf_get_subscription` | The subscription: box size, price, preset, delivery slot and frequency, next delivery and cutoff, voucher. Never name, email, address or payment. |
|
|
148
162
|
| `hf_list_deliveries` | Upcoming delivery weeks: dates, cutoff, status, box size and each running week's box price (HelloFresh's checkout total + premiums, or a labelled estimate). `view: "brief"` gives one line per week. |
|
|
149
|
-
| `hf_get_delivery` | One delivery week: dates, status, box size, current meal picks, allowed actions, alternative days,
|
|
163
|
+
| `hf_get_delivery` | One delivery week: dates, status, box size, current meal picks, allowed actions, alternative days, the box price (HelloFresh's checkout total + premiums, or a labelled estimate) and, once the box is labelled, its carrier tracking — carrier, tracking code, live status (e.g. `delayed` / `shortage`) and, in `view: "full"`, the status history. |
|
|
150
164
|
| `hf_get_menu` | A week's menu at its box size, with `seafood_only`, `kid_friendly`, `max_minutes`, `max_premium_per_serving` and `selected_only` filters and protein swaps. |
|
|
151
165
|
| `hf_list_box_sizes` | The box sizes (meals × people) the subscription can switch to, the current one marked. |
|
|
152
166
|
| `hf_recent_picks` | Meals picked in recent weeks (best effort; unreadable weeks are named, weeks before the first delivery are `no_box`), to avoid repeating a recipe. |
|
|
@@ -169,6 +183,9 @@ Read tools take `view: compact | full` (default `compact`). A box `price` with `
|
|
|
169
183
|
| `hf_list_ratings` | Your own recipe ratings (v2 and/or the 5-star v3 scale); give a week to name them. Parsed defensively — the item shape isn't observed live yet, so unreadable items are skipped and counted. The planner never suggests a recipe you rated 2 or lower. |
|
|
170
184
|
| `hf_favorite_recipe` | Favourite a recipe from a week's menu by index (a protein swap favourites its own recipe). Confirm-gated, verified by re-reading the favourites. Undo with `hf_unfavorite_recipe`. |
|
|
171
185
|
| `hf_unfavorite_recipe` | Remove a recipe on a week's menu from your favourites. Confirm-gated, verified. Undo with `hf_favorite_recipe`. |
|
|
186
|
+
| `hf_support_start` | Open a chat with HelloFresh customer support about a delivery week — the website's own chat, an AI assistant (FreshBot) that can hand over to a person. Sends no message: returns the greeting, the week's date, box size and tracking, and a drafted first message. |
|
|
187
|
+
| `hf_support_send` | Send one message in that chat. Confirm-gated: the preview shows the exact text. Verified against the transcript HelloFresh streams back; returns the reply. A dropped connection answers `status: "unknown"` (check with `hf_support_read` before resending). |
|
|
188
|
+
| `hf_support_read` | The chat so far, each event labelled `user` / `bot` / `human_agent` (with hand-over, queue and end events); `since` for only newer events; `wait_seconds` waits for a person's reply. Replies are framed as untrusted third-party content. |
|
|
172
189
|
|
|
173
190
|
## Limits
|
|
174
191
|
|