@xano/developer-mcp 1.0.23 → 1.0.25
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
|
|
@@ -633,8 +633,9 @@ api.request {
|
|
|
633
633
|
var $data { value = $api_result.response.result }
|
|
634
634
|
|
|
635
635
|
// Check status code
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
precondition ($api_result.response.status == 200) {
|
|
637
|
+
error_type = "standard"
|
|
638
|
+
error = "API request failed"
|
|
638
639
|
}
|
|
639
640
|
|
|
640
641
|
// Access a specific header
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.25",
|
|
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.
|
|
43
|
+
"@xano/xanoscript-language-server": "^11.6.5",
|
|
44
44
|
"minimatch": "^10.1.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|