@renanlido/tia-openness-mcp 1.0.0 → 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Renan Oliveira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -95,13 +95,21 @@ Aceita o **project-spec** estruturado ([../docs/TIA-BEST-PRACTICES.md](../docs/T
95
95
 
96
96
  ## Cenário Mac → VM Windows (apontar o servidor)
97
97
 
98
- 1. **Na VM Windows**, ative o servidor com uma licença válida (aba "Licença" da GUI, ou `--license`) e
99
- suba aceitando conexões externas (a API **recusa bind não-loopback se NÃO estiver ativada**):
98
+ 1. **Na VM Windows**, faça tudo pela **GUI de bandeja** (atalho "TIA Openness API"):
99
+ - aba **"Licença"** cole a chave de ativação → **"Validar"** **"Salvar"** (a API aceita
100
+ conexões externas se estiver **ativada**);
101
+ - aba **"API"** → **Host** = `0.0.0.0` (aceita conexões de fora; `localhost` só atende a própria VM),
102
+ **Porta** = `5000` → **"Iniciar API"**. O status fica **verde** ("Rodando em http://0.0.0.0:5000/ …").
103
+
104
+ Libere a porta no firewall do Windows e garanta rede acessível (bridged ou NAT com port-forward). O
105
+ controle de **quem** pode chamar é o firewall/VPN — a licença ativa o servidor, não autentica clientes.
106
+
107
+ <details><summary>Alternativa headless por linha de comando (avançado)</summary>
108
+
100
109
  ```powershell
101
110
  .\bin\Debug\net48\TIAOpenness.exe serve 5000 --host 0.0.0.0 --license TIA1.xxxxx.yyyyy
102
111
  ```
103
- Libere a porta no firewall do Windows e garanta rede acessível (bridged ou NAT com port-forward).
104
- Controle de **acesso** de quem chama = firewall/VPN (a licença ativa o servidor, não autentica clientes).
112
+ </details>
105
113
  2. **No Mac**, aponte o MCP para a VM:
106
114
  ```bash
107
115
  export TIA_API_BASE="http://<ip-da-vm>:5000"
package/dist/index.js CHANGED
@@ -31724,8 +31724,8 @@ function registerAuthoringTools(server2) {
31724
31724
  plc: external_exports.string().describe("nome do CLP"),
31725
31725
  name: external_exports.string().describe("nome do FB"),
31726
31726
  language: external_exports.string().optional().describe("linguagem (ex.: SCL, LAD, FBD; default do projeto)"),
31727
- autoNumber: external_exports.boolean().optional().describe("numera\xE7\xE3o autom\xE1tica (default true)"),
31728
- number: external_exports.number().int().optional().describe("n\xFAmero do bloco (se autoNumber=false)"),
31727
+ autoNumber: external_exports.boolean().optional().describe("numera\xE7\xE3o autom\xE1tica (default true; omita 'number' para auto)"),
31728
+ number: external_exports.number().int().optional().describe("n\xFAmero do bloco \u22651 (s\xF3 com autoNumber=false); omitido ou 0 \u21D2 numera\xE7\xE3o autom\xE1tica"),
31729
31729
  group: external_exports.string().optional().describe("grupo de blocos de destino"),
31730
31730
  ...dryRunField
31731
31731
  }
@@ -31741,8 +31741,8 @@ function registerAuthoringTools(server2) {
31741
31741
  plc: external_exports.string().describe("nome do CLP"),
31742
31742
  name: external_exports.string().describe("nome do DB de inst\xE2ncia"),
31743
31743
  instanceOf: external_exports.string().describe("nome do FB do qual instanciar"),
31744
- autoNumber: external_exports.boolean().optional().describe("numera\xE7\xE3o autom\xE1tica (default true)"),
31745
- number: external_exports.number().int().optional().describe("n\xFAmero do bloco (se autoNumber=false)"),
31744
+ autoNumber: external_exports.boolean().optional().describe("numera\xE7\xE3o autom\xE1tica (default true; omita 'number' para auto)"),
31745
+ number: external_exports.number().int().optional().describe("n\xFAmero do bloco \u22651 (s\xF3 com autoNumber=false); omitido ou 0 \u21D2 numera\xE7\xE3o autom\xE1tica"),
31746
31746
  group: external_exports.string().optional().describe("grupo de blocos de destino"),
31747
31747
  ...dryRunField
31748
31748
  }
@@ -32441,7 +32441,7 @@ function registerSpecTools(server2) {
32441
32441
  }
32442
32442
 
32443
32443
  // src/index.ts
32444
- var server = new McpServer({ name: "tia-openness", version: "1.0.0" });
32444
+ var server = new McpServer({ name: "tia-openness", version: "1.0.2" });
32445
32445
  server.registerTool(
32446
32446
  "tia_ping",
32447
32447
  {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@renanlido/tia-openness-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server (stdio) — thin HTTP client over the TIA Openness `serve` API. Zero Openness/net48 references.",
5
+ "license": "MIT",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "tia-openness-mcp": "dist/index.js"