cookbook-co-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.
Files changed (3) hide show
  1. package/README.md +7 -5
  2. package/dist/cookbook-mcp.js +32425 -139317
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -116,9 +116,10 @@ COOKBOOK_TOKEN='<the token>' COOKBOOK_PORT=8787 npx -y cookbook-co-mcp serve
116
116
  The HTTP server binds to `127.0.0.1` only and rejects requests with a foreign `Host` or `Origin` header.
117
117
  It has no token of its own: any process on the machine can use it, so run it only on a machine you trust.
118
118
 
119
- Both transports speak only the `2026-07-28` protocol, which has no sessions.
120
- A client that opens with the older `initialize` handshake is refused with an
121
- unsupported-protocol-version error that names the supported version.
119
+ Both transports speak the `2026-07-28` protocol, which has no sessions.
120
+ Older clients (Gemini, for one) that open with the `initialize` handshake are served too:
121
+ over HTTP each request is handled statelessly, so the `GET` and `DELETE` session operations answer `405`;
122
+ over stdio the connection is pinned to the older protocol for its lifetime.
122
123
 
123
124
  | Variable | Meaning |
124
125
  | --- | --- |
@@ -126,9 +127,10 @@ unsupported-protocol-version error that names the supported version.
126
127
  | `COOKBOOK_READ_ONLY` | Set to `1` to register only the read tools. |
127
128
  | `COOKBOOK_PORT` | Port for `serve` (or pass it as `serve <port>`). |
128
129
  | `COOKBOOK_DEFAULT_SHOPPING_LIST` | Shopping list used when a tool is given none. Default `Shopping List`. |
129
- | `COOKBOOK_BACKUP_DIR` | Where recipe backups go. Default `~/.local/state/cookbook-mcp/backups`. |
130
+ | `COOKBOOK_STATE_DIR` | Base folder for backups and exports, used as given. Default `$XDG_STATE_HOME/cookbook-mcp`, else `~/.local/state/cookbook-mcp`, else `cookbook-mcp` under the system temp folder when that is not writable. Set it on a hosted server to a persistent volume. |
131
+ | `COOKBOOK_BACKUP_DIR` | Where recipe backups go. Default `<state dir>/backups`. |
130
132
  | `COOKBOOK_BACKUP_KEEP` | Edit backups kept per recipe. Default 20. |
131
- | `COOKBOOK_EXPORT_DIR` | Where exports go when no path is given. Default `~/Downloads`, else `~/.local/state/cookbook-mcp/exports`. |
133
+ | `COOKBOOK_EXPORT_DIR` | Where exports go when no path is given. Default `~/Downloads`, else `<state dir>/exports`. |
132
134
 
133
135
  ### Cache timings
134
136