@xano/developer-mcp 1.0.65 → 1.0.67
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.
|
@@ -135,10 +135,24 @@ XanoScript uses specific type names:
|
|
|
135
135
|
|
|
136
136
|
### Comments
|
|
137
137
|
|
|
138
|
+
XanoScript supports `//` single-line comments. They can be placed above an object definition, above inputs, and above stack items:
|
|
139
|
+
|
|
138
140
|
```xs
|
|
139
|
-
//
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
// Example
|
|
142
|
+
function empty {
|
|
143
|
+
input {
|
|
144
|
+
// Example
|
|
145
|
+
text test
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
stack {
|
|
149
|
+
// Example
|
|
150
|
+
var $x1 {
|
|
151
|
+
value = ""
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
response = $x1
|
|
142
156
|
}
|
|
143
157
|
```
|
|
144
158
|
|
|
@@ -221,6 +221,20 @@ query "users/{user_id}" verb=GET {
|
|
|
221
221
|
}
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
+
### Route Collisions
|
|
225
|
+
|
|
226
|
+
Routing does **not** cascade. A wildcard segment collides with any literal at the same position and verb, causing a save error.
|
|
227
|
+
|
|
228
|
+
```xs
|
|
229
|
+
// WRONG — these collide (both match the first segment)
|
|
230
|
+
query "{workspace_id}" verb=GET { ... }
|
|
231
|
+
query "something" verb=GET { ... }
|
|
232
|
+
|
|
233
|
+
// CORRECT — prefix wildcards with a literal
|
|
234
|
+
query "workspace/{workspace_id}" verb=GET { ... }
|
|
235
|
+
query "something" verb=GET { ... }
|
|
236
|
+
```
|
|
237
|
+
|
|
224
238
|
---
|
|
225
239
|
|
|
226
240
|
## CRUD Examples
|
|
@@ -443,6 +457,7 @@ When using `return = { type: "list", paging: {...} }`:
|
|
|
443
457
|
1. **Use specific canonicals** - Prefix canonicals to avoid instance-level collisions (e.g., `myapp-users` not `users`)
|
|
444
458
|
2. **Authenticate writes** - Always require `auth` for POST/PATCH/DELETE endpoints
|
|
445
459
|
3. **Paginate lists** - Use `return = { type: "list", paging: {...} }` to avoid unbounded result sets
|
|
460
|
+
4. **Prefix wildcard path segments** - Routing does not cascade, so `{id}` at a path segment collides with any literal at the same segment. Always use a prefix like `workspace/{workspace_id}` instead of bare `{workspace_id}`
|
|
446
461
|
|
|
447
462
|
---
|
|
448
463
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xano/developer-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
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",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"test": "vitest run",
|
|
37
37
|
"test:watch": "vitest",
|
|
38
38
|
"test:coverage": "vitest run --coverage",
|
|
39
|
-
"prepublishOnly": "npm run build"
|
|
39
|
+
"prepublishOnly": "./scripts/check-publish-tag.sh && npm run build",
|
|
40
|
+
"publish:beta": "./scripts/bump-version.sh beta && npm publish --tag beta",
|
|
41
|
+
"publish:latest": "./scripts/bump-version.sh patch && npm publish"
|
|
40
42
|
},
|
|
41
43
|
"keywords": [
|
|
42
44
|
"xano",
|