@ferscloud/fers-mcp 2.97.0 → 2.102.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/README.md +6 -0
- package/dist/fers-mcp.cjs +25 -79
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,6 +10,12 @@ FERS engine (Rust compiled to WebAssembly) inside this process, not on a server.
|
|
|
10
10
|
- Free for non-commercial use, models up to **100 members**. Commercial use needs a FERS Pro API key, which
|
|
11
11
|
also raises the limit to **10,000 members**.
|
|
12
12
|
|
|
13
|
+
**Also as a Claude skill and a Claude Code plugin.** `pip install FERS` ships the FERS skill: upload
|
|
14
|
+
[`fers-skill.zip`](https://github.com/Jeroen124/FERS_core/releases/latest/download/fers-skill.zip) to Claude.ai,
|
|
15
|
+
or run `fers skill --install .` to put it in a project's `.claude/skills` folder for Claude Code. In Claude Code,
|
|
16
|
+
`claude plugin install fers --marketplace Jeroen124/FERS_core` installs the skill and this server together. See
|
|
17
|
+
[ferscloud.com/mcp](https://ferscloud.com/mcp#claude-skill).
|
|
18
|
+
|
|
13
19
|
## Install
|
|
14
20
|
|
|
15
21
|
Node.js 18 or newer. The package runs with `npx`, nothing else to install.
|
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.102"
|
|
21944
21944
|
},
|
|
21945
21945
|
paths: {},
|
|
21946
21946
|
components: {
|
|
@@ -22227,7 +22227,7 @@ var openapi_default = {
|
|
|
22227
22227
|
items: {
|
|
22228
22228
|
type: "string"
|
|
22229
22229
|
},
|
|
22230
|
-
description: 'Global translational axes to exclude from P-Delta amplification.\nOnly affects second-order (nonlinear) analysis.\n\nWhen a structure is near buckling in an out-of-plane direction,\nthe consistent P-Delta amplification can produce forces that differ\nsignificantly from commercial solvers which\ntypically only amplify in-plane sway.\n\nSet to `["Z"]` for in-plane
|
|
22230
|
+
description: 'Global translational axes to exclude from P-Delta amplification.\nOnly affects second-order (nonlinear) analysis.\n\nWhen a structure is near buckling in an out-of-plane direction,\nthe consistent P-Delta amplification can produce forces that differ\nsignificantly from commercial solvers which\ntypically only amplify in-plane sway.\n\nSet to `["Z"]` for in-plane frames where Z is out-of-plane,\nor `["X","Z"]` to limit P-Delta to Y-sway only. Empty (default) means\nall translational directions are amplified.\n\nMaps to global DOFs: "X"\u21920,7 "Y"\u21921,8 "Z"\u21922,9 per element.\n\nThis is a P-Delta convergence aid, not a physical property: it is\ndeliberately ignored by linear buckling, where suppressing an axis would\nerase that axis\'s modes and inflate \u03B1_cr.'
|
|
22231
22231
|
},
|
|
22232
22232
|
render_unity_reports: {
|
|
22233
22233
|
type: "boolean",
|
|
@@ -24775,7 +24775,7 @@ var openapi_default = {
|
|
|
24775
24775
|
"string",
|
|
24776
24776
|
"null"
|
|
24777
24777
|
],
|
|
24778
|
-
description: 'Free-text label for the modeler/UI (e.g. "
|
|
24778
|
+
description: 'Free-text label for the modeler/UI (e.g. "Column", "Beam"); not used by\nthe solver.'
|
|
24779
24779
|
},
|
|
24780
24780
|
effective_length_factor_y: {
|
|
24781
24781
|
type: [
|
|
@@ -24941,7 +24941,7 @@ var openapi_default = {
|
|
|
24941
24941
|
},
|
|
24942
24942
|
{
|
|
24943
24943
|
$ref: "#/components/schemas/EigenLoadRef",
|
|
24944
|
-
description: "Load state at which force-dependent stiffness is linearized: with a\nreference, StiffnessCurve supports and member hinges enter the modal\nK at their secant under this load (and tension/compression members at\nthat load's engagement state) instead of at force = 0. A
|
|
24944
|
+
description: "Load state at which force-dependent stiffness is linearized: with a\nreference, StiffnessCurve supports and member hinges enter the modal\nK at their secant under this load (and tension/compression members at\nthat load's engagement state) instead of at force = 0. A column base\nplate is nearly rigid under load but nearly pinned unloaded \u2014 the\nloaded state is usually the one whose frequencies matter. Omitted:\nthe historical zero-force linearization."
|
|
24945
24945
|
}
|
|
24946
24946
|
]
|
|
24947
24947
|
},
|
|
@@ -26581,14 +26581,14 @@ class PdeltaMode(Enum):
|
|
|
26581
26581
|
},
|
|
26582
26582
|
{
|
|
26583
26583
|
type: "object",
|
|
26584
|
-
description: "A frame of your own, in global components: the first axis along `x`;\nthe second along `y` made perpendicular to it; the third their cross\nproduct. A
|
|
26584
|
+
description: "A frame of your own, in global components: the first axis along `x`;\nthe second along `y` made perpendicular to it; the third their cross\nproduct. A frame turned in plan names its own directions this way.",
|
|
26585
26585
|
required: [
|
|
26586
26586
|
"User"
|
|
26587
26587
|
],
|
|
26588
26588
|
properties: {
|
|
26589
26589
|
User: {
|
|
26590
26590
|
type: "object",
|
|
26591
|
-
description: "A frame of your own, in global components: the first axis along `x`;\nthe second along `y` made perpendicular to it; the third their cross\nproduct. A
|
|
26591
|
+
description: "A frame of your own, in global components: the first axis along `x`;\nthe second along `y` made perpendicular to it; the third their cross\nproduct. A frame turned in plan names its own directions this way.",
|
|
26592
26592
|
required: [
|
|
26593
26593
|
"x",
|
|
26594
26594
|
"y"
|
|
@@ -27199,7 +27199,7 @@ class PdeltaMode(Enum):
|
|
|
27199
27199
|
axes: {
|
|
27200
27200
|
default: "Global",
|
|
27201
27201
|
$ref: "#/components/schemas/ReleaseAxes",
|
|
27202
|
-
description: "The axes the releases name: `Global` (the default), or a `User` frame,\nas for a
|
|
27202
|
+
description: "The axes the releases name: `Global` (the default), or a `User` frame,\nas for a frame turned in plan whose beams run along neither X nor Z. Not\n`Local`: the members of a set need not share one frame. Release axes\nare fixed in space, so in a large-rotation (corotational) solve they do\nnot turn with the structure."
|
|
27203
27203
|
},
|
|
27204
27204
|
id: {
|
|
27205
27205
|
type: "integer",
|
|
@@ -28004,7 +28004,7 @@ class PdeltaMode(Enum):
|
|
|
28004
28004
|
},
|
|
28005
28005
|
{
|
|
28006
28006
|
$ref: "#/components/schemas/SupportStiffnessCurve",
|
|
28007
|
-
description: "Optional load-dependent stiffness curve
|
|
28007
|
+
description: "Optional load-dependent stiffness curve, on a `Spring` condition only;\nany other condition type with a curve is refused.\nThe spring's stiffness is interpolated from the curve based on the\nspecified force component at the owning support node. Overrides\n`stiffness` when set."
|
|
28008
28008
|
}
|
|
28009
28009
|
]
|
|
28010
28010
|
}
|
|
@@ -82368,7 +82368,6 @@ var FREE_TIER_USE = "non-commercial use only";
|
|
|
82368
82368
|
var PRO_TIER_USE = "commercial and non-commercial use";
|
|
82369
82369
|
var MEMBER_LIMIT_ERROR_SUBSTRING = "exceeds allowed maximum";
|
|
82370
82370
|
var MODEL_JSON_MAX_BYTES = 2e7;
|
|
82371
|
-
var CREDIT_PACKS = { 5: 500, 10: 1e3, 20: 2e3 };
|
|
82372
82371
|
|
|
82373
82372
|
// src/lib/solverErrors.ts
|
|
82374
82373
|
var VALIDATION_REWRITES = [
|
|
@@ -84794,12 +84793,13 @@ function setSupport(args) {
|
|
|
84794
84793
|
conditions[dof] = t;
|
|
84795
84794
|
named.push(dof);
|
|
84796
84795
|
}
|
|
84797
|
-
|
|
84796
|
+
let warpingType = args.warping == null || args.warping === "" ? void 0 : condType(args.warping);
|
|
84798
84797
|
if (args.warping != null && args.warping !== "" && !warpingType) {
|
|
84799
84798
|
return fail3(
|
|
84800
84799
|
`warping must be one of Fixed, Free, Spring, PositiveOnly, NegativeOnly (got ${JSON.stringify(args.warping)}).`
|
|
84801
84800
|
);
|
|
84802
84801
|
}
|
|
84802
|
+
const notes = [];
|
|
84803
84803
|
const curves = {};
|
|
84804
84804
|
const curveArg = parseJsonArg(args.stiffness_curves, "stiffness_curves");
|
|
84805
84805
|
if (!curveArg.ok) return fail3(curveArg.error);
|
|
@@ -84826,11 +84826,17 @@ function setSupport(args) {
|
|
|
84826
84826
|
]);
|
|
84827
84827
|
if (!c.ok) return fail3(c.error);
|
|
84828
84828
|
curves[dof] = c.curve;
|
|
84829
|
-
|
|
84829
|
+
const asked = dof === "warping" ? warpingType : named.includes(dof) ? conditions[dof] : void 0;
|
|
84830
|
+
if (asked && asked !== "Spring") {
|
|
84831
|
+
notes.push(
|
|
84832
|
+
`${dof} was "${asked}"; its stiffness curve makes it a Spring, the only condition type a curve works on.`
|
|
84833
|
+
);
|
|
84834
|
+
}
|
|
84835
|
+
if (dof === "warping") warpingType = "Spring";
|
|
84836
|
+
else conditions[dof] = "Spring";
|
|
84830
84837
|
}
|
|
84831
84838
|
}
|
|
84832
84839
|
const stiffness = {};
|
|
84833
|
-
const notes = [];
|
|
84834
84840
|
const stiffnessArg = (dof) => ({
|
|
84835
84841
|
X: args.X_stiffness,
|
|
84836
84842
|
Y: args.Y_stiffness,
|
|
@@ -85427,7 +85433,7 @@ releases is an object over tx, ty, tz (translations) and rx, ry, rz (rotations):
|
|
|
85427
85433
|
|
|
85428
85434
|
The hinge goes on a MEMBER SET and applies wherever one of the set's members meets a member OUTSIDE the set (or a plate). Inside the set the members stay joined to each other, so the beam stays continuous. A set holding every member meets nothing and the solver refuses it, so when no set holds exactly these members they leave their sets for a new one; info lists the sets they were taken from. at_nodes limits the hinge to those nodes of the beam (a rail that slides over its first post only); omit it for every crossing.
|
|
85429
85435
|
|
|
85430
|
-
axes: "Global" (the default) or {"User":{"x":[...],"y":[...]}} for a
|
|
85436
|
+
axes: "Global" (the default) or {"User":{"x":[...],"y":[...]}} for a frame turned in plan \u2014 the first axis runs along x, the second along y made square to it. "Local" is refused: the set's members need not share one.
|
|
85431
85437
|
|
|
85432
85438
|
Supports and nodal loads at a released node act on the members outside the set, and a node's reported displacement is theirs; the beam's own motion there is in its members' local end displacements. The solver refuses a member point load or moment exactly at a released end of the beam. In second order, a model with scissor hinges takes the corotational correction only when analysis.options.nonlinear_method is COROTATIONAL. The model is written with schema_version 3, so an engine older than 0.2.68 refuses it instead of solving every crossing rigid. scissor_hinge_id reuses (and with releases or axes, rewrites) one definition for several beams; clear:true takes the hinge off the beam's set.`;
|
|
85433
85439
|
function readScissorReleases(raw, hinge) {
|
|
@@ -87110,7 +87116,7 @@ function solveInBrowserPayload(a) {
|
|
|
87110
87116
|
}
|
|
87111
87117
|
|
|
87112
87118
|
// src/lib/mcp-core/server.ts
|
|
87113
|
-
var SERVER_VERSION = "2.
|
|
87119
|
+
var SERVER_VERSION = "2.102.0";
|
|
87114
87120
|
function tooLarge(model) {
|
|
87115
87121
|
return typeof model !== "string" || model.length > MODEL_JSON_MAX_BYTES;
|
|
87116
87122
|
}
|
|
@@ -87210,18 +87216,11 @@ function unityView(result) {
|
|
|
87210
87216
|
return result;
|
|
87211
87217
|
}
|
|
87212
87218
|
var TOOL_META = {
|
|
87213
|
-
//
|
|
87214
|
-
|
|
87215
|
-
|
|
87216
|
-
|
|
87217
|
-
|
|
87218
|
-
},
|
|
87219
|
-
run_unity_checks: { title: "Run code checks", readOnly: true, billed: true },
|
|
87220
|
-
check_beam: {
|
|
87221
|
-
title: "Check a steel beam (EN 1993-1-1)",
|
|
87222
|
-
readOnly: true,
|
|
87223
|
-
billed: true
|
|
87224
|
-
},
|
|
87219
|
+
// Solves: in the user's browser from the hosted server, on their machine
|
|
87220
|
+
// from the local one.
|
|
87221
|
+
solve_model: { title: "Solve a structural model", readOnly: true },
|
|
87222
|
+
run_unity_checks: { title: "Run code checks", readOnly: true },
|
|
87223
|
+
check_beam: { title: "Check a steel beam (EN 1993-1-1)", readOnly: true },
|
|
87225
87224
|
// Free, read-only inspection.
|
|
87226
87225
|
validate_model: {
|
|
87227
87226
|
title: "Validate a model",
|
|
@@ -87267,11 +87266,6 @@ var TOOL_META = {
|
|
|
87267
87266
|
list_models: { title: "List saved models", readOnly: true, idempotent: true },
|
|
87268
87267
|
load_model: { title: "Load a saved model", readOnly: true, idempotent: true },
|
|
87269
87268
|
get_usage: { title: "Check usage", readOnly: true, idempotent: true },
|
|
87270
|
-
get_balance: {
|
|
87271
|
-
title: "Check credit balance",
|
|
87272
|
-
readOnly: true,
|
|
87273
|
-
idempotent: true
|
|
87274
|
-
},
|
|
87275
87269
|
// Free authoring — pure functions over a model document.
|
|
87276
87270
|
create_beam: {
|
|
87277
87271
|
title: "Build a beam model",
|
|
@@ -87334,11 +87328,6 @@ var TOOL_META = {
|
|
|
87334
87328
|
title: "Save a model to your account",
|
|
87335
87329
|
readOnly: false,
|
|
87336
87330
|
destructive: false
|
|
87337
|
-
},
|
|
87338
|
-
buy_credits: {
|
|
87339
|
-
title: "Buy solve credits",
|
|
87340
|
-
readOnly: false,
|
|
87341
|
-
destructive: false
|
|
87342
87331
|
}
|
|
87343
87332
|
};
|
|
87344
87333
|
function annotationsFor(meta) {
|
|
@@ -87351,14 +87340,6 @@ function annotationsFor(meta) {
|
|
|
87351
87340
|
};
|
|
87352
87341
|
}
|
|
87353
87342
|
var TOOL_NAMES = Object.keys(TOOL_META);
|
|
87354
|
-
var FLAG_GATED_TOOLS = [
|
|
87355
|
-
"get_balance",
|
|
87356
|
-
"buy_credits"
|
|
87357
|
-
];
|
|
87358
|
-
var PUBLIC_TOOL_NAMES = TOOL_NAMES.filter(
|
|
87359
|
-
(name) => !FLAG_GATED_TOOLS.includes(name)
|
|
87360
|
-
);
|
|
87361
|
-
var BILLED_TOOLS = Object.entries(TOOL_META).filter(([, m]) => m.billed).map(([name]) => name);
|
|
87362
87343
|
var COMMON_INTRO = "FERS is a finite-element structural solver: beams, frames, trusses, columns and slabs; deflections, forces, reactions, frequencies, buckling (alpha_cr), seismic response and Eurocode unity checks, validated against closed-form solutions.\n\nWHERE FERS MAKES THE DIFFERENCE: prefer it over estimating. A textbook single span can be checked by hand; problems that need critical thinking are where an unaided answer goes wrong: indeterminate frames and continuous beams, hinges or releases that can make a mechanism, second-order effects, buckling, plates, Eurocode checks. Its hand-calc trace lets the engineer check each step.\n\n";
|
|
87363
87344
|
var COMMON_AUTHORING = "BUILDING ANYTHING ELSE: create_beam / create_frame, or get_template for a worked starter, then the free authoring tools (each takes and returns a model): set_analysis (second-order, modal, buckling, seismic), add_load_case \u2192 add_load \u2192 add_load_combination (or generate_load_combinations_ec0), add_imperfection_case, add_unity_check; then solve_model.\n\nDO NOT GUESS FIELD NAMES: get_schema gives the contract, list_sections / get_section the European, UK and US profiles. Run validate_model (free) first: the engine silently ignores unknown analysis.* fields and uses defaults.\n\n";
|
|
87364
87345
|
var COMMON_SHEAR = 'SHEAR DEFORMATION is on for every section with a shear area (all library sections): deflections come out slightly above 5wL\u2074/384EI, continuous-beam support moments about 1 % below three-moment values. To match a textbook formula, set_analysis options {"include_shear_deformation": false}.\n\n';
|
|
@@ -88749,41 +88730,6 @@ function createFersMcpServer(ctx, deps) {
|
|
|
88749
88730
|
async () => mkJson(await deps.account.usage())
|
|
88750
88731
|
);
|
|
88751
88732
|
}
|
|
88752
|
-
if (deps.account.balance) {
|
|
88753
|
-
const balance = deps.account.balance;
|
|
88754
|
-
defineTool(
|
|
88755
|
-
"get_balance",
|
|
88756
|
-
"Get your prepaid credit balance, this week's free-solve usage, and the per-solve price.",
|
|
88757
|
-
async () => mkJson(await balance())
|
|
88758
|
-
);
|
|
88759
|
-
}
|
|
88760
|
-
if (deps.account.buyCredits) {
|
|
88761
|
-
const buyCredits = deps.account.buyCredits;
|
|
88762
|
-
const packs = Object.keys(CREDIT_PACKS).map(Number);
|
|
88763
|
-
defineTool(
|
|
88764
|
-
"buy_credits",
|
|
88765
|
-
"Get a Stripe Checkout link to top up prepaid solve credits. Packs: 5, 10, or 20 (euros); \u20AC1 = 100 solves. Credits are added once payment completes.",
|
|
88766
|
-
{
|
|
88767
|
-
pack: external_exports.coerce.number().describe("Credit pack in euros: 5, 10, or 20")
|
|
88768
|
-
},
|
|
88769
|
-
async (args) => {
|
|
88770
|
-
const pack = Number(args.pack);
|
|
88771
|
-
if (!packs.includes(pack)) {
|
|
88772
|
-
return mkError(
|
|
88773
|
-
`Invalid pack. Choose one of: ${packs.join(", ")} (euros).`
|
|
88774
|
-
);
|
|
88775
|
-
}
|
|
88776
|
-
const res = await buyCredits(pack);
|
|
88777
|
-
if (!res.ok) return mkError(res.error);
|
|
88778
|
-
return mkJson({
|
|
88779
|
-
checkout_url: res.url,
|
|
88780
|
-
pack_eur: pack,
|
|
88781
|
-
credits_granted_solves: CREDIT_PACKS[pack],
|
|
88782
|
-
note: "Open checkout_url in a browser to pay. Your balance updates once payment is confirmed."
|
|
88783
|
-
});
|
|
88784
|
-
}
|
|
88785
|
-
);
|
|
88786
|
-
}
|
|
88787
88733
|
const jsonResource = (uri, data) => ({
|
|
88788
88734
|
contents: [
|
|
88789
88735
|
{ uri, mimeType: "application/json", text: JSON.stringify(data) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferscloud/fers-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.102.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.102"
|
|
34
34
|
}
|
|
35
35
|
}
|