@renanlido/tia-openness-mcp 1.10.0 → 1.10.2

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
@@ -46,6 +46,15 @@ generated from `mcp/content/*.md` (the canonical source) into `src/content.gen.t
46
46
  hyphens (`tia-init`, `tia-review`); the old dotted skill names were retired.
47
47
  Tools and skills are separate interfaces; `tia.ping` is not a tool name.
48
48
 
49
+ **Compatibility with the app (`serve`).** The MCP and the Windows app are released separately. MCP 1.10.0 publishes all 158
50
+ tools (62 of them class R). The 53 it added (epic #74: the tools this page marks "added by epic #74" or "(epic #74)") call
51
+ `serve` routes that app 1.7.0 adds, so they need app 1.7.0 or later. Against an older app each of them returns an error
52
+ result (`isError: true`) with `status: 404`, `kind: "route_not_found"`, an `error` that starts with `Route not found` and a
53
+ hint to update the app; nothing is changed. The one exception is `tia_block_render`, which renders SimaticML you pass in and
54
+ never calls the `serve`. The other 105 tools work with the released app. An option that relies on 1.7.0 behavior of an older
55
+ tool's route differs on an older app: for example `expectedContentHash` (the stale-write guard), where the older `serve`
56
+ returns no `contentGuard` and the tool says the write was not guarded.
57
+
49
58
  ### Diagnostics + M1 read-only (class R, auto-approvable)
50
59
  | Tool | Endpoint | Description |
51
60
  |---|---|---|
@@ -255,8 +264,8 @@ Accepts the structured **project-spec** (`docs/TIA-BEST-PRACTICES.md` §13.2; JS
255
264
  - **`tia_spec_plan`** (no serve needed): turns a valid spec into the ordered operation sequence (subnets→devices→modules→network→tags→blocks→compile; the compile step is dropped when an explicit `verification.ladder` leaves `"compile"` out). TIA names the PlcSoftware of a CPU after its CPU device item (default `PLC_1`), not after the device, so the PLC-scoped steps carry a `{plc}` placeholder and the answer has a `plc` field (`{device, resolvedAtApply}`); `devices[].plcName` names the CPU item.
256
265
  - **`tia_spec_apply`**: orchestrates the OFFLINE build on an open project (validate → G5 → execute serially → compile, as planned), **stops at the 1st failed step** unless `continueOnError:true` (then it applies the rest and reports `applied_with_errors`), and **never downloads** (download is GATE G3, always human). The PLC-scoped steps use the PlcSoftware it reads from the serve right after the device step (recorded in `applied` as `plc.resolve`); when it cannot identify exactly one it stops with kind `plc_unresolved` instead of guessing. `dryRun:true` returns the plan.
257
266
 
258
- > **MCP M0–M5 COMPLETE** (158 tools). The first 105 are **runtime-validated** against a real TIA Portal V21 (including a
259
- > **hardware deploy** to an S7-1200) and **published to npm**; the 53 added by epic #74 (23 of them class R) were exercised on the bench on 2026-10-19 (`docs/ROADMAP.md` §10; whole-PLC `tia_crossrefs` reads can exceed 300 s on a large project, card #156). Roadmap and milestones in `docs/ROADMAP.md` §3.
267
+ > **MCP M0–M5 COMPLETE** (158 tools, 62 of them class R, published to npm in MCP 1.10.0). The first 105 are **runtime-validated** against a real TIA Portal V21 (including a
268
+ > **hardware deploy** to an S7-1200); the 53 added by epic #74 (23 of them class R) were exercised on the bench on 2026-10-19 (`docs/ROADMAP.md` §10; whole-PLC `tia_crossrefs` reads can exceed 300 s on a large project, card #156). Roadmap and milestones in `docs/ROADMAP.md` §3.
260
269
 
261
270
  ### Long operations run as jobs (ADR 0009)
262
271
 
package/dist/index.js CHANGED
@@ -37128,11 +37128,11 @@ function registerAuthoringTools(server) {
37128
37128
  "tia_fb_create",
37129
37129
  {
37130
37130
  title: "TIA \u2014 create FB",
37131
- description: "Creates a Function Block. Gd6: for LOGIC use a textual language (SCL) via tia_source_put, or graphical (LAD/FBD) via tia_import_xml. Refused with 409 name_collision (details.collidesWith = the colliding tag, constant or block) when the name matches, ignoring case, any tag, constant or block of the PLC. Maps to POST /plcs/{plc}/fbs. M-off.",
37131
+ description: "Creates an EMPTY Function Block (empty interface, no logic) by importing a minimal SimaticML skeleton. Supported languages: SCL (the default when `language` is omitted), LAD, FBD, STL or ProDiag, in any case; any other value is refused with 400 bad_request listing them, and a CPU family can still refuse one it does not support. Gd6: for LOGIC use a textual language (SCL) via tia_source_put, or graphical (LAD/FBD) via tia_import_xml. Refused with 409 name_collision (details.collidesWith = the colliding tag, constant or block) when the name matches, ignoring case, any tag, constant or block of the PLC. Maps to POST /plcs/{plc}/fbs. M-off.",
37132
37132
  inputSchema: {
37133
37133
  plc: external_exports.string().describe("PLC name"),
37134
37134
  name: external_exports.string().describe("FB name"),
37135
- language: external_exports.string().optional().describe("language (e.g., SCL, LAD, FBD; project default)"),
37135
+ language: external_exports.string().optional().describe("SCL (default when omitted), LAD, FBD, STL or ProDiag; any case"),
37136
37136
  autoNumber: external_exports.boolean().optional().describe("accepted for compatibility and ignored: without 'number' the serve picks the number itself"),
37137
37137
  number: external_exports.number().int().optional().describe("block number \u22651, used as given (a number another FB holds is refused by TIA); omitted or 0 \u21D2 the serve picks the lowest free number from 1 in the FB family (409 block_number_exhausted when none is free)"),
37138
37138
  group: external_exports.string().optional().describe("target block group"),
@@ -39703,7 +39703,7 @@ function buildServer(mode, version2, budget = resolveBudget()) {
39703
39703
  }
39704
39704
 
39705
39705
  // src/index.ts
39706
- var VERSION = "1.10.0";
39706
+ var VERSION = "1.10.2";
39707
39707
  async function main() {
39708
39708
  if (process.argv.slice(2).some((a) => a === "--version" || a === "-v")) {
39709
39709
  console.log(VERSION);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renanlido/tia-openness-mcp",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "MCP server (stdio) — thin HTTP client over the TIA Openness `serve` API. Zero Openness/net48 references.",
5
5
  "license": "MIT",
6
6
  "type": "module",