@etm-professional-control/winccoa-mcp-server 1.3.2 → 1.5.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 (76) hide show
  1. package/.env.example +8 -1
  2. package/LEGAL_INFO.md +47 -0
  3. package/LICENSE.md +21 -0
  4. package/OSS.md +178 -0
  5. package/README.md +62 -7
  6. package/build/config/demo-project-instructions.md +28 -0
  7. package/build/config/server.config.d.ts +16 -1
  8. package/build/config/server.config.d.ts.map +1 -1
  9. package/build/config/server.config.js +60 -10
  10. package/build/config/server.config.js.map +1 -1
  11. package/build/fields/default.md +50 -0
  12. package/build/fields/oil.md +46 -0
  13. package/build/fields/transport.md +70 -0
  14. package/build/helpers/drivers/MqttConnection.d.ts +113 -0
  15. package/build/helpers/drivers/MqttConnection.d.ts.map +1 -0
  16. package/build/helpers/drivers/MqttConnection.js +644 -0
  17. package/build/helpers/drivers/MqttConnection.js.map +1 -0
  18. package/build/helpers/pmon/PmonClient.d.ts.map +1 -1
  19. package/build/helpers/pmon/PmonClient.js +53 -27
  20. package/build/helpers/pmon/PmonClient.js.map +1 -1
  21. package/build/index_http.d.ts +14 -1
  22. package/build/index_http.d.ts.map +1 -1
  23. package/build/index_http.js +122 -45
  24. package/build/index_http.js.map +1 -1
  25. package/build/server.d.ts +38 -4
  26. package/build/server.d.ts.map +1 -1
  27. package/build/server.js +192 -142
  28. package/build/server.js.map +1 -1
  29. package/build/systemprompt.md +50 -0
  30. package/build/tool_loader.d.ts.map +1 -1
  31. package/build/tool_loader.js +18 -4
  32. package/build/tool_loader.js.map +1 -1
  33. package/build/tools/common/common_query.d.ts.map +1 -1
  34. package/build/tools/common/common_query.js +49 -32
  35. package/build/tools/common/common_query.js.map +1 -1
  36. package/build/tools/dashboards/widget.d.ts.map +1 -1
  37. package/build/tools/dashboards/widget.js +12 -2
  38. package/build/tools/dashboards/widget.js.map +1 -1
  39. package/build/tools/datapoints/dp_basic.d.ts.map +1 -1
  40. package/build/tools/datapoints/dp_basic.js +48 -0
  41. package/build/tools/datapoints/dp_basic.js.map +1 -1
  42. package/build/tools/datapoints/dp_types.d.ts.map +1 -1
  43. package/build/tools/datapoints/dp_types.js +16 -1
  44. package/build/tools/datapoints/dp_types.js.map +1 -1
  45. package/build/tools/mqtt/mqtt_connection.d.ts +14 -0
  46. package/build/tools/mqtt/mqtt_connection.d.ts.map +1 -0
  47. package/build/tools/mqtt/mqtt_connection.js +380 -0
  48. package/build/tools/mqtt/mqtt_connection.js.map +1 -0
  49. package/build/types/drivers/connection.d.ts +36 -53
  50. package/build/types/drivers/connection.d.ts.map +1 -1
  51. package/build/types/drivers/connection.js +38 -31
  52. package/build/types/drivers/connection.js.map +1 -1
  53. package/build/types/drivers/mqtt.d.ts +253 -0
  54. package/build/types/drivers/mqtt.d.ts.map +1 -0
  55. package/build/types/drivers/mqtt.js +142 -0
  56. package/build/types/drivers/mqtt.js.map +1 -0
  57. package/build/types/drivers/opcua.d.ts +62 -0
  58. package/build/types/drivers/opcua.d.ts.map +1 -0
  59. package/build/types/drivers/opcua.js +41 -0
  60. package/build/types/drivers/opcua.js.map +1 -0
  61. package/build/types/drivers/{browse.d.ts → opcua_browse.d.ts} +1 -1
  62. package/build/types/drivers/opcua_browse.d.ts.map +1 -0
  63. package/build/types/drivers/{browse.js → opcua_browse.js} +1 -1
  64. package/build/types/drivers/opcua_browse.js.map +1 -0
  65. package/build/types/index.d.ts +3 -1
  66. package/build/types/index.d.ts.map +1 -1
  67. package/build/types/index.js +6 -2
  68. package/build/types/index.js.map +1 -1
  69. package/build/utils/logger.d.ts +29 -0
  70. package/build/utils/logger.d.ts.map +1 -0
  71. package/build/utils/logger.js +56 -0
  72. package/build/utils/logger.js.map +1 -0
  73. package/package.json +83 -71
  74. package/sbom.json +5541 -0
  75. package/build/types/drivers/browse.d.ts.map +0 -1
  76. package/build/types/drivers/browse.js.map +0 -1
package/.env.example CHANGED
@@ -83,10 +83,17 @@ WINCCOA_FIELD=default
83
83
  # - Datapoints: datapoints/dp_basic, datapoints/dp_create, datapoints/dp_set, datapoints/dp_types, datapoints/dp_type_create
84
84
  # - Icons: icons/icon (for creating custom SVG icons for widget headers/footers)
85
85
  # - OPC UA: opcua/opcua_connection, opcua/opcua_address
86
+ # - MQTT: mqtt/mqtt_connection
86
87
  # - Common Config: common/common_query, common/common_set, common/common_delete
87
88
  # - Alarms: alarms/alarm_set, alarms/alarm_delete
88
89
  # - Archive: archive/archive_set, archive/archive_delete, archive/archive_query
89
90
  # - Dashboards: dashboards/dashboard, dashboards/widget
90
91
  # - PV Range: pv_range/pv_range_query, pv_range/pv_range_set, pv_range/pv_range_delete
91
92
  # - Manager: manager/manager_list, manager/manager_add, manager/manager_remove, manager/manager_control, manager/manager_properties
92
- TOOLS=datapoints/dp_basic,datapoints/dp_create,datapoints/dp_set,datapoints/dp_types,datapoints/dp_type_create,icons/icon,opcua/opcua_connection,opcua/opcua_address,common/common_query,common/common_set,common/common_delete,alarms/alarm_set,alarms/alarm_delete,archive/archive_set,archive/archive_delete,archive/archive_query,dashboards/dashboard,dashboards/widget,pv_range/pv_range_query,pv_range/pv_range_set,pv_range/pv_range_delete
93
+
94
+ # Default: Read-only tools only (safe starting point)
95
+ # Uncomment and modify for write access - see README.md for security considerations
96
+ TOOLS=datapoints/dp_basic,datapoints/dp_types,archive/archive_query,common/common_query,pv_range/pv_range_query,manager/manager_list
97
+
98
+ # Full feature set (includes write operations - use with caution):
99
+ # TOOLS=datapoints/dp_basic,datapoints/dp_create,datapoints/dp_set,datapoints/dp_types,datapoints/dp_type_create,icons/icon,opcua/opcua_connection,opcua/opcua_address,mqtt/mqtt_connection,common/common_query,common/common_set,common/common_delete,alarms/alarm_set,alarms/alarm_delete,archive/archive_set,archive/archive_delete,archive/archive_query,dashboards/dashboard,dashboards/widget,pv_range/pv_range_query,pv_range/pv_range_set,pv_range/pv_range_delete,manager/manager_list,manager/manager_control,manager/manager_add,manager/manager_remove,manager/manager_properties
package/LEGAL_INFO.md ADDED
@@ -0,0 +1,47 @@
1
+ # Legal information
2
+
3
+ ## Use of application examples
4
+
5
+ Application examples illustrate the solution of automation tasks through an interaction of several components in the form of text, graphics, and/or software modules. The application examples are a free service by Siemens AG and/or a subsidiary of Siemens AG ("Siemens"). They are non-binding and make no claim to completeness or functionality regarding configuration and equipment. The application examples merely offer help with typical tasks; they do not constitute customer-specific solutions. You yourself are responsible for the proper and safe operation of the products in accordance with applicable regulations and must also check the function of the respective application example and customize it for your system.
6
+
7
+ Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the application examples used by technically trained personnel. Any change to the application examples is your responsibility. Sharing the application examples with third parties or copying the application examples or excerpts thereof is permitted only in combination with your own products. The application examples are not required to undergo the customary tests and quality inspections of a chargeable product; they may have functional and performance defects as well as errors. It is your responsibility to use them in such a manner that any malfunctions that may occur do not result in property damage or injury to persons.
8
+
9
+ ## Disclaimer of liability
10
+
11
+ Siemens shall not assume any liability, for any legal reason whatsoever, including, without limitation, liability for the usability, availability, completeness, and freedom from defects of the application examples as well as for related information, configuration and performance data and any damage caused thereby. This shall not apply in cases of mandatory liability, for example under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for damages arising from a breach of material contractual obligations shall however be limited to the foreseeable damage typical of the type of agreement, unless liability arises from intent or gross negligence or is based on loss of life, bodily injury, or damage to health. The foregoing provisions do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens against existing or future claims of third parties in this connection except where Siemens is mandatorily liable.
12
+
13
+ By using the application examples you acknowledge that Siemens cannot be held liable for any damage beyond the liability provisions described.
14
+
15
+ ## Other information
16
+
17
+ Siemens reserves the right to make changes to the application examples at any time without notice. In case of discrepancies between the suggestions in the application examples and other Siemens publications such as catalogs, the content of the other documentation shall have precedence.
18
+
19
+ The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
20
+
21
+ ## Cybersecurity information
22
+
23
+ Siemens provides products and solutions with industrial cybersecurity functions that support the secure operation of plants, systems, machines and networks.
24
+
25
+ In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial cybersecurity concept. Siemens' products and solutions constitute one element of such a concept.
26
+
27
+ Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
28
+
29
+ For additional information on industrial cybersecurity measures that may be implemented, please visit www.siemens.com/cybersecurity-industry.
30
+
31
+ Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customer's exposure to cyber threats.
32
+
33
+ To stay informed about product updates, subscribe to the Siemens Industrial Cybersecurity RSS Feed under https://www.siemens.com/cert.
34
+
35
+ ## Cybersecurity-Hinweise
36
+
37
+ Siemens bietet Produkte und Lösungen mit Industrial Cybersecurity-Funktionen an, die den sicheren Betrieb von Anlagen, Systemen, Maschinen und Netzwerken unterstützen.
38
+
39
+ Um Anlagen, Systeme, Maschinen und Netzwerke gegen Cyber-Bedrohungen zu sichern, ist es erforderlich, ein ganzheitliches Industrial Cybersecurity-Konzept zu implementieren (und kontinuierlich aufrechtzuerhalten), das dem aktuellen Stand der Technik entspricht. Die Produkte und Lösungen von Siemens formen einen Bestandteil eines solchen Konzepts.
40
+
41
+ Die Kunden sind dafür verantwortlich, unbefugten Zugriff auf ihre Anlagen, Systeme, Maschinen und Netzwerke zu verhindern. Diese Systeme, Maschinen und Komponenten sollten nur mit dem Unternehmensnetzwerk oder dem Internet verbunden werden, wenn und soweit dies notwendig ist und nur wenn entsprechende Schutzmaßnahmen (z.B. Firewalls und/oder Netzwerksegmentierung) ergriffen wurden.
42
+
43
+ Weiterführende Informationen zu möglichen Schutzmaßnahmen im Bereich Industrial Cybersecurity finden Sie unter https://www.siemens.com/global/en/products/automation/topic-areas/industrial-cybersecurity.html.
44
+
45
+ Die Produkte und Lösungen von Siemens werden ständig weiterentwickelt, um sie noch sicherer zu machen. Siemens empfiehlt ausdrücklich, Produkt-Updates anzuwenden, sobald sie zur Verfügung stehen und immer nur die aktuellen Produktversionen zu verwenden. Die Verwendung veralteter oder nicht mehr unterstützter Versionen kann das Risiko von Cyber-Bedrohungen erhöhen.
46
+
47
+ Um stets über Produkt-Updates informiert zu sein, abonnieren Sie den Siemens Industrial Cybersecurity RSS Feed unter https://new.siemens.com/global/en/products/services/cert.html.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2025 ETM professional control GmbH
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/OSS.md ADDED
@@ -0,0 +1,178 @@
1
+ # Third-Party Software Information
2
+
3
+ Note to Resellers: Please pass on this document to your customer to avoid license infringements.
4
+
5
+ This product, solution or service ("Product") contains third-party software components listed in this document. These components are Open Source Software licensed under a license approved by the Open Source Initiative (www.opensource.org) or similar licenses as determined by SIEMENS ("OSS") and/or commercial or freeware software components. With respect to the OSS components, the applicable OSS license conditions prevail over any other terms and conditions covering the Product. The OSS portions of this Product are provided royalty-free and can be used at no charge.
6
+
7
+ If SIEMENS has combined or linked certain components of the Product with/to OSS components licensed under the GNU LGPL version 2 or later as per the definition of the applicable license, and if use of the corresponding object file is not unrestricted ("LGPL Licensed Module", whereas the LGPL Licensed Module and the components that the LGPL Licensed Module is combined with or linked to is the "Combined Product"), the following additional rights apply, if the relevant LGPL license criteria are met: (i) you are entitled to modify the Combined Product for your own use, including but not limited to the right to modify the Combined Product to relink modified versions of the LGPL Licensed Module, and (ii) you may reverse-engineer the Combined Product, but only to debug your modifications. The modification right does not include the right to distribute such modifications and you shall maintain in confidence any information resulting from such reverse-engineering of a Combined Product.
8
+
9
+ Certain OSS licenses require SIEMENS to make source code available, for example, the GNU General Public License, the GNU Lesser General Public License and the Mozilla Public License. If such licenses are applicable and this Product is not shipped with the required source code, a copy of this source code can be obtained by anyone in receipt of this information during the period required by the applicable OSS licenses by contacting the following address:
10
+
11
+ Siemens AG
12
+ LC TEC IT&SL
13
+ Werner-von-Siemens Str. 60
14
+ 91052 Erlangen
15
+ Germany
16
+
17
+ Keyword: Open Source Request (please specify Product name and version, if applicable)
18
+
19
+ SIEMENS may charge a handling fee of up to 5 EUR to fulfil the request.
20
+
21
+ ## Warranty regarding further use of the Open Source Software
22
+
23
+ SIEMENS' warranty obligations are set forth in your agreement with SIEMENS. SIEMENS does not provide any warranty or technical support for this Product or any OSS components contained in it if they are modified or used in any manner not specified by SIEMENS. The license conditions listed below may contain disclaimers that apply between you and the respective licensor. For the avoidance of doubt, SIEMENS does not make any warranty commitment on behalf of or binding upon any third party licensor.
24
+
25
+ ## Open Source Software and/or other third-party software contained in this Product:
26
+
27
+ Please note the following license conditions and copyright notices applicable to Open Source Software and/or other components (or parts thereof):
28
+
29
+ ### Direct runtime dependencies
30
+
31
+ The components the MCP server declares directly, with notes. All versions are pinned exactly in
32
+ `mcpWinCCOA/package.json`. **The complete list of every distributed component is further below**; a
33
+ machine-readable CycloneDX SBOM (`sbom.json`) is published with each release.
34
+
35
+ | Component | Open Source Software [Yes/No] | Acknowledgements/Comment | License conditions and copyright notices |
36
+ |-----------|------------------------------|-------------------------|----------------------------------------|
37
+ | @modelcontextprotocol/sdk 1.30.0 | Yes | Model Context Protocol server/client SDK. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. Pinned above the advisory range 1.10.0-1.25.3 (cross-client data leak via shared server/transport instance reuse). | [MIT](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/LICENSE) |
38
+ | cors 2.8.6 | Yes | Express CORS middleware. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. | [MIT](https://github.com/expressjs/cors/blob/master/LICENSE) |
39
+ | dotenv 16.6.1 | Yes | Loads `.env` configuration. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. | [BSD-2-Clause](https://github.com/motdotla/dotenv/blob/master/LICENSE) |
40
+ | express 5.2.1 | Yes | HTTP server for the streamable HTTP transport. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. | [MIT](https://github.com/expressjs/express/blob/master/LICENSE) |
41
+ | express-rate-limit 7.5.1 | Yes | Request rate limiting. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. | [MIT](https://github.com/express-rate-limit/express-rate-limit/blob/main/LICENSE) |
42
+ | mcp-remote 0.1.37 | Yes | Remote MCP client bridge. Under Siemens vulnerability monitoring as of 2026-09-01. The pinned 0.1.37 is **not affected** by the known Remote Command Injection vulnerability in versions 0.0.5 to 0.1.15, which was fixed in 0.1.16. | [MIT](https://github.com/geelen/mcp-remote/blob/main/LICENSE) |
43
+ | zod 3.25.76 | Yes | Runtime schema validation for tool inputs. Under Siemens vulnerability monitoring as of 2026-09-01; no known vulnerabilities. | [MIT](https://github.com/colinhacks/zod/blob/main/LICENSE) |
44
+
45
+ ### Not distributed
46
+
47
+ | Component | Open Source Software [Yes/No] | Acknowledgements/Comment | License conditions and copyright notices |
48
+ |-----------|------------------------------|-------------------------|----------------------------------------|
49
+ | winccoa-manager | No | Proprietary Siemens component, supplied by the WinCC OA installation and declared as an optional `peerDependency`. It is **never** bundled or redistributed with this package, and is excluded from `sbom.json` via `--omit peer`. | Covered by the WinCC OA license terms |
50
+
51
+ ### Build-time only (not distributed)
52
+
53
+ Development dependencies are not part of the delivered artifact and are excluded from `sbom.json`
54
+ (`--omit dev`). Listed for completeness: `@cyclonedx/cyclonedx-npm` 6.0.1 (Apache-2.0), `typescript`
55
+ 5.9.3 (Apache-2.0), `vitest` 4.1.11 (MIT), `@vitest/coverage-v8` 4.1.11 (MIT), `@types/node` 20.19.43
56
+ (MIT), `@types/express` 5.0.6 (MIT).
57
+
58
+ <!-- BEGIN GENERATED COMPONENT LIST - edit gen-oss.mjs, not this block -->
59
+
60
+ **111 components** are distributed with this product. Generated from `sbom.json`; regenerate with `npm run oss`.
61
+
62
+ Licence summary: MIT (100), ISC (7), BSD-2-Clause (2), BSD-3-Clause (2). All are permissive attribution licences; none are copyleft.
63
+
64
+ | Component | Version | Licence | Direct dependency |
65
+ |-----------|---------|---------|-------------------|
66
+ | @hono/node-server | 2.1.1 | [MIT](https://opensource.org/license/mit) | no |
67
+ | @modelcontextprotocol/sdk | 1.30.0 | [MIT](https://opensource.org/license/mit) | yes |
68
+ | accepts | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
69
+ | ajv | 8.20.0 | [MIT](https://opensource.org/license/mit) | no |
70
+ | ajv-formats | 3.0.1 | [MIT](https://opensource.org/license/mit) | no |
71
+ | array-flatten | 1.1.1 | [MIT](https://opensource.org/license/mit) | no |
72
+ | body-parser | 2.3.0 | [MIT](https://opensource.org/license/mit) | no |
73
+ | bundle-name | 4.1.0 | [MIT](https://opensource.org/license/mit) | no |
74
+ | bytes | 3.1.2 | [MIT](https://opensource.org/license/mit) | no |
75
+ | call-bind-apply-helpers | 1.0.2 | [MIT](https://opensource.org/license/mit) | no |
76
+ | call-bound | 1.0.4 | [MIT](https://opensource.org/license/mit) | no |
77
+ | content-disposition | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
78
+ | content-type | 1.0.5 | [MIT](https://opensource.org/license/mit) | no |
79
+ | cookie | 0.7.2 | [MIT](https://opensource.org/license/mit) | no |
80
+ | cookie-signature | 1.2.2 | [MIT](https://opensource.org/license/mit) | no |
81
+ | cors | 2.8.6 | [MIT](https://opensource.org/license/mit) | yes |
82
+ | cross-spawn | 7.0.6 | [MIT](https://opensource.org/license/mit) | no |
83
+ | debug | 4.4.3 | [MIT](https://opensource.org/license/mit) | no |
84
+ | default-browser | 5.4.0 | [MIT](https://opensource.org/license/mit) | no |
85
+ | default-browser-id | 5.0.1 | [MIT](https://opensource.org/license/mit) | no |
86
+ | define-lazy-prop | 3.0.0 | [MIT](https://opensource.org/license/mit) | no |
87
+ | depd | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
88
+ | destroy | 1.2.0 | [MIT](https://opensource.org/license/mit) | no |
89
+ | dotenv | 16.6.1 | [BSD-2-Clause](https://opensource.org/license/bsd-2-clause) | yes |
90
+ | dunder-proto | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
91
+ | ee-first | 1.1.1 | [MIT](https://opensource.org/license/mit) | no |
92
+ | encodeurl | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
93
+ | es-define-property | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
94
+ | es-errors | 1.3.0 | [MIT](https://opensource.org/license/mit) | no |
95
+ | es-object-atoms | 1.1.1 | [MIT](https://opensource.org/license/mit) | no |
96
+ | escape-html | 1.0.3 | [MIT](https://opensource.org/license/mit) | no |
97
+ | etag | 1.8.1 | [MIT](https://opensource.org/license/mit) | no |
98
+ | eventsource | 3.0.7 | [MIT](https://opensource.org/license/mit) | no |
99
+ | eventsource-parser | 3.0.6 | [MIT](https://opensource.org/license/mit) | no |
100
+ | express | 5.2.1 | [MIT](https://opensource.org/license/mit) | yes |
101
+ | express-rate-limit | 7.5.1 | [MIT](https://opensource.org/license/mit) | yes |
102
+ | fast-deep-equal | 3.1.3 | [MIT](https://opensource.org/license/mit) | no |
103
+ | fast-uri | 3.1.6 | [BSD-3-Clause](https://opensource.org/license/bsd-3-clause) | no |
104
+ | finalhandler | 2.1.1 | [MIT](https://opensource.org/license/mit) | no |
105
+ | forwarded | 0.2.0 | [MIT](https://opensource.org/license/mit) | no |
106
+ | fresh | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
107
+ | function-bind | 1.1.2 | [MIT](https://opensource.org/license/mit) | no |
108
+ | get-intrinsic | 1.3.0 | [MIT](https://opensource.org/license/mit) | no |
109
+ | get-proto | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
110
+ | gopd | 1.2.0 | [MIT](https://opensource.org/license/mit) | no |
111
+ | has-symbols | 1.1.0 | [MIT](https://opensource.org/license/mit) | no |
112
+ | hasown | 2.0.2 | [MIT](https://opensource.org/license/mit) | no |
113
+ | hono | 4.13.5 | [MIT](https://opensource.org/license/mit) | no |
114
+ | http-errors | 2.0.1 | [MIT](https://opensource.org/license/mit) | no |
115
+ | iconv-lite | 0.7.2 | [MIT](https://opensource.org/license/mit) | no |
116
+ | inherits | 2.0.4 | [ISC](https://opensource.org/license/isc-license-txt) | no |
117
+ | ip-address | 10.7.0 | [MIT](https://opensource.org/license/mit) | no |
118
+ | ipaddr.js | 1.9.1 | [MIT](https://opensource.org/license/mit) | no |
119
+ | is-docker | 3.0.0 | [MIT](https://opensource.org/license/mit) | no |
120
+ | is-inside-container | 1.0.0 | [MIT](https://opensource.org/license/mit) | no |
121
+ | is-promise | 4.0.0 | [MIT](https://opensource.org/license/mit) | no |
122
+ | is-wsl | 3.1.0 | [MIT](https://opensource.org/license/mit) | no |
123
+ | isexe | 2.0.0 | [ISC](https://opensource.org/license/isc-license-txt) | no |
124
+ | jose | 6.1.3 | [MIT](https://opensource.org/license/mit) | no |
125
+ | json-schema-traverse | 1.0.0 | [MIT](https://opensource.org/license/mit) | no |
126
+ | json-schema-typed | 8.0.2 | [BSD-2-Clause](https://opensource.org/license/bsd-2-clause) | no |
127
+ | math-intrinsics | 1.1.0 | [MIT](https://opensource.org/license/mit) | no |
128
+ | mcp-remote | 0.1.37 | [MIT](https://opensource.org/license/mit) | yes |
129
+ | media-typer | 1.1.0 | [MIT](https://opensource.org/license/mit) | no |
130
+ | merge-descriptors | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
131
+ | methods | 1.1.2 | [MIT](https://opensource.org/license/mit) | no |
132
+ | mime | 1.6.0 | [MIT](https://opensource.org/license/mit) | no |
133
+ | mime-db | 1.54.0 | [MIT](https://opensource.org/license/mit) | no |
134
+ | mime-types | 3.0.2 | [MIT](https://opensource.org/license/mit) | no |
135
+ | ms | 2.1.3 | [MIT](https://opensource.org/license/mit) | no |
136
+ | negotiator | 1.0.0 | [MIT](https://opensource.org/license/mit) | no |
137
+ | object-assign | 4.1.1 | [MIT](https://opensource.org/license/mit) | no |
138
+ | object-inspect | 1.13.4 | [MIT](https://opensource.org/license/mit) | no |
139
+ | on-finished | 2.4.1 | [MIT](https://opensource.org/license/mit) | no |
140
+ | once | 1.4.0 | [ISC](https://opensource.org/license/isc-license-txt) | no |
141
+ | open | 10.2.0 | [MIT](https://opensource.org/license/mit) | no |
142
+ | parseurl | 1.3.3 | [MIT](https://opensource.org/license/mit) | no |
143
+ | path-key | 3.1.1 | [MIT](https://opensource.org/license/mit) | no |
144
+ | path-to-regexp | 8.4.2 | [MIT](https://opensource.org/license/mit) | no |
145
+ | pkce-challenge | 5.0.1 | [MIT](https://opensource.org/license/mit) | no |
146
+ | proxy-addr | 2.0.7 | [MIT](https://opensource.org/license/mit) | no |
147
+ | qs | 6.15.3 | [BSD-3-Clause](https://opensource.org/license/bsd-3-clause) | no |
148
+ | range-parser | 1.2.1 | [MIT](https://opensource.org/license/mit) | no |
149
+ | raw-body | 3.0.2 | [MIT](https://opensource.org/license/mit) | no |
150
+ | require-from-string | 2.0.2 | [MIT](https://opensource.org/license/mit) | no |
151
+ | router | 2.2.0 | [MIT](https://opensource.org/license/mit) | no |
152
+ | run-applescript | 7.1.0 | [MIT](https://opensource.org/license/mit) | no |
153
+ | safe-buffer | 5.2.1 | [MIT](https://opensource.org/license/mit) | no |
154
+ | safer-buffer | 2.1.2 | [MIT](https://opensource.org/license/mit) | no |
155
+ | send | 1.2.1 | [MIT](https://opensource.org/license/mit) | no |
156
+ | serve-static | 2.2.1 | [MIT](https://opensource.org/license/mit) | no |
157
+ | setprototypeof | 1.2.0 | [ISC](https://opensource.org/license/isc-license-txt) | no |
158
+ | shebang-command | 2.0.0 | [MIT](https://opensource.org/license/mit) | no |
159
+ | shebang-regex | 3.0.0 | [MIT](https://opensource.org/license/mit) | no |
160
+ | side-channel | 1.1.1 | [MIT](https://opensource.org/license/mit) | no |
161
+ | side-channel-list | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
162
+ | side-channel-map | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
163
+ | side-channel-weakmap | 1.0.2 | [MIT](https://opensource.org/license/mit) | no |
164
+ | statuses | 2.0.2 | [MIT](https://opensource.org/license/mit) | no |
165
+ | strict-url-sanitise | 0.0.1 | [MIT](https://opensource.org/license/mit) | no |
166
+ | toidentifier | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
167
+ | type-is | 2.1.0 | [MIT](https://opensource.org/license/mit) | no |
168
+ | undici | 7.29.0 | [MIT](https://opensource.org/license/mit) | no |
169
+ | unpipe | 1.0.0 | [MIT](https://opensource.org/license/mit) | no |
170
+ | utils-merge | 1.0.1 | [MIT](https://opensource.org/license/mit) | no |
171
+ | vary | 1.1.2 | [MIT](https://opensource.org/license/mit) | no |
172
+ | which | 2.0.2 | [ISC](https://opensource.org/license/isc-license-txt) | no |
173
+ | wrappy | 1.0.2 | [ISC](https://opensource.org/license/isc-license-txt) | no |
174
+ | wsl-utils | 0.1.0 | [MIT](https://opensource.org/license/mit) | no |
175
+ | zod | 3.25.76 | [MIT](https://opensource.org/license/mit) | yes |
176
+ | zod-to-json-schema | 3.25.1 | [ISC](https://opensource.org/license/isc-license-txt) | no |
177
+
178
+ <!-- END GENERATED COMPONENT LIST -->
package/README.md CHANGED
@@ -25,6 +25,7 @@ This Model Context Protocol (MCP) server connects AI assistants to WinCC OA SCAD
25
25
  - **Managers**: `manager/manager_control`, `manager/manager_add`, `manager/manager_remove`, `manager/manager_properties`
26
26
  - **Dashboards**: `dashboards/dashboard`, `dashboards/widget`
27
27
  - **OPC UA**: `opcua/opcua_connection`, `opcua/opcua_address`
28
+ - **MQTT**: `mqtt/mqtt_connection`
28
29
 
29
30
  **Note**: Icon tools (`icons/icon`) create/delete SVG files but don't modify SCADA data.
30
31
 
@@ -34,6 +35,17 @@ Example read-only configuration:
34
35
  TOOLS=datapoints/dp_basic,datapoints/dp_types,archive/archive_query,common/common_query,pv_range/pv_range_query,manager/manager_list,opcua/opcua_connection
35
36
  ```
36
37
 
38
+ ## 🔐 Cybersecurity information
39
+
40
+ In order to protect plants, systems, machines and networks against cyber threats, it is necessary to
41
+ implement – and continuously maintain – a holistic, state-of-the-art industrial cybersecurity concept.
42
+ Siemens' products and solutions constitute one element of such a concept. For more information about
43
+ industrial cybersecurity, please visit www.siemens.com/cybersecurity-industry.
44
+
45
+ See [LEGAL_INFO.md](LEGAL_INFO.md) for the full cybersecurity information and the application-example
46
+ terms of use. Note in particular that this server's HTTP transport is **unencrypted by default** — see
47
+ [Transport security](#remote-host-transport-security) below.
48
+
37
49
  ## ℹ️ Version Requirements
38
50
 
39
51
  **Dashboard Tools Requirement:** The dashboard-related tools require **WinCC OA version 3.21 or higher**. If you are using an earlier version of WinCC OA, these tools will not be available. Other tools and features will continue to work with earlier versions.
@@ -63,9 +75,20 @@ Then install the required packages:
63
75
 
64
76
  ```bash
65
77
  npm install @etm-professional-control/winccoa-mcp-server
78
+ ```
79
+
80
+ Install the WinCC OA JavaScript Manager package from your local WinCC OA installation. The path depends on your WinCC OA version and installation:
81
+
82
+ **WinCC OA 3.20** (default path):
83
+ ```bash
66
84
  npm install file:C:/Siemens/Automation/WinCC_OA/3.20/javascript/winccoa-manager
67
85
  ```
68
86
 
87
+ **WinCC OA 3.21** (default path):
88
+ ```cmd
89
+ npm install file:"C:\Program Files\Siemens\WinCC_OA\3.21\javascript\winccoa-manager"
90
+ ```
91
+
69
92
  ### 2. Configure
70
93
 
71
94
  Create configuration file from template:
@@ -101,16 +124,18 @@ WINCCOA_FIELD=default # or 'oil', 'transport'
101
124
 
102
125
  # Configure available tools (examples - see docs/TOOLS.md for complete list)
103
126
  # Full feature set
104
- TOOLS=datapoints/dp_basic,datapoints/dp_set,opcua/opcua_connection,dashboards/dashboard,manager/manager_list
127
+ TOOLS=datapoints/dp_basic,datapoints/dp_set,opcua/opcua_connection,mqtt/mqtt_connection,dashboards/dashboard,manager/manager_list
128
+ # Default: Read-only monitoring (safe starting point)
129
+ TOOLS=datapoints/dp_basic,datapoints/dp_types,archive/archive_query,common/common_query,pv_range/pv_range_query,manager/manager_list
105
130
 
106
- # Dashboard-focused setup
131
+ # Dashboard-focused setup (includes write operations)
107
132
  # TOOLS=datapoints/dp_basic,dashboards/dashboard,dashboards/widget,icons/icon
108
133
 
109
- # Manager control setup
134
+ # Manager control setup (includes write operations)
110
135
  # TOOLS=manager/manager_list,manager/manager_control,manager/manager_add
111
136
 
112
- # Read-only monitoring
113
- # TOOLS=datapoints/dp_basic,archive/archive_query,alarms/alarm_query,manager/manager_list
137
+ # Full feature set (includes all write operations - use with caution)
138
+ # TOOLS=datapoints/dp_basic,datapoints/dp_set,opcua/opcua_connection,dashboards/dashboard,manager/manager_list
114
139
  ```
115
140
 
116
141
  ### 3. Start Server
@@ -143,6 +168,8 @@ Edit the configuration file:
143
168
 
144
169
  **⚠️ IMPORTANT:** Replace `YOUR_TOKEN_HERE` with the exact same token from your `.env` file's `MCP_API_TOKEN`. The tokens must match exactly!
145
170
 
171
+ **🔒 Transport security:** the `http://localhost:3000/mcp` URL above is plain HTTP. That is acceptable **only** because the traffic never leaves the machine. As soon as the server and the client are on different hosts, the bearer token and every request and response cross the network in clear text — see [Remote Host](#remote-host-transport-security) below and enable TLS.
172
+
146
173
  **Windows Path Issue:** If you encounter the error `"C:\Program" is either misspelled or could not be found`, use this alternative configuration:
147
174
 
148
175
  ```json
@@ -162,7 +189,26 @@ This method uses `cmd` to properly handle paths with spaces in Windows.
162
189
  - On Windows: Close Claude through the task-tray menu by selecting "Exit", or end the task in Task Manager if needed
163
190
  - On macOS/Linux: Quit Claude Desktop completely and restart
164
191
 
165
- **Remote Host:** When connecting to a remote WinCC OA server (not `localhost`), you must add the `--allow-http` flag to the `mcp-remote` args. Example:
192
+ <a id="remote-host-transport-security"></a>
193
+ **Remote Host:** When connecting to a remote WinCC OA server (not `localhost`), the transport is no longer local.
194
+
195
+ > **🔒 Enable TLS before doing this.** `--allow-http` tells the client to accept an unencrypted
196
+ > connection: the `Authorization: Bearer` token, all datapoint values and all configuration changes
197
+ > travel the network in clear text, and can be captured and replayed by anyone able to observe the
198
+ > traffic. The server itself prints a `[SECURITY WARNING]` at startup when it binds a non-loopback
199
+ > address without TLS.
200
+ >
201
+ > Configure TLS on the server (`MCP_SSL_ENABLED`, `MCP_SSL_CERT_PATH`, `MCP_SSL_KEY_PATH` — see
202
+ > [Configuration](docs/CONFIGURATION.md#ssltls-configuration)), then use an `https://` URL and **drop
203
+ > `--allow-http`**:
204
+ >
205
+ > ```json
206
+ > "args": ["mcp-remote", "https://winccoaserver:3000/mcp", "--header", "Authorization: Bearer YOUR_TOKEN_HERE"]
207
+ > ```
208
+ >
209
+ > Use `--allow-http` only on a network you fully control, and treat the token as compromised if you do.
210
+
211
+ If you accept that risk, add the `--allow-http` flag to the `mcp-remote` args:
166
212
 
167
213
  ```json
168
214
  {
@@ -183,7 +229,15 @@ If you are using [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (
183
229
  claude mcp add --transport http winccoa http://localhost:3000/mcp --header "Authorization: Bearer your-secure-token-here"
184
230
  ```
185
231
 
186
- **Remote Host:** When connecting to a remote WinCC OA server (not `localhost`), add the `--allow-http` flag:
232
+ **Remote Host:** With TLS configured on the server, use the `https://` URL — no extra flag is needed:
233
+
234
+ ```bash
235
+ claude mcp add --transport http winccoa https://winccoaserver:3000/mcp --header "Authorization: Bearer your-secure-token-here"
236
+ ```
237
+
238
+ > **🔒** Only if the server has no TLS, and only on a network you fully control, add `--allow-http`.
239
+ > The token then crosses the network in clear text — see the warning under
240
+ > [Remote Host](#remote-host-transport-security) above.
187
241
 
188
242
  ```bash
189
243
  claude mcp add --transport http winccoa http://winccoaserver:3000/mcp --header "Authorization: Bearer your-secure-token-here" --allow-http
@@ -209,6 +263,7 @@ claude mcp add --transport http winccoa http://winccoaserver:3000/mcp --header "
209
263
 
210
264
  - **📊 Datapoints** - Read, write, and create datapoints and types
211
265
  - **🔗 OPC UA** - Connect to OPC UA servers and browse address spaces
266
+ - **📡 MQTT** - Connect to MQTT brokers and map topics to datapoints
212
267
  - **📈 Dashboards & Widgets** - Create and manage visualization dashboards
213
268
  - **🚨 Alarms** - Configure alarm thresholds and notifications
214
269
  - **📁 Archives** - Query and configure historical data storage
@@ -0,0 +1,28 @@
1
+ # WinCC OA Demo Application - Project-Specific Instructions
2
+
3
+
4
+ ## Recipe and Production Control Rules
5
+
6
+ ### Intensity and Recipe Setpoints
7
+ - **'Intensity' and 'recipe' setpoints MUST not be used for volume control**
8
+ - **'Intensity' and 'recipe' setpoints MUST contain exact values from recipe**
9
+
10
+ ### Recipe Interpretation
11
+ **IMPORTANT RECIPE INTERPRETATION:**
12
+ - Recipe percentages (Cyan: 30%, Magenta: 25%, etc.) are **VALVE INTENSITY SETPOINTS**
13
+ - They are **NOT percentages of the target volume**
14
+ - Material consumption = `(setpoint_percentage/100) � flow_rate � production_time`
15
+
16
+ **NEVER** calculate material requirements as `(percentage/100) � target_volume`
17
+ **ALWAYS** use the production time and flow rate formula for verification
18
+
19
+ ### Production Verification
20
+ **CRITICAL: After setting any production setpoints, ALWAYS verify actual material consumption using:**
21
+ - Production time
22
+ - Flow rates
23
+ - Valve positions from applied setpoints
24
+
25
+
26
+
27
+ ### Read-Only Patterns
28
+ All other datapoints are READ-ONLY for the AI system
@@ -11,7 +11,22 @@ export declare const serverConfig: ServerConfig;
11
11
  */
12
12
  export declare function loadSSLConfig(): SslCertificates | null;
13
13
  /**
14
- * Validate configuration
14
+ * Is this host a loopback address?
15
+ *
16
+ * Used to decide whether running without TLS is merely a development
17
+ * convenience or an actual exposure: on a loopback bind the API token never
18
+ * leaves the machine, on any other bind it crosses the network in clear text.
19
+ *
20
+ * @param host - Host or interface the server binds to
21
+ * @returns true if traffic cannot leave the machine
22
+ */
23
+ export declare function isLoopbackHost(host: string): boolean;
24
+ /**
25
+ * Validate configuration.
26
+ *
27
+ * Returns messages rather than throwing, so the caller can report every problem
28
+ * at once instead of one per restart.
29
+ *
15
30
  * @returns Array of validation error messages (empty if valid)
16
31
  */
17
32
  export declare function validateConfig(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"server.config.d.ts","sourceRoot":"","sources":["../../src/config/server.config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGvE,eAAO,MAAM,YAAY,EAAE,YAuD1B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,aAAa,IAAI,eAAe,GAAG,IAAI,CAmBtD;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAiBzC"}
1
+ {"version":3,"file":"server.config.d.ts","sourceRoot":"","sources":["../../src/config/server.config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGvE,eAAO,MAAM,YAAY,EAAE,YAuD1B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,aAAa,IAAI,eAAe,GAAG,IAAI,CAmBtD;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQpD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAiDzC"}
@@ -79,23 +79,73 @@ export function loadSSLConfig() {
79
79
  }
80
80
  }
81
81
  /**
82
- * Validate configuration
82
+ * Is this host a loopback address?
83
+ *
84
+ * Used to decide whether running without TLS is merely a development
85
+ * convenience or an actual exposure: on a loopback bind the API token never
86
+ * leaves the machine, on any other bind it crosses the network in clear text.
87
+ *
88
+ * @param host - Host or interface the server binds to
89
+ * @returns true if traffic cannot leave the machine
90
+ */
91
+ export function isLoopbackHost(host) {
92
+ const h = host.trim().toLowerCase().replace(/^\[|\]$/g, '');
93
+ return (h === 'localhost' ||
94
+ h === '::1' ||
95
+ h === '0:0:0:0:0:0:0:1' ||
96
+ /^127\./.test(h));
97
+ }
98
+ /**
99
+ * Validate configuration.
100
+ *
101
+ * Returns messages rather than throwing, so the caller can report every problem
102
+ * at once instead of one per restart.
103
+ *
83
104
  * @returns Array of validation error messages (empty if valid)
84
105
  */
85
106
  export function validateConfig() {
86
- console.log('🔍 Starting configuration validation...');
87
- console.log('🔍 process.env.MCP_API_TOKEN:', process.env.MCP_API_TOKEN ? 'SET' : 'NOT SET');
88
- console.log('🔍 serverConfig.http.auth.token:', serverConfig.http.auth.token ? 'SET' : 'NOT SET');
89
107
  const errors = [];
90
- // Always require API token
108
+ // Always require an API token.
91
109
  if (!serverConfig.http.auth.token) {
92
- console.log('❌ MCP_API_TOKEN validation failed');
93
- errors.push('MCP_API_TOKEN must be set in environment variables or .env file');
110
+ errors.push('MCP_API_TOKEN must be set in the environment or .env file. ' +
111
+ 'Generate one with: openssl rand -hex 32');
94
112
  }
95
- else {
96
- console.log('✅ MCP_API_TOKEN validation passed');
113
+ // If TLS is on, the certificate must actually be usable. Previously
114
+ // loadSSLConfig() returned null and the caller reported only
115
+ // "certificates could not be loaded", which named neither the missing
116
+ // variable nor the unreadable path.
117
+ const ssl = serverConfig.http.ssl;
118
+ if (ssl.enabled) {
119
+ for (const [envVar, value] of [
120
+ ['MCP_SSL_CERT_PATH', ssl.cert],
121
+ ['MCP_SSL_KEY_PATH', ssl.key]
122
+ ]) {
123
+ if (!value) {
124
+ errors.push(`MCP_SSL_ENABLED is true but ${envVar} is not set. ` +
125
+ 'Set it, or set MCP_SSL_ENABLED=false to serve plain HTTP. ' +
126
+ 'To create a self-signed pair: openssl req -x509 -newkey rsa:2048 ' +
127
+ '-nodes -keyout key.pem -out cert.pem -days 365 -subj "/CN=localhost"');
128
+ }
129
+ else {
130
+ try {
131
+ readFileSync(value);
132
+ }
133
+ catch (cause) {
134
+ const reason = cause instanceof Error ? cause.message : String(cause);
135
+ errors.push(`${envVar} is set to "${value}" but could not be read: ${reason}`);
136
+ }
137
+ }
138
+ }
139
+ if (ssl.ca) {
140
+ try {
141
+ readFileSync(ssl.ca);
142
+ }
143
+ catch (cause) {
144
+ const reason = cause instanceof Error ? cause.message : String(cause);
145
+ errors.push(`MCP_SSL_CA_PATH is set to "${ssl.ca}" but could not be read: ${reason}`);
146
+ }
147
+ }
97
148
  }
98
- console.log('🔍 Validation completed with', errors.length, 'errors');
99
149
  return errors;
100
150
  }
101
151
  //# sourceMappingURL=server.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.config.js","sourceRoot":"","sources":["../../src/config/server.config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAGlC,kCAAkC;AAClC,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,4BAA4B;IAC5B,IAAI,EAAG,OAAO,CAAC,GAAG,CAAC,QAA6B,IAAI,MAAM;IAE1D,4BAA4B;IAC5B,IAAI,EAAE;QACJ,IAAI,EAA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CACzE,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC;oBACH,YAAY,CAAC,KAAK,CAAC,CAAC;gBACtB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;oBACtE,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,eAAe,KAAK,4BAA4B,MAAM,EAAE,CAAC,CAAC;gBACjF,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC;YACX,IAAI,CAAC;gBACH,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACtE,MAAM,CAAC,IAAI,CAAC,8BAA8B,GAAG,CAAC,EAAE,4BAA4B,MAAM,EAAE,CAAC,CAAC;YACxF,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,50 @@
1
+ # Default WinCC OA Instructions
2
+
3
+ ## Overview
4
+ These are general instructions for WinCC OA systems when no specific field configuration is selected.
5
+
6
+ ## General Safety Guidelines
7
+ - Always verify the impact of changes before execution
8
+ - Critical systems should not be modified without authorization
9
+ - Emergency stop functionality must remain accessible
10
+ - Backup current values before making modifications
11
+
12
+ ## Best Practices
13
+ 1. **Read Before Write**:
14
+ - Always check current value before modification
15
+ - Understand the datapoint's purpose and connections
16
+ - Verify engineering units and ranges
17
+
18
+ 2. **Change Management**:
19
+ - Document reasons for changes
20
+ - Consider impact on connected systems
21
+ - Test in non-production environment when possible
22
+
23
+ 3. **Monitoring**:
24
+ - Watch for alarms after making changes
25
+ - Verify expected behavior
26
+ - Be prepared to revert changes if needed
27
+
28
+ ## Common Datapoint Types
29
+ - **Analog Values**: Respect min/max limits
30
+ - **Digital Values**: Usually 0/1 or TRUE/FALSE
31
+ - **String Values**: Check for valid enumeration values
32
+ - **Complex Types**: Modify individual elements carefully
33
+
34
+ ## System Integration
35
+ - External systems may have delayed reactions
36
+ - Database updates may not be immediate
37
+ - Communication timeouts should be considered
38
+
39
+ ## Troubleshooting
40
+ - Check datapoint quality codes
41
+ - Verify communication status
42
+ - Look for configuration mismatches
43
+ - Review recent changes in system
44
+
45
+ ## Access Control
46
+ - Respect user permissions
47
+ - Some operations require elevated privileges
48
+ - Audit trails track all modifications
49
+
50
+ This default configuration provides basic safety while allowing experimentation with designated test points.