codesysultra 1.0.9 → 1.1.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/dist/templates/get_all_tools.py +13 -13
- package/package.json +2 -2
|
@@ -28,9 +28,9 @@ def get_codesys_system_api():
|
|
|
28
28
|
print " - %s" % method
|
|
29
29
|
if len(methods) > 20:
|
|
30
30
|
print " ... and %d more" % (len(methods) - 20)
|
|
31
|
-
except Exception
|
|
31
|
+
except Exception, e:
|
|
32
32
|
print " Error listing methods: %s" % e
|
|
33
|
-
except Exception
|
|
33
|
+
except Exception, e:
|
|
34
34
|
print " Error: %s" % e
|
|
35
35
|
|
|
36
36
|
print "\n=== Script Engine Functions ==="
|
|
@@ -61,11 +61,11 @@ def get_codesys_system_api():
|
|
|
61
61
|
try:
|
|
62
62
|
member_value = getattr(enum_obj, member_name)
|
|
63
63
|
print " %s = %s" % (member_name, member_value)
|
|
64
|
-
except Exception
|
|
64
|
+
except Exception, e:
|
|
65
65
|
print " Error: %s" % e
|
|
66
|
-
except Exception
|
|
66
|
+
except Exception, e:
|
|
67
67
|
print " Error: %s" % e
|
|
68
|
-
except Exception
|
|
68
|
+
except Exception, e:
|
|
69
69
|
print " Error: %s" % e
|
|
70
70
|
|
|
71
71
|
print "\n=== Project Management ==="
|
|
@@ -97,11 +97,11 @@ def get_codesys_system_api():
|
|
|
97
97
|
try:
|
|
98
98
|
value_value = getattr(type_obj, value_name)
|
|
99
99
|
print " %s = %s" % (value_name, value_value)
|
|
100
|
-
except Exception
|
|
100
|
+
except Exception, e:
|
|
101
101
|
print " Error: %s" % e
|
|
102
|
-
except Exception
|
|
102
|
+
except Exception, e:
|
|
103
103
|
print " Error: %s" % e
|
|
104
|
-
except Exception
|
|
104
|
+
except Exception, e:
|
|
105
105
|
print " Error: %s" % e
|
|
106
106
|
|
|
107
107
|
print "\n=== Implementation Languages ==="
|
|
@@ -123,18 +123,18 @@ def get_codesys_system_api():
|
|
|
123
123
|
try:
|
|
124
124
|
value_value = getattr(lang_obj, value_name)
|
|
125
125
|
print " %s = %s" % (value_name, value_value)
|
|
126
|
-
except Exception
|
|
126
|
+
except Exception, e:
|
|
127
127
|
print " Error: %s" % e
|
|
128
|
-
except Exception
|
|
128
|
+
except Exception, e:
|
|
129
129
|
print " Error: %s" % e
|
|
130
|
-
except Exception
|
|
130
|
+
except Exception, e:
|
|
131
131
|
print " Error: %s" % e
|
|
132
132
|
|
|
133
133
|
print "\n=== Version Info ==="
|
|
134
134
|
try:
|
|
135
135
|
version = getattr(script_engine, '__version__', 'Unknown')
|
|
136
136
|
print " Script Engine Version: %s" % version
|
|
137
|
-
except Exception
|
|
137
|
+
except Exception, e:
|
|
138
138
|
print " Error getting version: %s" % e
|
|
139
139
|
|
|
140
140
|
print "\n=== API Usage Examples ==="
|
|
@@ -157,7 +157,7 @@ def get_codesys_system_api():
|
|
|
157
157
|
print "SCRIPT_SUCCESS: CODESYS system API retrieved successfully."
|
|
158
158
|
sys.exit(0)
|
|
159
159
|
|
|
160
|
-
except Exception
|
|
160
|
+
except Exception, e:
|
|
161
161
|
detailed_error = traceback.format_exc()
|
|
162
162
|
error_message = "Error retrieving CODESYS system API: %s\n%s" % (e, detailed_error)
|
|
163
163
|
print error_message
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codesysultra",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for CODESYS automation platform",
|
|
5
5
|
"main": "dist/server.js",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.10.2",
|
|
38
38
|
"axios": "^1.6.8",
|
|
39
|
-
"codesysultra": "^1.0.
|
|
39
|
+
"codesysultra": "^1.0.9",
|
|
40
40
|
"commander": "^11.1.0",
|
|
41
41
|
"yargs": "^17.7.2",
|
|
42
42
|
"zod": "^3.24.3"
|