@ferscloud/fers-mcp 2.99.0 → 2.103.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 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.99"
21943
+ version: "0.2.103"
21944
21944
  },
21945
21945
  paths: {},
21946
21946
  components: {
@@ -28004,7 +28004,7 @@ class PdeltaMode(Enum):
28004
28004
  },
28005
28005
  {
28006
28006
  $ref: "#/components/schemas/SupportStiffnessCurve",
28007
- description: "Optional load-dependent stiffness curve.\nWhen present, the condition behaves as a spring whose stiffness is\ninterpolated from the curve based on the specified force component\nat the owning support node. Overrides `stiffness` when set."
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
- const warpingType = args.warping == null || args.warping === "" ? void 0 : condType(args.warping);
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
- if (dof !== "warping") conditions[dof] = "Spring";
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,
@@ -87110,7 +87116,7 @@ function solveInBrowserPayload(a) {
87110
87116
  }
87111
87117
 
87112
87118
  // src/lib/mcp-core/server.ts
87113
- var SERVER_VERSION = "2.99.0";
87119
+ var SERVER_VERSION = "2.103.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
- // Metered — these spend a solve.
87214
- solve_model: {
87215
- title: "Solve a structural model",
87216
- readOnly: true,
87217
- billed: true
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.99.0",
3
+ "version": "2.103.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.99"
33
+ "@ferscloud/fers-calculation": "0.2.103"
34
34
  }
35
35
  }