@chrischall/hellofresh-mcp 0.3.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.
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "HelloFresh (US) tools for Claude Code",
8
- "version": "0.3.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.3.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.3.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