@xano/developer-mcp 1.0.22 → 1.0.24

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.
@@ -498,6 +498,13 @@ foreach ($items) {
498
498
 
499
499
  ---
500
500
 
501
+ ## Naming Rules
502
+
503
+ - Function names **cannot start with `/`** (use subfolders instead: `utils/format`)
504
+ - Use descriptive verb_noun format: `calculate_total`, `validate_user`
505
+
506
+ ---
507
+
501
508
  ## Best Practices
502
509
 
503
510
  1. **Single responsibility** - Each function does one thing well
@@ -594,11 +594,13 @@ api.request {
594
594
  url = "https://api.example.com/data"
595
595
  method = "POST"
596
596
  params = { key: "value" }
597
- headers = []|push:("Authorization: Bearer " ~ $env.API_KEY)
597
+ headers = ["Content-Type: application/json", "Authorization: Bearer " ~ $env.API_KEY]
598
598
  timeout = 30
599
599
  } as $api_result
600
600
  ```
601
601
 
602
+ > **Note:** The `headers` parameter expects an array of text strings, where each string contains the header name and value separated by a colon (e.g., `["Content-Type: application/json", "X-Custom-Header: value"]`).
603
+
602
604
  ### Response Structure
603
605
 
604
606
  The `api.request` statement returns an object with both request and response details:
@@ -49,6 +49,15 @@ run.job "Job Name" {
49
49
 
50
50
  ### Basic Example
51
51
  ```xs
52
+ run.job "Random Dad Joke" {
53
+ main = {
54
+ name: "fetch_dad_joke"
55
+ }
56
+ }
57
+ ```
58
+
59
+ ### With Empty Input (Alternative)
60
+ ```xs
52
61
  run.job "Random Dad Joke" {
53
62
  main = {
54
63
  name: "fetch_dad_joke"
@@ -118,6 +127,15 @@ run.service "email proxy"
118
127
 
119
128
  ### Basic Example
120
129
  ```xs
130
+ run.service "Random Dad Joke" {
131
+ pre = {
132
+ name: "fetch_dad_joke"
133
+ }
134
+ }
135
+ ```
136
+
137
+ ### With Empty Input (Alternative)
138
+ ```xs
121
139
  run.service "Random Dad Joke" {
122
140
  pre = {
123
141
  name: "fetch_dad_joke"
@@ -152,6 +152,17 @@ $db.post.date >=? $input.start_date
152
152
  | `intersect` | `[1,2,3]\|intersect:[2,3,4]` | `[2,3]` |
153
153
  | `join` | `["a","b"]\|join:","` | `"a,b"` |
154
154
  | `range` | `\|range:1:5` | `[1,2,3,4,5]` |
155
+ | `..` | `(1..5)` | `[1,2,3,4,5]` |
156
+
157
+ ### Range Operator
158
+
159
+ Generate numeric ranges with the `..` operator:
160
+
161
+ ```xs
162
+ (1..5) // [1,2,3,4,5]
163
+ (0..10) // [0,1,2,3,4,5,6,7,8,9,10]
164
+ ($start..$end) // Dynamic range with variables
165
+ ```
155
166
 
156
167
  ### Functional Operations
157
168
  ```xs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "MCP server for Xano Headless API documentation and XanoScript code validation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
42
  "@modelcontextprotocol/sdk": "^1.26.0",
43
- "@xano/xanoscript-language-server": "^11.6.3",
43
+ "@xano/xanoscript-language-server": "^11.6.5",
44
44
  "minimatch": "^10.1.2"
45
45
  },
46
46
  "devDependencies": {