@xano/developer-mcp 1.0.74 → 1.0.75

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.
@@ -154,9 +154,7 @@ addon has_premium {
154
154
 
155
155
  stack {
156
156
  db.query subscription {
157
- where = $db.subscription.user_id == $input.user_id
158
- && $db.subscription.status == "active"
159
- && $db.subscription.expires_at > now
157
+ where = $db.subscription.user_id == $input.user_id && $db.subscription.status == "active" && $db.subscription.expires_at > now
160
158
  return = {type: "exists"}
161
159
  }
162
160
  }
@@ -54,9 +54,7 @@ Pattern: Store refresh tokens in a `refresh_token` table. On refresh, verify the
54
54
  ```xs
55
55
  // Key operations in a refresh flow:
56
56
  db.query "refresh_token" {
57
- where = $db.refresh_token.token == $input.refresh_token
58
- && $db.refresh_token.expires_at > now
59
- && $db.refresh_token.revoked == false
57
+ where = $db.refresh_token.token == $input.refresh_token && $db.refresh_token.expires_at > now && $db.refresh_token.revoked == false
60
58
  return = { type: "single" }
61
59
  } as $stored_token
62
60
 
@@ -85,8 +83,7 @@ db.add "session" {
85
83
 
86
84
  // Validate session
87
85
  db.query "session" {
88
- where = $db.session.id == $input.session_id
89
- && $db.session.expires_at > now
86
+ where = $db.session.id == $input.session_id && $db.session.expires_at > now
90
87
  return = { type: "single" }
91
88
  } as $session
92
89
  ```
@@ -355,9 +355,7 @@ Additional operators for `db.query` where clauses:
355
355
 
356
356
  ```xs
357
357
  db.query "product" {
358
- where = $db.product.status not in ["deleted", "archived"]
359
- && $db.product.metadata @> {"featured": true}
360
- && $db.product.sku ~ "^SKU-[0-9]+"
358
+ where = $db.product.status not in ["deleted", "archived"] && $db.product.metadata @> {"featured": true} && $db.product.sku ~ "^SKU-[0-9]+"
361
359
  } as $products
362
360
  ```
363
361
 
@@ -149,8 +149,7 @@ task "daily_digest" {
149
149
  foreach ($users) {
150
150
  each as $user {
151
151
  db.query "notification" {
152
- where = $db.notification.user_id == $user.id
153
- && $db.notification.sent == false
152
+ where = $db.notification.user_id == $user.id && $db.notification.sent == false
154
153
  } as $notifications
155
154
 
156
155
  conditional {
@@ -194,9 +194,7 @@ tool "search_products" {
194
194
  }
195
195
  stack {
196
196
  db.query "product" {
197
- where = $db.product.name includes? $input.query
198
- && $db.product.category ==? $input.category
199
- && $db.product.is_active == true
197
+ where = $db.product.name includes? $input.query && $db.product.category ==? $input.category && $db.product.is_active == true
200
198
  return = { type: "list", paging: { page: 1, per_page: $input.limit } }
201
199
  } as $products
202
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
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",