@ferscloud/fers-mcp 2.108.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.
Files changed (2) hide show
  1. package/dist/fers-mcp.cjs +10 -5
  2. 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.108"
21943
+ version: "0.2.109"
21944
21944
  },
21945
21945
  paths: {},
21946
21946
  components: {
@@ -87105,9 +87105,12 @@ function sandboxRecipe(a) {
87105
87105
  const inline = a.modelJson !== void 0 && bytes <= INLINE_MODEL_MAX_BYTES;
87106
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.`;
87107
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
+ ];
87108
87111
  return {
87109
87112
  when: "You can run Python with internet access (Claude's code execution, a terminal): solve there and quote the numbers in the chat.",
87110
- steps: ['pip install "FERS>=0.2"', source, run],
87113
+ steps: ['pip install "FERS>=0.2"', source, run, ...resize],
87111
87114
  ...inline ? { model: JSON.parse(a.modelJson) } : {}
87112
87115
  };
87113
87116
  }
@@ -87149,7 +87152,7 @@ function shareSlugOf(urlOrSlug) {
87149
87152
 
87150
87153
  // src/lib/mcp-core/server.ts
87151
87154
  var isDraftRef = (x) => typeof x === "string" && x.startsWith("draft_");
87152
- var SERVER_VERSION = "2.108.0";
87155
+ var SERVER_VERSION = "2.109.0";
87153
87156
  function tooLarge(model) {
87154
87157
  return typeof model !== "string" || model.length > MODEL_JSON_MAX_BYTES;
87155
87158
  }
@@ -87467,7 +87470,8 @@ function createFersMcpServer(ctx, deps) {
87467
87470
  members: countMembers(modelJson),
87468
87471
  validation: opts.validation,
87469
87472
  modelJson: opts.agentHasModel ? void 0 : modelJson,
87470
- checks: opts.checks
87473
+ checks: opts.checks,
87474
+ resizeGrade: opts.resizeGrade
87471
87475
  })
87472
87476
  );
87473
87477
  };
@@ -87706,7 +87710,8 @@ function createFersMcpServer(ctx, deps) {
87706
87710
  modelJson,
87707
87711
  `check_beam ${args.section} ${span} m`,
87708
87712
  {
87709
- checks: true
87713
+ checks: true,
87714
+ resizeGrade: (material2 ?? "steel_S235").replace(/^steel_/, "")
87710
87715
  }
87711
87716
  );
87712
87717
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferscloud/fers-mcp",
3
- "version": "2.108.0",
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.108"
33
+ "@ferscloud/fers-calculation": "0.2.109"
34
34
  }
35
35
  }