@cyanheads/openfoodfacts-mcp-server 0.4.3 → 0.4.4

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 (54) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +4 -4
  3. package/README.md +12 -10
  4. package/changelog/0.4.x/0.4.4.md +31 -0
  5. package/changelog/template.md +10 -3
  6. package/dist/mcp-server/tools/definitions/browse-taxonomy.tool.d.ts +1 -0
  7. package/dist/mcp-server/tools/definitions/browse-taxonomy.tool.d.ts.map +1 -1
  8. package/dist/mcp-server/tools/definitions/browse-taxonomy.tool.js +6 -5
  9. package/dist/mcp-server/tools/definitions/browse-taxonomy.tool.js.map +1 -1
  10. package/dist/mcp-server/tools/definitions/compare-products.tool.js +2 -2
  11. package/dist/mcp-server/tools/definitions/compare-products.tool.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/get-product.tool.d.ts +14 -0
  13. package/dist/mcp-server/tools/definitions/get-product.tool.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/get-product.tool.js +113 -43
  15. package/dist/mcp-server/tools/definitions/get-product.tool.js.map +1 -1
  16. package/dist/mcp-server/tools/definitions/index.d.ts +52 -8
  17. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  18. package/dist/mcp-server/tools/definitions/search-products.tool.d.ts +37 -8
  19. package/dist/mcp-server/tools/definitions/search-products.tool.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/definitions/search-products.tool.js +156 -65
  21. package/dist/mcp-server/tools/definitions/search-products.tool.js.map +1 -1
  22. package/dist/services/mirror/mirror-lock.d.ts +4 -3
  23. package/dist/services/mirror/mirror-lock.d.ts.map +1 -1
  24. package/dist/services/mirror/mirror-lock.js +4 -3
  25. package/dist/services/mirror/mirror-lock.js.map +1 -1
  26. package/dist/services/mirror/mirror-queries.d.ts +34 -19
  27. package/dist/services/mirror/mirror-queries.d.ts.map +1 -1
  28. package/dist/services/mirror/mirror-queries.js +79 -53
  29. package/dist/services/mirror/mirror-queries.js.map +1 -1
  30. package/dist/services/mirror/mirror-store.d.ts +7 -0
  31. package/dist/services/mirror/mirror-store.d.ts.map +1 -1
  32. package/dist/services/mirror/mirror-store.js +11 -0
  33. package/dist/services/mirror/mirror-store.js.map +1 -1
  34. package/dist/services/mirror/mirror-sync.js +7 -1
  35. package/dist/services/mirror/mirror-sync.js.map +1 -1
  36. package/dist/services/mirror/record-builder.d.ts +24 -7
  37. package/dist/services/mirror/record-builder.d.ts.map +1 -1
  38. package/dist/services/mirror/record-builder.js +35 -5
  39. package/dist/services/mirror/record-builder.js.map +1 -1
  40. package/dist/services/openfoodfacts/openfoodfacts-service.d.ts +82 -35
  41. package/dist/services/openfoodfacts/openfoodfacts-service.d.ts.map +1 -1
  42. package/dist/services/openfoodfacts/openfoodfacts-service.js +161 -77
  43. package/dist/services/openfoodfacts/openfoodfacts-service.js.map +1 -1
  44. package/dist/services/openfoodfacts/types.d.ts +40 -7
  45. package/dist/services/openfoodfacts/types.d.ts.map +1 -1
  46. package/dist/services/openfoodfacts/types.js +32 -0
  47. package/dist/services/openfoodfacts/types.js.map +1 -1
  48. package/dist/services/taxonomy/taxonomy-service.d.ts +21 -23
  49. package/dist/services/taxonomy/taxonomy-service.d.ts.map +1 -1
  50. package/dist/services/taxonomy/taxonomy-service.js +138 -71
  51. package/dist/services/taxonomy/taxonomy-service.js.map +1 -1
  52. package/package.json +5 -5
  53. package/server.json +3 -3
  54. package/skills/openfoodfacts-guide/SKILL.md +6 -5
package/AGENTS.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** openfoodfacts-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
- **Engines:** Bun ≥1.4.0, Node ≥24.0.0
4
+ **Version:** 0.4.4
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
6
+ **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
@@ -333,7 +333,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
333
333
 
334
334
  ## Bundling
335
335
 
336
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
336
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
337
337
 
338
338
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
339
339
 
package/CLAUDE.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** openfoodfacts-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
- **Engines:** Bun ≥1.4.0, Node ≥24.0.0
4
+ **Version:** 0.4.4
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
6
+ **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
@@ -333,7 +333,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
333
333
 
334
334
  ## Bundling
335
335
 
336
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
336
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
337
337
 
338
338
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
339
339
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.4.3-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/openfoodfacts-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/openfoodfacts-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/openfoodfacts-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.4.4-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/openfoodfacts-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/openfoodfacts-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/openfoodfacts-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -51,7 +51,7 @@ Packaged-food data from Open Food Facts, a crowd-sourced database of 3M+ product
51
51
  ### `off_get_product` <sub>tool</sub>
52
52
 
53
53
  - `barcode` is digits only, 4–40 digits after any leading zeros; optional `fields` trims the response and pulls in what a field depends on (`nutriments` brings the serving size, quantity, and unit, and `serving_quantity` and `serving_quantity_unit` each bring the other plus the serving size), with `requested_fields` echoing what was fetched
54
- - Returns ingredients (raw text plus a parsed tree up to three levels deep with `percent_estimate`), `allergens_tags`, `traces_tags`, `additives_tags`, `ingredients_analysis_tags` (vegan, vegetarian, palm-oil verdicts), `nutriscore_grade`, `nova_group`, `ecoscore_grade` (Green-Score), `nutriments` (per serving, and per 100 g, or per 100 ml for liquids), category/label/packaging/origin/country tags, `image_url`, and `completeness` (0–1)
54
+ - Returns `product_name` and `generic_name` (what the product is, in its main language), ingredients (raw text plus a parsed tree up to three levels deep with `percent_estimate`), `allergens_tags`, `traces_tags`, `additives_tags`, `ingredients_analysis_tags` (vegan, vegetarian, palm-oil verdicts), `nutriscore_grade`, `nova_group`, `ecoscore_grade` (Green-Score), `nutrient_levels` (Open Food Facts' low, moderate, or high for fat, saturated fat, sugars, and salt, with a `basis` of `as_sold` or `prepared` naming the figures it judged; `fields: ["nutrient_levels"]` brings `nutriments` for that reason), `nutriments` (per serving, and per 100 g, or per 100 ml for liquids), category/label/packaging/origin/country tags, `image_url`, and `completeness` (0–1)
55
55
  - `traces_tags: ["en:none"]` means the label states no traces, while an empty array means none entered yet; a barcode no contributor has recorded fails as `not_found`
56
56
  - Open Food Facts returns one preparation state of the nutrition per read. A read of prepared-product figures puts them under keys ending in `_prepared` in `additional_100g` and `additional_serving`, and prints them in "as prepared" sections. When a read returns only prepared figures, one more product read fetches the single as-sold set the record stores (`/api/v3.5` `fields=nutrition.input_sets`) and fills the named as-sold fields per 100 g, or per 100 ml for liquids, with no as-sold per-serving figure; `nutriments.stored_as_sold` reports `read`, `none` (the record stores no usable set), or `unread` with a `reason`, an `error`, and, when the failure named a wait, `retryAfter` in whole seconds (the call itself still succeeds). Other reads send nothing extra
57
57
  - `source` (`off_api` or `off_mirror`) names where the product was read; a barcode a [local mirror](#local-export-mirror) holds is read from it with no upstream request, with `mirror_as_of` (the time up to which the copy reflects every product contributed or edited on Open Food Facts) and a `mirror_snapshot` note, and the stored as-sold set comes from the same stored record
@@ -60,10 +60,12 @@ Packaged-food data from Open Food Facts, a crowd-sourced database of 3M+ product
60
60
 
61
61
  ### `off_search_products` <sub>tool</sub>
62
62
 
63
- - `query` (up to 24 words, all of which must match the name, generic name, categories, labels, or brand; punctuation separates words, so `milk-chocolate` requires both) plus the tag filters `categories_tag`, `brands_tag`, `labels_tag` (up to 10), `allergens_tag`, `traces_tag`, `ingredients_analysis_tag`, `additives_tag`, `nutrition_grade`, `nova_group`, `countries_tag`, the `exclude_allergens` / `exclude_traces` lists (up to 14 each), and up to 18 `nutrient_filters` (per 100 g, or per 100 ml for liquids), all combined as AND; optional `sort_by`
64
- - `page_size` defaults to 20 and is served at up to 50 per call; a larger value, with no ceiling, is served at 50 and flagged in `page_size_capped`, and `page` counts pages of 50. Rows carry `barcode`, `product_name`, `brands`, `nutriscore_grade`, `nova_group`, `ecoscore_grade`, and `categories_tags`, plus `total`, `total_is_lower_bound`, `last_page`, `omitted`, and `truncated` (more matches beyond this page). Exclusions add `exclusion_coverage`, since products with no allergen data entered pass them; `nutrient_filters` add `indexed_nutriments` (the index values the filters checked, which can differ from `off_get_product`)
63
+ - `query` (up to 24 words, all of which must match the name, generic name, categories, labels, or brand; punctuation separates words, so `milk-chocolate` requires both) plus the tag filters `categories_tag`, `brands_tag`, `labels_tag` (up to 10), `allergens_tag`, `traces_tag`, `ingredients_analysis_tag`, `ingredients_tag` (up to 10, all of which must appear), `additives_tag`, `nutrition_grade`, `nova_group`, `ecoscore_grade` (Green-Score), `countries_tag`, the `exclude_allergens` / `exclude_traces` lists (up to 14 each), and up to 18 `nutrient_filters` (per 100 g, or per 100 ml for liquids), all combined as AND; optional `sort_by`
64
+ - `nutrition_grade`, `nova_group`, and `ecoscore_grade` each take one grade or an array matching any of them (`["a", "b"]` for Nutri-Score B or better), where a `labels_tag` array requires all of its values; `ecoscore_grade` `a` excludes `a-plus`. A grade filter never changes which backend answers; on a text search it matches the grades the index holds, which each row shows. A tag-only `ecoscore_grade` search matches the grade Open Food Facts files for France, while each row shows the world grade
65
+ - `page_size` defaults to 20 and is served at up to 100 per call; a larger value, with no ceiling, is served at 100 and flagged in `page_size_capped`, and `page` counts pages of 100. Rows carry `barcode`, `product_name`, `brands`, `nutriscore_grade`, `nova_group`, `ecoscore_grade`, and `categories_tags`, plus `total`, `total_is_lower_bound`, `last_page`, `omitted`, and `truncated` (more matches beyond this page). Exclusions add `exclusion_coverage`, since products with no allergen data entered pass them; `nutrient_filters` add `indexed_nutriments` (the index values the filters checked, which can differ from `off_get_product`)
65
66
  - The text index compares `energy-kcal`, `fat`, `saturated-fat`, `carbohydrates`, and `sugars` as whole numbers (`sugars lte 3` returns a row at 3.53). A `nutrient_filters` search sends `gt` and `gte` on those five as `[floor(value) TO *]` so no match is lost, then checks every returned row against every constraint at the index's 32-bit precision. Rows that fail leave the page and count in `outside_constraints`, so a page can come back short or empty while later pages hold matches. `total`, `total_is_lower_bound`, and `last_page` describe the index's whole-number answer and still count those rows. A range inside one whole number (`sugars gt 3.9` and `lt 4`) can pass few of the 10,000 reachable rows; add `query` or tag filters to narrow it
66
- - `query` or `nutrient_filters` searches a text index that lags the live database (flagged in `text_index_snapshot`), reaches only the first 10,000 results, and rejects `additives_tag` as `additives_filter_needs_tag_search`; tag-only searches read the live database through page 10, unless a [local mirror](#local-export-mirror) serves them: with every tag value confirmed, a mirror-served search has an exact `total` and reaches its first 10,000 results. A page past any of these limits fails as `page_out_of_range`
67
+ - `ingredients_tag` takes canonical ingredient IDs (`en:inulin`; resolve one with `off_browse_taxonomy` facet `ingredients`, where IDs are singular), and each parsed ingredient also carries its taxonomy parents, so `en:vegetable` matches a product listing carrot. It is answered only by the text index, with or without `query`, since the mirror indexes no ingredients and the live tag path stops at page 10
68
+ - `query`, `nutrient_filters`, or `ingredients_tag` searches a text index that lags the live database (flagged in `text_index_snapshot`), reaches only the first 10,000 results, and rejects `additives_tag` as `additives_filter_needs_tag_search`; tag-only searches read the live database through page 10, unless a [local mirror](#local-export-mirror) serves them: with every tag value confirmed, a mirror-served search has an exact `total` and reaches its first 10,000 results, and one carrying `ecoscore_grade` is served only once a full reload of the mirror has indexed Green-Score. A page past any of these limits fails as `page_out_of_range`
67
69
  - `source` (`off_api` or `off_mirror`) names where the answer was read; from the mirror it also carries `mirror_as_of` and a `mirror_snapshot` note, and the default order and `sort_by` `popularity_key` and `unique_scans_n` follow the values stored with each record, which can differ from a live search, which ranks by its current scan counts
68
70
 
69
71
  ---
@@ -80,9 +82,9 @@ Packaged-food data from Open Food Facts, a crowd-sourced database of 3M+ product
80
82
 
81
83
  ### `off_browse_taxonomy` <sub>tool</sub>
82
84
 
83
- - `facet` is one of `categories`, `labels`, `allergens`, `additives`, `countries`, `nova_groups`, `nutrition_grades`; `search` matches a substring of the tag ID, name, or a synonym ("shellfish" → `en:crustaceans`); `limit` (default 20) returns up to 200 per call, with no input maximum (a larger value returns the first 200); a cut result says how many matched; no paging. Each lookup asks for up to 2,000 suggestions, above the largest answer measured (1,313), so an E-number term such as `e314` resolves to `en:e314` and the match count is exact below that size
85
+ - `facet` is one of `categories`, `labels`, `allergens`, `additives`, `countries`, `ingredients`, `nova_groups`, `nutrition_grades`; `search` matches a substring of the tag ID, name, or a synonym ("shellfish" → `en:crustaceans`), and the tag the term itself names (`US` → `en:united-states`) is listed first; `limit` (default 20) returns up to 200 per call, with no input maximum (a larger value returns the first 200); a cut result says how many matched; no paging. Each lookup asks for up to 2,000 suggestions, above the largest answer measured (1,313), so an E-number term such as `e314` resolves to `en:e314` and the match count is exact below that size
84
86
  - Returns `tags[]` of `id` and `name`, where `id` goes to `off_search_products` unchanged; `nova_groups` and `nutrition_grades` come back complete with `total_in_facet`
85
- - The five open facets resolve against the live Open Food Facts taxonomy and fall back to a small offline sample, with a `notice`, when it is unavailable; omitting `search` returns only that sample
87
+ - The six open facets resolve against the live Open Food Facts taxonomy. Five fall back to a small offline sample, with a `notice`, when it is unavailable, and omitting `search` returns only that sample. `ingredients` has no sample: it lists nothing without a `search` or when the lookup fails, and its IDs are singular (`oat` resolves to `en:oat`, `oats` to nothing)
86
88
 
87
89
  ## Features
88
90
 
@@ -156,7 +158,7 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
156
158
 
157
159
  ### Local development
158
160
 
159
- Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
161
+ Requires [Bun v1.4.4](https://bun.sh/) or higher (or Node.js v24+).
160
162
 
161
163
  - **Clone and install:**
162
164
 
@@ -196,7 +198,7 @@ The image defaults to HTTP transport, stateless session mode, and logs to `/var/
196
198
 
197
199
  #### Local export mirror
198
200
 
199
- Setting `OFF_MIRROR_PATH` keeps a local SQLite copy of the Open Food Facts export. `off_get_product` and `off_compare_products` read it first by barcode and read live for a barcode it lacks. A search by tag filters alone is served from it when every value is a confirmed tag or brand slug, with an exact `total` through its first 10,000 results; every other search is live. A store error falls through to a live read. The mirror scripts need a checkout or the Docker image, so the npm install and `.mcpb` bundle stay live-only.
201
+ Setting `OFF_MIRROR_PATH` keeps a local SQLite copy of the Open Food Facts export. `off_get_product` and `off_compare_products` read it first by barcode and read live for a barcode it lacks. A search by tag filters alone is served from it when every value is a confirmed tag or brand slug, with an exact `total` through its first 10,000 results, a search carrying `ecoscore_grade` only once a full reload has indexed Green-Score; every other search is live. A full product read of a row not yet rewritten by that reload is live too, since the row lacks `generic_name` and `nutrient_levels`; should that read fail or find no product, the row answers without them and `mirror_fields_unread` says why. A store error falls through to a live read. The mirror scripts need a checkout or the Docker image, so the npm install and `.mcpb` bundle stay live-only.
200
202
 
201
203
  In the image, mount a volume at the store directory, `/usr/src/app/.mirror`, set `OFF_MIRROR_PATH` to a file in it, and build the store once with `docker exec`:
202
204
 
@@ -212,7 +214,7 @@ docker exec openfoodfacts-mcp-server bun run mirror:verify # status plus SQLit
212
214
  docker exec openfoodfacts-mcp-server bun run mirror:refresh # one delta pass by hand
213
215
  ```
214
216
 
215
- A full `mirror:init` of the 4.9M-product export took about 1 h 48 min in testing, peaked at about 27 GB on the volume while the 13.4 GB download sat beside the store, left a 14.3 GB store, and used under 350 MB of memory. Reads stay live until `mirror:init` completes. Once `OFF_MIRROR_PATH` is set the server refreshes the mirror itself every three hours, at minute 30 of the server's local time: it applies each new daily delta, and reloads the whole export when the last full load is 30 days old and the export has changed since, because deltas never report deleted products. An export or delta line that is not valid JSON, or runs past 16 MiB, is skipped and logged by line number, and `mirror:status` prints how many the last full load skipped. An export that builds no product at all is refused before it deletes anything (`export_no_products`): the mirror keeps serving what it holds, and each refresh downloads the export again, applying no delta, until an export that lists products replaces it. While a reload runs, `mirror_as_of` can drop below the last delta's end, to a time the rewritten products reflect, until the load completes and the deltas re-apply. `mirror:status` and `mirror:verify` exit non-zero unless a sync has completed and the store holds products. From a checkout, run the same `bun run mirror:*` scripts with `OFF_MIRROR_PATH` set in `.env`.
217
+ A full `mirror:init` of the 4.9M-product export took about 1 h 48 min in testing, peaked at about 27 GB on the volume while the 13.4 GB download sat beside the store, left a 14.3 GB store, and used under 350 MB of memory. Reads stay live until `mirror:init` completes. Once `OFF_MIRROR_PATH` is set the server refreshes the mirror itself every three hours, at minute 30 of the server's local time: it applies each new daily delta, and reloads the whole export when the last full load is 30 days old and the export has changed since, because deltas never report deleted products, and whenever the last full load was built by an older record version, which a release changing what a record holds bumps. An export or delta line that is not valid JSON, or runs past 16 MiB, is skipped and logged by line number, and `mirror:status` prints how many the last full load skipped. An export that builds no product at all is refused before it deletes anything (`export_no_products`): the mirror keeps serving what it holds, and each refresh downloads the export again, applying no delta, until an export that lists products replaces it. While a reload runs, `mirror_as_of` can drop below the last delta's end, to a time the rewritten products reflect, until the load completes and the deltas re-apply. `mirror:status` and `mirror:verify` exit non-zero unless a sync has completed and the store holds products. From a checkout, run the same `bun run mirror:*` scripts with `OFF_MIRROR_PATH` set in `.env`.
216
218
 
217
219
  ## Project structure
218
220
 
@@ -0,0 +1,31 @@
1
+ ---
2
+ summary: "Grade filters take one value or a list and gain a Green-Score filter, off_search_products filters by ingredient, off_get_product returns generic_name and nutrient_levels, pages hold up to 100 results, and off_browse_taxonomy lists the tag a term names first."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.4.4 — 2026-11-08
8
+
9
+ ## Added
10
+
11
+ - **`nutrition_grade`, `nova_group`, `ecoscore_grade`** ([#85](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/85)): `off_search_products` takes one value or an any-of array for each, and `ecoscore_grade` (Green-Score) is a new filter. The mirror serves grade lists exactly and indexes Green-Score from record version 2, so a Green-Score search is served from it only after a full reload has indexed it.
12
+ - **`off_get_product` `generic_name` and `nutrient_levels`** ([#87](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/87)): what the product is, and Open Food Facts' low/moderate/high verdict on fat, saturated fat, sugars, and salt, with `basis` (`as_sold` or `prepared`) naming the figures it describes.
13
+ - **`mirror_fields_unread`** ([#87](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/87)): an `off_get_product` read asking for `generic_name` or `nutrient_levels` from a mirror row that predates them goes live; if that read fails or finds nothing, the stored row is served without them and this output field names which were not read and why.
14
+ - **`ingredients_tag` and the `ingredients` facet** ([#88](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/88)): `off_search_products` filters on canonical ingredient IDs, answered from the text index, and refuses `additives_tag`. `off_browse_taxonomy` `facet: "ingredients"` resolves them, live only, with no offline sample.
15
+
16
+ ## Changed
17
+
18
+ - **`page_size` cap 50 → 100** ([#86](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/86)): pages count at the size served, so `page_size: 100` with `page: 101` (results 10,001–10,100) is refused as `page_out_of_range`, where 0.4.3 served `page: 101` as results 5,001–5,050 at its cap of 50.
19
+ - **Mirror record version 2** ([#87](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/87)): a mirror runs a full reload of the export on its next refresh, even when the export is unchanged. Until that reload completes, a full `off_get_product` read of a row it has not yet rewritten reads live, spending a product lookup, and a tag-only search carrying `ecoscore_grade` reads live, so a page past 10 is refused as `page_out_of_range` naming `ecoscore_grade`.
20
+ - **`text_index_snapshot`** ([#85](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/85)): a text-path search carrying a grade filter says the grades are the index's, single grades included.
21
+ - **Green-Score label**: the `off_get_product` scores line and the `off_compare_products` Scores table label the grade "Green-Score", where they said "Eco-Score".
22
+
23
+ ## Fixed
24
+
25
+ - **`off_browse_taxonomy` `search`** ([#84](https://github.com/cyanheads/openfoodfacts-mcp-server/issues/84)): the tag the term itself names (`US` → `en:united-states`) is listed first, and is added when the substring rule admits neither its ID nor its name (`plant based milk alternatives`), so a small `limit` no longer cuts it.
26
+
27
+ ## Dependencies
28
+
29
+ - **`@cyanheads/mcp-ts-core`** ^0.13.18 → ^0.13.22. The mirror sync hands the framework's runner a store without its own `syncLease`, keeping every page write behind the server's mirror lock, and a connection dropped mid-body, now reported as a wrapped network error, still maps to the retryable `upstream_error`.
30
+ - **`engines.bun`** >=1.4.0 → >=1.4.4 (the framework's SQLite mirror store requires it).
31
+ - **`@biomejs/biome`** ^2.6.4 → ^2.6.6, **`vitest`** ^5.0.5 → ^5.1.0.
@@ -116,14 +116,21 @@ security: false
116
116
  resolves to whatever real item already owns 42, and timeline previews pull
117
117
  in that unrelated item's metadata.
118
118
 
119
+ Outside reporters: when the issue or PR came from outside the project
120
+ (`git-wrapup` step 5 says how to tell), thank its author in the same
121
+ parenthetical, profile linked by full URL for the same reason:
122
+
123
+ ([#38](https://github.com/cyanheads/mcp-ts-core/issues/38), thanks [@octocat](https://github.com/octocat)!)
124
+
119
125
  TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
120
126
  via `gh release create --notes-from-tag`. It is a condensed digest of this
121
127
  entry, never a copy, and its format is owned by the `release-and-publish`
122
128
  skill (step 4, "Create the annotated tag"): a short subject line without the
123
129
  version, flat headline bullets — no Keep-a-Changelog section headers, no
124
- gates line — at most one deps line, issue backlinks, and the changelog link
125
- last. In release-PR mode the `git-wrapup` skill authors those bullets as the
126
- PR body's `## Changes` and the tag copies them.
130
+ gates line — at most one deps line, issue backlinks with any outside-reporter
131
+ thanks, and the changelog link last. In release-PR mode the `git-wrapup`
132
+ skill authors those bullets as the PR body's `## Changes` and the tag copies
133
+ them.
127
134
  -->
128
135
 
129
136
  ## Added
@@ -9,6 +9,7 @@ export declare const offBrowseTaxonomyTool: import("@cyanheads/mcp-ts-core").Too
9
9
  allergens: "allergens";
10
10
  categories: "categories";
11
11
  countries: "countries";
12
+ ingredients: "ingredients";
12
13
  labels: "labels";
13
14
  nova_groups: "nova_groups";
14
15
  nutrition_grades: "nutrition_grades";
@@ -1 +1 @@
1
- {"version":3,"file":"browse-taxonomy.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-taxonomy.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAUjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA6KhC,CAAC"}
1
+ {"version":3,"file":"browse-taxonomy.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-taxonomy.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAUjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;EA8KhC,CAAC"}
@@ -12,7 +12,7 @@ import { mdInline, mdInlineCode } from '../../../utils/markdown.js';
12
12
  const TAXONOMY_LIMIT_CAP = 200;
13
13
  export const offBrowseTaxonomyTool = tool('off_browse_taxonomy', {
14
14
  title: 'Browse Food Facts Taxonomy',
15
- description: 'Resolve a human term to the canonical Open Food Facts tag ID that off_search_products filters on. Covers categories, labels/certifications, allergens, additives, countries, NOVA groups, and Nutri-Score grades. Pass a search term to resolve against the Open Food Facts vocabulary, which holds tens of thousands of tags; omitting it returns only a small reference list for each facet except NOVA groups and Nutri-Score grades, which are complete. Most tag IDs use the "en:" prefix (e.g. "en:organic", "en:no-gluten", "en:crustaceans"); NOVA groups return bare digits "1"-"4" and Nutri-Score grades bare letters "a"-"e". Pass the id through to off_search_products exactly as returned. Category tags are frequently plural ("kombucha" resolves to "en:kombuchas"), so use the returned id rather than constructing one.',
15
+ description: 'Resolve a human term to the canonical Open Food Facts tag ID that off_search_products filters on. Covers categories, labels/certifications, allergens, additives, countries, ingredients, NOVA groups, and Nutri-Score grades. Pass a search term to resolve against the Open Food Facts vocabulary, which holds tens of thousands of tags; omitting it returns only a small reference list for each facet except NOVA groups and Nutri-Score grades, which are complete, and ingredients, which has no reference list and returns nothing. Most tag IDs use the "en:" prefix (e.g. "en:organic", "en:no-gluten", "en:crustaceans"); NOVA groups return bare digits "1"-"4" and Nutri-Score grades bare letters "a"-"e". Pass the id through to off_search_products exactly as returned. Category tags are frequently plural ("kombucha" resolves to "en:kombuchas") and ingredient tags singular ("oat" resolves to "en:oat", "oats" to nothing), so use the returned id rather than constructing one.',
16
16
  annotations: {
17
17
  readOnlyHint: true,
18
18
  idempotentHint: true,
@@ -26,14 +26,15 @@ export const offBrowseTaxonomyTool = tool('off_browse_taxonomy', {
26
26
  'allergens',
27
27
  'additives',
28
28
  'countries',
29
+ 'ingredients',
29
30
  'nova_groups',
30
31
  'nutrition_grades',
31
32
  ])
32
- .describe('"categories" covers food categories (en:cheeses, en:breakfast-cereals). "labels" covers certifications (en:organic, en:fair-trade). "allergens" covers declared allergens (en:milk, en:gluten). "additives" covers E-numbers (en:e322). "countries" covers country-of-sale tags (en:france). "nova_groups" and "nutrition_grades" are closed vocabularies returned complete; the other five are resolved against the Open Food Facts taxonomy.'),
33
+ .describe('"categories" covers food categories (en:cheeses, en:breakfast-cereals). "labels" covers certifications (en:organic, en:fair-trade). "allergens" covers declared allergens (en:milk, en:gluten). "additives" covers E-numbers (en:e322). "countries" covers country-of-sale tags (en:france). "ingredients" covers the ingredients Open Food Facts parses from ingredient lists (en:inulin, en:oat); it has no reference list, so pass a search term. "nova_groups" and "nutrition_grades" are closed vocabularies returned complete; the other six are resolved against the Open Food Facts taxonomy.'),
33
34
  search: z
34
35
  .string()
35
36
  .optional()
36
- .describe('Term to resolve. Matched case-insensitively as a substring of the tag ID, the display name, or a common synonym of either ("shellfish" resolves to en:crustaceans, "gluten free" to en:no-gluten). A single word works best ("hummus", not "hummus dip"). Omit only to see a small reference list — Open Food Facts cannot list the full vocabulary without a term, so an unfiltered call is not a view of the full facet.'),
37
+ .describe('Term to resolve. Matched case-insensitively as a substring of the tag ID, the display name, or a common synonym of either ("shellfish" resolves to en:crustaceans, "gluten free" to en:no-gluten); the tag the term itself names leads the list even when neither its ID nor its name contains the term as typed ("plant based milk alternatives" → en:plant-based-milk-alternatives). A single word works best ("hummus", not "hummus dip"). Omit only to see a small reference list (none for ingredients) — Open Food Facts cannot list the full vocabulary without a term, so an unfiltered call is not a view of the full facet.'),
37
38
  // `.int()` would advertise a `maximum` of 2^53 - 1 for a value the handler clamps to the cap.
38
39
  limit: z
39
40
  .number()
@@ -46,7 +47,7 @@ export const offBrowseTaxonomyTool = tool('off_browse_taxonomy', {
46
47
  })
47
48
  .min(1)
48
49
  .default(20)
49
- .describe(`Maximum entries to return (default 20). One call returns at most ${TAXONOMY_LIMIT_CAP}: a larger value returns the first ${TAXONOMY_LIMIT_CAP} and, when more matched, says how many did. There is no offset or page input: Open Food Facts offers no cursor for this lookup, so narrow the search term rather than paging. The tag spelling the term itself (e.g. "lentil" → en:lentils) is listed first among the live matches, so it is not the one a small limit cuts.`),
50
+ .describe(`Maximum entries to return (default 20). One call returns at most ${TAXONOMY_LIMIT_CAP}: a larger value returns the first ${TAXONOMY_LIMIT_CAP} and, when more matched, says how many did. There is no offset or page input: Open Food Facts offers no cursor for this lookup, so narrow the search term rather than paging. The tag the term itself names (e.g. "lentil" → en:lentils, "US" → en:united-states) is listed first, so it is not the one a small limit cuts.`),
50
51
  }),
51
52
  output: z.object({
52
53
  facet: z.string().describe('The facet name that was queried (echoes the input).'),
@@ -69,7 +70,7 @@ export const offBrowseTaxonomyTool = tool('off_browse_taxonomy', {
69
70
  notice: z
70
71
  .string()
71
72
  .optional()
72
- .describe(`Caveat about the answer — that the listing is a limited reference list rather than the full vocabulary, that the live vocabulary went unchecked and why (unreachable or no usable answer, Open Food Facts rate-limiting this server, or this server's own taxonomy budget spent, with the wait in seconds when one is known), that nothing matched and why, or that the limit cut matches, naming how many matched and the next call: a larger limit while one would list more, otherwise a narrower term, which is the only route past the first ${TAXONOMY_LIMIT_CAP} (a limit above ${TAXONOMY_LIMIT_CAP} is named too).`),
73
+ .describe(`Caveat about the answer — that the listing is a limited reference list rather than the full vocabulary, or that ingredients, which has none, needs a search term, that the live vocabulary went unchecked and why (unreachable or no usable answer, Open Food Facts rate-limiting this server, or this server's own taxonomy budget spent, with the wait in seconds when one is known), that nothing matched and why, or that the limit cut matches, naming how many matched and the next call: a larger limit while one would list more, otherwise a narrower term, which is the only route past the first ${TAXONOMY_LIMIT_CAP} (a limit above ${TAXONOMY_LIMIT_CAP} is named too).`),
73
74
  truncated: z.boolean().optional().describe('True when more tags exist beyond the limit.'),
74
75
  shown: z.number().optional().describe('Number of tags returned.'),
75
76
  cap: z
@@ -1 +1 @@
1
- {"version":3,"file":"browse-taxonomy.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-taxonomy.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAc,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;GAGG;AACH,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE;IAC/D,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,6yBAA6yB;IAC/yB,WAAW,EAAE;QACX,YAAY,EAA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Q,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC;QAED,KAAK,CAAC,IAAI,CACR,qKAAqK,CACtK,CAAC;QAEF,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"browse-taxonomy.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browse-taxonomy.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;GAGG;AACH,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE;IAC/D,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,y8BAAy8B;IAC38B,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;KACpB;IAED,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC;aACL,IAAI,CAAC;YACJ,YAAY;YACZ,QAAQ;YACR,WAAW;YACX,WAAW;YACX,WAAW;YACX,aAAa;YACb,aAAa;YACb,kBAAkB;SACnB,CAAC;aACD,QAAQ,CACP,ukBAAukB,CACxkB;QACH,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,umBAAumB,CACxmB;QACH,8FAA8F;QAC9F,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,UAAU,CAAC,CAAC,EAAE,qDAAqD,C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,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;SACtF,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,KAAK,GAAa;YACtB,MAAM,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,WAAW,MAAM,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,cAAc,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK;SACzI,CAAC;QAEF,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7B,0FAA0F;YAC1F,sFAAsF;YACtF,KAAK,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;YAC/C,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAC9B,6FAA6F;YAC7F,wEAAwE;YACxE,KAAK,CAAC,IAAI,CAAC,KAAK,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC;QAED,KAAK,CAAC,IAAI,CACR,qKAAqK,CACtK,CAAC;QAEF,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
@@ -528,8 +528,8 @@ export const offCompareProductsTool = tool('off_compare_products', {
528
528
  }
529
529
  // Scores table — includes all products with found status
530
530
  lines.push('### Scores');
531
- lines.push('| Product | Barcode | Found | Nutri-Score | NOVA | Eco-Score | Completeness |');
532
- lines.push('|:--------|:--------|:------|:------------|:-----|:----------|:-------------|');
531
+ lines.push('| Product | Barcode | Found | Nutri-Score | NOVA | Green-Score | Completeness |');
532
+ lines.push('|:--------|:--------|:------|:------------|:-----|:------------|:-------------|');
533
533
  for (const p of result.products) {
534
534
  const name = rowLabel(p);
535
535
  // The exact scalar rides alongside the rounded percentage: 0.7875 and 0.79 both render as
@@ -1 +1 @@
1
- {"version":3,"file":"compare-products.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/compare-products.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,qBAAqB,EAErB,WAAW,GACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,GAIxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,uBAAuB,GAGxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,uEAAuE;AACvE,MAAM,cAAc,GAClB,wFAAwF,CAAC;AAE3F;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,gGAAgG;AAChG,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,KAAK,KAAK,CAAC;QAChB,CAAC,CAAC,mHAAmH;QACrH,CAAC,CAAC,4DAA4D,mBAAmB,sBAAsB,CAAC;AAC5G,CAAC;AAED;;;;GAIG;AACH,MAAM,iBAAiB,GAAG;IACxB;QACE,GAAG,EAAE,kBAAkB;QACvB,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,eAAe;QACvB,OAAO,EAAE,gBAAgB;KAC1B;IACD,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,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,CAAC,CAAC,EAAE,CAAC;QAChF,2FAA2F;QAC3F,MAAM,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrE,KAAK,CAAC,IAAI,CACR,EAAE,EACF,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EACrE,2DAA2D,OAAO,sBAAsB,CACzF,CAAC;QAEF,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"compare-products.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/compare-products.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,qBAAqB,EAErB,WAAW,GACZ,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,GAIxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,uBAAuB,GAGxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,uEAAuE;AACvE,MAAM,cAAc,GAClB,wFAAwF,CAAC;AAE3F;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B,gGAAgG;AAChG,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,KAAK,KAAK,C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C,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,KAAK,CAAC,IAAI,CACR,gCAAgC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iCAAiC,CAC1G,CAAC;QACJ,CAAC;QAED,4FAA4F;QAC5F,8BAA8B;QAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,EAAE,CAAC;QAChF,2FAA2F;QAC3F,MAAM,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrE,KAAK,CAAC,IAAI,CACR,EAAE,EACF,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EACrE,2DAA2D,OAAO,sBAAsB,CACzF,CAAC;QAEF,OAAO,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
@@ -15,12 +15,14 @@ export declare const offGetProductTool: import("@cyanheads/mcp-ts-core").ToolDef
15
15
  countries_tags: "countries_tags";
16
16
  data_quality_tags: "data_quality_tags";
17
17
  ecoscore_grade: "ecoscore_grade";
18
+ generic_name: "generic_name";
18
19
  image_url: "image_url";
19
20
  ingredients: "ingredients";
20
21
  ingredients_analysis_tags: "ingredients_analysis_tags";
21
22
  ingredients_text: "ingredients_text";
22
23
  labels_tags: "labels_tags";
23
24
  nova_group: "nova_group";
25
+ nutrient_levels: "nutrient_levels";
24
26
  nutriments: "nutriments";
25
27
  nutriscore_grade: "nutriscore_grade";
26
28
  origins_tags: "origins_tags";
@@ -36,6 +38,7 @@ export declare const offGetProductTool: import("@cyanheads/mcp-ts-core").ToolDef
36
38
  barcode: z.ZodString;
37
39
  product: z.ZodObject<{
38
40
  product_name: z.ZodOptional<z.ZodString>;
41
+ generic_name: z.ZodOptional<z.ZodString>;
39
42
  brands: z.ZodOptional<z.ZodString>;
40
43
  quantity: z.ZodOptional<z.ZodString>;
41
44
  ingredients_text: z.ZodOptional<z.ZodString>;
@@ -67,6 +70,16 @@ export declare const offGetProductTool: import("@cyanheads/mcp-ts-core").ToolDef
67
70
  nutriscore_grade: z.ZodOptional<z.ZodString>;
68
71
  nova_group: z.ZodOptional<z.ZodNumber>;
69
72
  ecoscore_grade: z.ZodOptional<z.ZodString>;
73
+ nutrient_levels: z.ZodOptional<z.ZodObject<{
74
+ basis: z.ZodEnum<{
75
+ as_sold: "as_sold";
76
+ prepared: "prepared";
77
+ }>;
78
+ fat: z.ZodOptional<z.ZodString>;
79
+ saturated_fat: z.ZodOptional<z.ZodString>;
80
+ sugars: z.ZodOptional<z.ZodString>;
81
+ salt: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>>;
70
83
  nutriments: z.ZodOptional<z.ZodObject<{
71
84
  energy_kcal_100g: z.ZodOptional<z.ZodNumber>;
72
85
  fat_100g: z.ZodOptional<z.ZodNumber>;
@@ -117,6 +130,7 @@ export declare const offGetProductTool: import("@cyanheads/mcp-ts-core").ToolDef
117
130
  off_mirror: "off_mirror";
118
131
  }>;
119
132
  mirror_as_of: z.ZodOptional<z.ZodString>;
133
+ mirror_fields_unread: z.ZodOptional<z.ZodString>;
120
134
  }, z.core.$strip>, readonly [{
121
135
  readonly reason: "not_found";
122
136
  readonly code: JsonRpcErrorCode.NotFound;
@@ -1 +1 @@
1
- {"version":3,"file":"get-product.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-product.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4XjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4nB5B,CAAC"}
1
+ {"version":3,"file":"get-product.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-product.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAucjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAspB5B,CAAC"}