@xano/developer-mcp 1.0.42 → 1.0.44

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.
@@ -140,7 +140,7 @@ var $total {
140
140
  ### Filters (Pipe Syntax)
141
141
 
142
142
  ```xs
143
- $value|trim|lower // Chain filters
143
+ $value|trim|to_lower // Chain filters
144
144
  $input.name|strlen // Get length
145
145
  $array|first // First element
146
146
  ($a + $b)|round:2 // Math with precision
@@ -138,10 +138,15 @@ stack {
138
138
  }
139
139
  }
140
140
 
141
- // Foreach (array iteration)
141
+ // Foreach (array iteration) - no built-in index; count manually if needed
142
+ var $index {
143
+ value = 0
144
+ }
142
145
  foreach ($input.items) {
143
146
  each as $item {
144
147
  debug.log { value = $item.name }
148
+ debug.log { value = $index }
149
+ math.add $index { value = 1 }
145
150
  }
146
151
  }
147
152
 
@@ -221,7 +221,7 @@ The most common filters at a glance:
221
221
  | Filter | Example | Result |
222
222
  |--------|---------|--------|
223
223
  | `trim` | `" hello "|trim` | `"hello"` |
224
- | `lower` | `"HELLO"|lower` | `"hello"` |
224
+ | `to_lower` | `"HELLO"|to_lower` | `"hello"` |
225
225
  | `first` | `[1,2,3]|first` | `1` |
226
226
  | `count` | `[1,2,3]|count` | `3` |
227
227
  | `to_int` | `"42"|to_int` | `42` |
@@ -257,7 +257,7 @@ function "import_large_csv" {
257
257
  db.add "record" {
258
258
  data = {
259
259
  name: $row.name|trim,
260
- email: $row.email|trim|lower,
260
+ email: $row.email|trim|to_lower,
261
261
  created_at: now
262
262
  }
263
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "MCP server and library for Xano development - XanoScript validation, Meta API, Run API, and CLI documentation",
5
5
  "type": "module",
6
6
  "main": "dist/lib.js",