@ferscloud/fers-mcp 2.106.0 → 2.108.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 +36 -14
- 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.108"
|
|
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",
|
|
@@ -82388,11 +82397,30 @@ var VALIDATION_REWRITES = [
|
|
|
82388
82397
|
rewrite: "a member references a node that no longer exists \u2014 check Structure \u2192 Members"
|
|
82389
82398
|
}
|
|
82390
82399
|
];
|
|
82391
|
-
function classifySolverError(err) {
|
|
82400
|
+
function classifySolverError(err, model) {
|
|
82392
82401
|
const code = err?.code ?? "";
|
|
82393
82402
|
const message = err instanceof Error ? err.message : String(err ?? "");
|
|
82394
82403
|
const lower = message.toLowerCase();
|
|
82395
82404
|
const fatalTrap = lower.includes("unreachable") || lower.includes("runtimeerror") || lower.includes("recursion") || lower.includes("memory access") || lower.includes("out of bounds");
|
|
82405
|
+
if (code === "OutOfMemory") {
|
|
82406
|
+
const advice = "It is too large to calculate in the browser: use a coarser mesh or fewer nodes, then calculate again.";
|
|
82407
|
+
if (model?.nodes) {
|
|
82408
|
+
return {
|
|
82409
|
+
kind: "trap",
|
|
82410
|
+
fatalTrap: true,
|
|
82411
|
+
messageKey: "solverError.outOfMemoryNodes",
|
|
82412
|
+
// A number: the translations format it for their own locale.
|
|
82413
|
+
messageParams: { nodes: model.nodes },
|
|
82414
|
+
message: `The solver ran out of memory on this model (${model.nodes.toLocaleString("en-US")} nodes) and was reset. ${advice}`
|
|
82415
|
+
};
|
|
82416
|
+
}
|
|
82417
|
+
return {
|
|
82418
|
+
kind: "trap",
|
|
82419
|
+
fatalTrap: true,
|
|
82420
|
+
messageKey: "solverError.outOfMemory",
|
|
82421
|
+
message: `The solver ran out of memory on this model and was reset. ${advice}`
|
|
82422
|
+
};
|
|
82423
|
+
}
|
|
82396
82424
|
if (code === "Timeout") {
|
|
82397
82425
|
return {
|
|
82398
82426
|
kind: "timeout",
|
|
@@ -84598,6 +84626,7 @@ function idSelector(raw, label, everything) {
|
|
|
84598
84626
|
return { ok: false, error: `${label} is empty \u2014 nothing to change.` };
|
|
84599
84627
|
return { ok: true, ids: [...new Set(ids)] };
|
|
84600
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.";
|
|
84601
84630
|
function parseCurve(raw, label, drivers) {
|
|
84602
84631
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
84603
84632
|
return {
|
|
@@ -84742,7 +84771,7 @@ THERE IS NO "FREE BY OMISSION". Once a node references a support, any DOF you le
|
|
|
84742
84771
|
|
|
84743
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.
|
|
84744
84773
|
|
|
84745
|
-
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.`;
|
|
84746
84775
|
function setSupport(args) {
|
|
84747
84776
|
const parsed = parseModel(args.model);
|
|
84748
84777
|
if (!parsed.ok) return parsed;
|
|
@@ -84925,12 +84954,8 @@ function setSupport(args) {
|
|
|
84925
84954
|
);
|
|
84926
84955
|
}
|
|
84927
84956
|
if (curveArg.value != null) {
|
|
84928
|
-
|
|
84929
|
-
|
|
84930
|
-
options.order = "NONLINEAR";
|
|
84931
|
-
notes.push(
|
|
84932
|
-
'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").'
|
|
84933
|
-
);
|
|
84957
|
+
if (String(options.order ?? "").toLowerCase() !== "nonlinear") {
|
|
84958
|
+
notes.push(CURVE_UNDER_LINEAR_NOTE);
|
|
84934
84959
|
}
|
|
84935
84960
|
notes.push(
|
|
84936
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."
|
|
@@ -85350,10 +85375,7 @@ function setMember(args) {
|
|
|
85350
85375
|
(r) => r && Object.keys(CURVE_FIELDS).some((d) => r.hinge[CURVE_FIELDS[d]] != null)
|
|
85351
85376
|
);
|
|
85352
85377
|
if (hasHingeCurve && String(options.order ?? "").toLowerCase() !== "nonlinear") {
|
|
85353
|
-
|
|
85354
|
-
notes.push(
|
|
85355
|
-
'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").'
|
|
85356
|
-
);
|
|
85378
|
+
notes.push(CURVE_UNDER_LINEAR_NOTE);
|
|
85357
85379
|
}
|
|
85358
85380
|
let loweredFrom;
|
|
85359
85381
|
const hasAxialType = targets.some(
|
|
@@ -87127,7 +87149,7 @@ function shareSlugOf(urlOrSlug) {
|
|
|
87127
87149
|
|
|
87128
87150
|
// src/lib/mcp-core/server.ts
|
|
87129
87151
|
var isDraftRef = (x) => typeof x === "string" && x.startsWith("draft_");
|
|
87130
|
-
var SERVER_VERSION = "2.
|
|
87152
|
+
var SERVER_VERSION = "2.108.0";
|
|
87131
87153
|
function tooLarge(model) {
|
|
87132
87154
|
return typeof model !== "string" || model.length > MODEL_JSON_MAX_BYTES;
|
|
87133
87155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferscloud/fers-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.108.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.108"
|
|
34
34
|
}
|
|
35
35
|
}
|