@ferscloud/fers-mcp 2.107.0 → 2.109.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/dist/fers-mcp.cjs +24 -16
- package/package.json +2 -2
package/dist/fers-mcp.cjs
CHANGED
|
@@ -21940,7 +21940,7 @@ var openapi_default = {
|
|
|
21940
21940
|
name: "PolyForm-Strict-1.0.0",
|
|
21941
21941
|
url: "https://polyformproject.org/licenses/strict/1.0.0"
|
|
21942
21942
|
},
|
|
21943
|
-
version: "0.2.
|
|
21943
|
+
version: "0.2.109"
|
|
21944
21944
|
},
|
|
21945
21945
|
paths: {},
|
|
21946
21946
|
components: {
|
|
@@ -27917,6 +27917,15 @@ class PdeltaMode(Enum):
|
|
|
27917
27917
|
type: "boolean",
|
|
27918
27918
|
description: "Whether the solve converged. Linear solves report `true`. A second-order\nsolve whose displacement stopped changing is accepted at any residual,\nbut reports `false` once that residual is more than a hundred times the\ntolerance; the warning `second_order_residual_floor` then says how far\nfrom equilibrium it stopped and why. It also reports `false` when the\ntension/compression active set froze (warning `active_set_frozen`)."
|
|
27919
27919
|
},
|
|
27920
|
+
curve_secant_iterations: {
|
|
27921
|
+
type: [
|
|
27922
|
+
"integer",
|
|
27923
|
+
"null"
|
|
27924
|
+
],
|
|
27925
|
+
format: "int32",
|
|
27926
|
+
description: "Present on a first-order (`\"Linear\"`) result of a model with stiffness\ncurves: on supports, or on member hinges (stiffness curves and\nmoment\u2013rotation diagrams). This set was solved at its own load, not the\nfactored sum of its load cases: each curve was iterated to its secant\nunder this set's load, so the results of a combination are not the\nsum of its load cases' results. The number is the secant passes that\ntook, counting every load step and a one-step attempt that was given\nup. Absent for every other result.",
|
|
27927
|
+
minimum: 0
|
|
27928
|
+
},
|
|
27920
27929
|
iterations: {
|
|
27921
27930
|
type: [
|
|
27922
27931
|
"integer",
|
|
@@ -84617,6 +84626,7 @@ function idSelector(raw, label, everything) {
|
|
|
84617
84626
|
return { ok: false, error: `${label} is empty \u2014 nothing to change.` };
|
|
84618
84627
|
return { ok: true, ids: [...new Set(ids)] };
|
|
84619
84628
|
}
|
|
84629
|
+
var CURVE_UNDER_LINEAR_NOTE = "analysis.options.order is LINEAR: each load case and each combination is solved at its own load with the curve iterated to its secant, so the results do not superpose (a combination is not the sum of its load cases; results.<set>.solver_diagnostics.curve_secant_iterations marks them). Set order NONLINEAR for second-order effects as well.";
|
|
84620
84630
|
function parseCurve(raw, label, drivers) {
|
|
84621
84631
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
84622
84632
|
return {
|
|
@@ -84761,7 +84771,7 @@ THERE IS NO "FREE BY OMISSION". Once a node references a support, any DOF you le
|
|
|
84761
84771
|
|
|
84762
84772
|
ONE-WAY SUPPORTS have a prerequisite this tool checks for you: analysis.options.rigid_strategy must be RigidMember (LinearMpc is a hard validation error). Tension/Compression members are fine alongside them from engine 0.2.65 -- before that the combination was refused at validation, so if you are reading advice written against an older engine, that restriction is gone. There is also a SILENT prerequisite \u2014 the release tolerance is 0.5*axial_slack in force units, so a coarse axial_slack leaves the DOF engaged while still reporting its reaction as 0, and the printed reactions stop summing to the applied load. This tool lowers axial_slack to 1e-3 when it writes a one-way condition (set keep_axial_slack to skip that). Beware that a support which lifts off can leave the structure unrestrained, and that a one-way support can break an eigen solve if the model also has a modal or buckling block.
|
|
84763
84773
|
|
|
84764
|
-
Reactions use ONE SIGN CONVENTION for every support type from engine 0.2.60: each row is the force the support applies to the structure, so reactions can be summed against the applied load without checking which kind of support produced each one. (Up to 0.2.59 a Spring DOF reported the spring force k*u, the negative of what a Fixed DOF reported for the same physical situation. If you are reading results solved on an older engine, that flip is still in them.) A stiffness curve (stiffness_curves) makes the spring load-dependent
|
|
84774
|
+
Reactions use ONE SIGN CONVENTION for every support type from engine 0.2.60: each row is the force the support applies to the structure, so reactions can be summed against the applied load without checking which kind of support produced each one. (Up to 0.2.59 a Spring DOF reported the spring force k*u, the negative of what a Fixed DOF reported for the same physical situation. If you are reading results solved on an older engine, that flip is still in them.) A stiffness curve (stiffness_curves) makes the spring load-dependent and forces the DOF to Spring. Under a LINEAR order (engine 0.2.108 and later) each load case and combination is solved at its own load with the curve iterated to its secant, so results do not superpose: a combination is not the sum of its load cases. NONLINEAR adds second-order effects on top. Note its driver is the EXTERNAL nodal load at that node, not the reaction, so a base-plate curve with no direct nodal load degenerates to the first point's stiffness.`;
|
|
84765
84775
|
function setSupport(args) {
|
|
84766
84776
|
const parsed = parseModel(args.model);
|
|
84767
84777
|
if (!parsed.ok) return parsed;
|
|
@@ -84944,12 +84954,8 @@ function setSupport(args) {
|
|
|
84944
84954
|
);
|
|
84945
84955
|
}
|
|
84946
84956
|
if (curveArg.value != null) {
|
|
84947
|
-
|
|
84948
|
-
|
|
84949
|
-
options.order = "NONLINEAR";
|
|
84950
|
-
notes.push(
|
|
84951
|
-
'analysis.options.order set to "NONLINEAR": a StiffnessCurve support condition is a hard error under a linear order ("StiffnessCurve support conditions require NonLinear (second-order) analysis order").'
|
|
84952
|
-
);
|
|
84957
|
+
if (String(options.order ?? "").toLowerCase() !== "nonlinear") {
|
|
84958
|
+
notes.push(CURVE_UNDER_LINEAR_NOTE);
|
|
84953
84959
|
}
|
|
84954
84960
|
notes.push(
|
|
84955
84961
|
"A support stiffness curve is driven by the EXTERNAL nodal load at that node, not by the reaction. With no nodal load applied directly at the supported node the curve degenerates to points[0] stiffness for every load level."
|
|
@@ -85369,10 +85375,7 @@ function setMember(args) {
|
|
|
85369
85375
|
(r) => r && Object.keys(CURVE_FIELDS).some((d) => r.hinge[CURVE_FIELDS[d]] != null)
|
|
85370
85376
|
);
|
|
85371
85377
|
if (hasHingeCurve && String(options.order ?? "").toLowerCase() !== "nonlinear") {
|
|
85372
|
-
|
|
85373
|
-
notes.push(
|
|
85374
|
-
'analysis.options.order set to "NONLINEAR": a StiffnessCurve member hinge is a hard error under a linear order ("StiffnessCurve member hinges require NonLinear (second-order) analysis order").'
|
|
85375
|
-
);
|
|
85378
|
+
notes.push(CURVE_UNDER_LINEAR_NOTE);
|
|
85376
85379
|
}
|
|
85377
85380
|
let loweredFrom;
|
|
85378
85381
|
const hasAxialType = targets.some(
|
|
@@ -87102,9 +87105,12 @@ function sandboxRecipe(a) {
|
|
|
87102
87105
|
const inline = a.modelJson !== void 0 && bytes <= INLINE_MODEL_MAX_BYTES;
|
|
87103
87106
|
const source = a.modelJson === void 0 ? "Save the model JSON you passed to this tool as model.json." : inline ? "Save `model` below as model.json." : `The model is ${Math.ceil(bytes / 1024)} kB, too large to send here: rebuild it in the sandbox, or use open_url.`;
|
|
87104
87107
|
const run = a.checks ? "fers check model.json: each check's utilization and a verdict. Exit 0: every check passes; 6: one fails; 5: nothing decided, not a pass; 4: do not use the numbers." : "fers solve model.json --out results.json, then read results.loadcases / results.loadcombinations by name. Exit 4: do not use the numbers.";
|
|
87108
|
+
const resize = a.resizeGrade === void 0 ? [] : [
|
|
87109
|
+
`Another section: fers sections get <NAME> --material ${a.resizeGrade} --json, copy its values over the matching keys of model.sections[0] (keep id and material), check again. Deflection under the characteristic load: fers check model.json --out out.json, then results.loadcases.Q.member_results["1"].member_displacement_peak.displacement in out.json (m).`
|
|
87110
|
+
];
|
|
87105
87111
|
return {
|
|
87106
87112
|
when: "You can run Python with internet access (Claude's code execution, a terminal): solve there and quote the numbers in the chat.",
|
|
87107
|
-
steps: ['pip install "FERS>=0.2"', source, run],
|
|
87113
|
+
steps: ['pip install "FERS>=0.2"', source, run, ...resize],
|
|
87108
87114
|
...inline ? { model: JSON.parse(a.modelJson) } : {}
|
|
87109
87115
|
};
|
|
87110
87116
|
}
|
|
@@ -87146,7 +87152,7 @@ function shareSlugOf(urlOrSlug) {
|
|
|
87146
87152
|
|
|
87147
87153
|
// src/lib/mcp-core/server.ts
|
|
87148
87154
|
var isDraftRef = (x) => typeof x === "string" && x.startsWith("draft_");
|
|
87149
|
-
var SERVER_VERSION = "2.
|
|
87155
|
+
var SERVER_VERSION = "2.109.0";
|
|
87150
87156
|
function tooLarge(model) {
|
|
87151
87157
|
return typeof model !== "string" || model.length > MODEL_JSON_MAX_BYTES;
|
|
87152
87158
|
}
|
|
@@ -87464,7 +87470,8 @@ function createFersMcpServer(ctx, deps) {
|
|
|
87464
87470
|
members: countMembers(modelJson),
|
|
87465
87471
|
validation: opts.validation,
|
|
87466
87472
|
modelJson: opts.agentHasModel ? void 0 : modelJson,
|
|
87467
|
-
checks: opts.checks
|
|
87473
|
+
checks: opts.checks,
|
|
87474
|
+
resizeGrade: opts.resizeGrade
|
|
87468
87475
|
})
|
|
87469
87476
|
);
|
|
87470
87477
|
};
|
|
@@ -87703,7 +87710,8 @@ function createFersMcpServer(ctx, deps) {
|
|
|
87703
87710
|
modelJson,
|
|
87704
87711
|
`check_beam ${args.section} ${span} m`,
|
|
87705
87712
|
{
|
|
87706
|
-
checks: true
|
|
87713
|
+
checks: true,
|
|
87714
|
+
resizeGrade: (material2 ?? "steel_S235").replace(/^steel_/, "")
|
|
87707
87715
|
}
|
|
87708
87716
|
);
|
|
87709
87717
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferscloud/fers-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.109.0",
|
|
4
4
|
"description": "FERS structural finite-element tools for MCP clients (Claude Desktop, Claude Code, Cursor, VS Code, Codex, ChatGPT desktop), solving on your own machine.",
|
|
5
5
|
"mcpName": "com.ferscloud/fers",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ferscloud/fers-calculation": "0.2.
|
|
33
|
+
"@ferscloud/fers-calculation": "0.2.109"
|
|
34
34
|
}
|
|
35
35
|
}
|