@ferscloud/fers-mcp 2.106.0 → 2.107.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 +22 -3
- 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.107"
|
|
21944
21944
|
},
|
|
21945
21945
|
paths: {},
|
|
21946
21946
|
components: {
|
|
@@ -82388,11 +82388,30 @@ var VALIDATION_REWRITES = [
|
|
|
82388
82388
|
rewrite: "a member references a node that no longer exists \u2014 check Structure \u2192 Members"
|
|
82389
82389
|
}
|
|
82390
82390
|
];
|
|
82391
|
-
function classifySolverError(err) {
|
|
82391
|
+
function classifySolverError(err, model) {
|
|
82392
82392
|
const code = err?.code ?? "";
|
|
82393
82393
|
const message = err instanceof Error ? err.message : String(err ?? "");
|
|
82394
82394
|
const lower = message.toLowerCase();
|
|
82395
82395
|
const fatalTrap = lower.includes("unreachable") || lower.includes("runtimeerror") || lower.includes("recursion") || lower.includes("memory access") || lower.includes("out of bounds");
|
|
82396
|
+
if (code === "OutOfMemory") {
|
|
82397
|
+
const advice = "It is too large to calculate in the browser: use a coarser mesh or fewer nodes, then calculate again.";
|
|
82398
|
+
if (model?.nodes) {
|
|
82399
|
+
return {
|
|
82400
|
+
kind: "trap",
|
|
82401
|
+
fatalTrap: true,
|
|
82402
|
+
messageKey: "solverError.outOfMemoryNodes",
|
|
82403
|
+
// A number: the translations format it for their own locale.
|
|
82404
|
+
messageParams: { nodes: model.nodes },
|
|
82405
|
+
message: `The solver ran out of memory on this model (${model.nodes.toLocaleString("en-US")} nodes) and was reset. ${advice}`
|
|
82406
|
+
};
|
|
82407
|
+
}
|
|
82408
|
+
return {
|
|
82409
|
+
kind: "trap",
|
|
82410
|
+
fatalTrap: true,
|
|
82411
|
+
messageKey: "solverError.outOfMemory",
|
|
82412
|
+
message: `The solver ran out of memory on this model and was reset. ${advice}`
|
|
82413
|
+
};
|
|
82414
|
+
}
|
|
82396
82415
|
if (code === "Timeout") {
|
|
82397
82416
|
return {
|
|
82398
82417
|
kind: "timeout",
|
|
@@ -87127,7 +87146,7 @@ function shareSlugOf(urlOrSlug) {
|
|
|
87127
87146
|
|
|
87128
87147
|
// src/lib/mcp-core/server.ts
|
|
87129
87148
|
var isDraftRef = (x) => typeof x === "string" && x.startsWith("draft_");
|
|
87130
|
-
var SERVER_VERSION = "2.
|
|
87149
|
+
var SERVER_VERSION = "2.107.0";
|
|
87131
87150
|
function tooLarge(model) {
|
|
87132
87151
|
return typeof model !== "string" || model.length > MODEL_JSON_MAX_BYTES;
|
|
87133
87152
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferscloud/fers-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.107.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.107"
|
|
34
34
|
}
|
|
35
35
|
}
|