isc-transforms-mcp 1.0.3 → 1.0.4
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/transforms/lint.js +5 -2
- package/package.json +1 -1
package/dist/transforms/lint.js
CHANGED
|
@@ -45,7 +45,7 @@ const ALLOWED_ATTRS = {
|
|
|
45
45
|
rightPad: new Set(["length", "padding", "input"]),
|
|
46
46
|
rule: "open", // rule-specific attributes vary
|
|
47
47
|
split: new Set(["delimiter", "index", "input"]),
|
|
48
|
-
static:
|
|
48
|
+
static: "open", // value + any named VTL dynamic variable keys allowed per docs
|
|
49
49
|
substring: new Set(["begin", "end", "input"]),
|
|
50
50
|
trim: new Set(["input"]),
|
|
51
51
|
upper: new Set(["input"]),
|
|
@@ -704,9 +704,12 @@ function lintSubstring(attrs) {
|
|
|
704
704
|
// ---------------------------------------------------------------------------
|
|
705
705
|
function lintStatic(attrs) {
|
|
706
706
|
const msgs = [];
|
|
707
|
-
|
|
707
|
+
// Presence check is handled by checkRequired (spec.requiredAttributes).
|
|
708
|
+
// Here we only validate the type when value is present.
|
|
709
|
+
if (attrs?.value !== undefined && attrs?.value !== null && typeof attrs.value !== "string") {
|
|
708
710
|
push(msgs, "error", "value must be a string.", "attributes.value");
|
|
709
711
|
}
|
|
712
|
+
// Any other keys in attributes are valid dynamic VTL variable definitions — no unknown-attribute errors.
|
|
710
713
|
return msgs;
|
|
711
714
|
}
|
|
712
715
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isc-transforms-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for SailPoint Identity Security Cloud (ISC) Transform authoring — scaffold, strict lint, catalog, and safe upsert to live tenants.",
|
|
6
6
|
"author": {
|