@xano/developer-mcp 1.0.64 → 1.0.66

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
- // Single-line comment
140
- var $total {
141
- value = 0
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
 
@@ -17,8 +17,8 @@ table "<name>" {
17
17
  auth = false // true if used for authentication
18
18
  schema {
19
19
  int id // Primary key (required)
20
- text name filters=trim
21
20
  timestamp created_at?=now
21
+ text name filters=trim
22
22
  }
23
23
  index = [
24
24
  {type: "primary", field: [{name: "id"}]}
@@ -45,12 +45,12 @@ table "user" {
45
45
  auth = true
46
46
  schema {
47
47
  int id
48
+ timestamp created_at?=now
48
49
  text name filters=trim
49
50
  email email filters=trim|lower {
50
51
  sensitive = true
51
52
  }
52
53
  password password
53
- timestamp created_at?=now
54
54
  }
55
55
  index = [
56
56
  {type: "primary", field: [{name: "id"}]}
@@ -68,10 +68,10 @@ table "user" {
68
68
  ```xs
69
69
  schema {
70
70
  int id
71
+ timestamp created_at
71
72
  text name
72
73
  decimal price
73
74
  bool is_active
74
- timestamp created_at
75
75
  date birth_date
76
76
  }
77
77
  ```
@@ -322,6 +322,7 @@ table "order" {
322
322
  1. **Always define `int id`** - Every table requires a primary key field named `id`
323
323
  2. **Use `auth = true`** only for the authentication table (typically just `user`)
324
324
  3. **Add indexes** for fields used in `db.query` WHERE clauses and JOINs to avoid full table scans
325
+ 4. **Add new fields to the bottom of the schema** - When adding new fields to an existing table, append them to the end of the schema block rather than inserting them in the middle. This preserves column ordering consistency and avoids unexpected side effects
325
326
 
326
327
  ---
327
328
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
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",