@chrischall/hellofresh-mcp 0.2.0 → 0.4.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 +16 -1
- package/dist/bundle.js +551 -79
- package/dist/cooking.js +56 -0
- package/dist/index.js +4 -1
- package/dist/session-cache.js +33 -0
- package/dist/session.js +115 -10
- package/dist/tools/cooking.js +71 -5
- package/dist/version.js +1 -1
- package/manifest.json +21 -3
- package/mint.yaml +15 -1
- package/package.json +1 -1
- package/server.json +14 -2
- package/skills/hellofresh/SKILL.md +9 -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.4.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.4.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.4.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
|
|
|
@@ -160,7 +174,8 @@ Read tools take `view: compact | full` (default `compact`). A box `price` with `
|
|
|
160
174
|
| `hf_list_profiles` | The meal-planner profiles (servings, meals, allowed categories, preferences, premium cap) and where they were loaded from. Local config only. |
|
|
161
175
|
| `hf_suggest_meals` | Ranked picks for a week and a planner profile (e.g. a 4-person kid-friendly week), skipping recent repeats and recipes you rated 2 or lower, favouring your favourites and varied proteins: the top picks plus 2 alternates per slot, with reasons. Read-only. |
|
|
162
176
|
| `hf_get_recipe` | One meal's full recipe by week + menu index (protein swaps say which protein they swap in): time, difficulty, allergens, nutrition per serving, ingredient amounts for the week's servings (nearest listed yield otherwise, flagged), plain-text steps, utensils, recipe card PDF and web page. Recipe text is framed as untrusted third-party content. Read-only. |
|
|
163
|
-
| `hf_cooking_plan` | A week's picked meals in a recommended cook order — fish, shellfish, other seafood, poultry, ground meat, whole cuts of beef/pork/lamb, vegetarian last; ties by shorter time — each with a suggested day from the delivery date, why, total time, key ingredients and recipe card. Read-only. |
|
|
177
|
+
| `hf_cooking_plan` | A week's picked meals in a recommended cook order — fish, shellfish, other seafood, poultry, ground meat, whole cuts of beef/pork/lamb, vegetarian last; ties by shorter time — each with a suggested day from the delivery date, why, total time, key ingredients, the pantry staples to have on hand and recipe card. Read-only. |
|
|
178
|
+
| `hf_pantry_check` | What to have in the pantry for a week: the staples HelloFresh does not ship (salt, pepper, oil, often butter/eggs/sugar/flour) across the picked meals, summed per ingredient and unit at the week's servings (× quantity; "to taste" when unmeasured), with the dishes using each and a one-line summary. Read-only. |
|
|
164
179
|
| `hf_weekly_plan` | One read to approve a week: box size needed vs current, suggested picks, the box price for the size it needs (HelloFresh's checkout total + premiums, or a labelled estimate), a one-line summary, and the exact follow-up write calls in order (never a resize of the first box, which keeps its size — see `notes`). Read-only. |
|
|
165
180
|
| `hf_plan_weeks` | Plan 1–6 weeks at once, each `{week, profile}` (which profile applies to which week is your call — it reads no calendar): each week's `hf_weekly_plan` answer, never suggesting a recipe already planned for an earlier week, a combined summary (one line per week), the total of HelloFresh's own box prices (estimate-only weeks named, not added) and the follow-up writes per week. Skipped weeks are reported as skipped. Read-only. |
|
|
166
181
|
| `hf_promo_status` | The promo/voucher tracker: coupon code, active, box limit, boxes used (exact for a new account, else assumed — `next_box_number` corrects it) and left, and each upcoming running week's real discount from HelloFresh's price calculator (coupon percent, discount, grand total — or `unavailable` with the reason), with warnings: a running week with no discount, a coupon percent change from the week before, an inactive voucher, fewer than 4 discounted boxes left. Read-only. |
|