formlab-mcp 0.7.6 → 0.7.7
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/package.json +1 -1
- package/server.json +2 -2
- package/vendor/fragrance.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "formlab-mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"mcpName": "io.github.juliu1980/formlab-mcp",
|
|
5
5
|
"description": "Read-only Model Context Protocol server for FormLab. Lets Claude and other MCP clients read and analyze your FormLab data, from a local export file or your live cloud workspace.",
|
|
6
6
|
"homepage": "https://formvix.com/mcp",
|
package/server.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.juliu1980/formlab-mcp",
|
|
4
4
|
"description": "Read-only MCP server for FormLab formulation data: a local export file or your live cloud workspace.",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.7",
|
|
6
6
|
"websiteUrl": "https://formvix.com/mcp",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "formlab-mcp",
|
|
11
|
-
"version": "0.7.
|
|
11
|
+
"version": "0.7.7",
|
|
12
12
|
"runtimeHint": "npx",
|
|
13
13
|
"transport": {
|
|
14
14
|
"type": "stdio"
|
package/vendor/fragrance.js
CHANGED
|
@@ -278,7 +278,8 @@ function flFrCompute(f, opts) {
|
|
|
278
278
|
const st = { ..._frgSettings(f), ...(opts || {}) };
|
|
279
279
|
// What-if values get the same checks as stored ones.
|
|
280
280
|
st.category = FL_FR_CATEGORIES.includes(String(st.category || '').toUpperCase()) ? String(st.category).toUpperCase() : '';
|
|
281
|
-
|
|
281
|
+
// Category 12 has no product use: a use kept from another category is ignored, not shown (2 Dec: 11A, leave-on, then 12).
|
|
282
|
+
st.use = _frgIsUse(st.use) && _frgUseApplies(st.category) ? st.use : '';
|
|
282
283
|
st.dosage = _frgNum(st.dosage) > 0 && _frgNum(st.dosage) <= FL_FR_DOSAGE_MAX ? _frgNum(st.dosage) : 100;
|
|
283
284
|
const out = { has: false, category: st.category, use: st.use, dosage: st.dosage, rootOil: false, rows: [], others: [], noLimit: [], noDecl: [],
|
|
284
285
|
noSource: [], unresolved: 0, max: [], allergens: [], unlisted: [], toLabel: [], over: [], verdict: 'setup', why: [], useApplies: _frgUseApplies(st.category) };
|
|
@@ -799,7 +800,7 @@ function flFrOverviewHtml(f) {
|
|
|
799
800
|
}
|
|
800
801
|
return `<div id="fr-overview" style="display:contents">
|
|
801
802
|
${st.category ? `<div class="detail-field"><div class="label">IFRA category</div><div class="value">${_frgEsc(_frgCatText(st.category))}</div></div>` : ''}
|
|
802
|
-
${st.use ? `<div class="detail-field"><div class="label">Product use</div><div class="value">${FL_FR_USES[st.use]}</div></div>` : ''}
|
|
803
|
+
${st.use && _frgUseApplies(st.category) ? `<div class="detail-field"><div class="label">Product use</div><div class="value">${FL_FR_USES[st.use]}</div></div>` : ''}
|
|
803
804
|
${st.dosage !== 100 ? `<div class="detail-field"><div class="label">Fragrance dosage</div><div class="value">${_frgPct(st.dosage)}% in the product</div></div>` : ''}
|
|
804
805
|
${line}</div>`;
|
|
805
806
|
}
|