@xano/developer-mcp 1.0.73 → 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.
@@ -21,7 +21,7 @@ When you pull, the CLI splits these into individual \`.xs\` files organized by t
21
21
 
22
22
  ## Directory Structure
23
23
 
24
- After \`workspace:pull\`, files are organized using snake_case naming:
24
+ After \`workspace pull\`, files are organized using snake_case naming:
25
25
 
26
26
  \`\`\`
27
27
  ./xano-code/
@@ -45,26 +45,43 @@ After \`workspace:pull\`, files are organized using snake_case naming:
45
45
  │ ├── users.xs # Table schema
46
46
  │ └── trigger/
47
47
  │ └── on_user_create.xs # Table triggers
48
- ├── agent/
49
- │ ├── support_bot.xs # AI agents
50
- │ └── trigger/
51
- │ └── on_message.xs # Agent triggers
52
- └── mcp_server/
53
- ├── my_server.xs # MCP server definitions
48
+ ├── ai/
49
+ │ ├── agent/
50
+ │ │ ├── support_bot.xs # AI agents
51
+ │ │ └── trigger/
52
+ │ │ └── on_message.xs # Agent triggers
53
+ │ ├── mcp_server/
54
+ │ │ ├── my_server.xs # MCP server definitions
55
+ │ │ └── trigger/
56
+ │ │ └── on_connect.xs # MCP server triggers
57
+ │ └── tool/
58
+ │ └── my_tool.xs # AI tools
59
+ └── realtime/
60
+ ├── channel/
61
+ │ └── my_channel.xs # Realtime channels
54
62
  └── trigger/
55
- └── on_connect.xs # MCP server triggers
56
- \`\`\``,
63
+ └── on_connect.xs # Realtime triggers
64
+ \`\`\`
65
+
66
+ ## Syntax note
67
+
68
+ Xano CLI commands are SPACE-separated (e.g. \`xano workspace pull\`), not colon-separated.
69
+
70
+ ## Alternatives
71
+
72
+ For lighter-weight iterative development without pulling the whole workspace, see the \`sandbox\` topic. Sandboxes give you an ephemeral copy of a workspace for quick testing.`,
57
73
  ai_hints: `**Key concepts:**
58
74
  - \`pull\` downloads workspace code and splits into organized .xs files
59
75
  - \`push\` combines .xs files and uploads to Xano
60
76
  - Files use snake_case naming for folders and filenames
61
77
  - API endpoints are nested under their API group folder
78
+ - The target directory is passed via \`-d/--directory\` (default: current directory); it is NOT a positional argument
62
79
 
63
80
  **Typical workflow:**
64
- 1. \`xano workspace:pull ./xano-code\` - download
81
+ 1. \`xano workspace pull -d ./xano-code\` - download
65
82
  2. Navigate to \`api/{group}/\` for API endpoints, \`function/\` for functions, etc.
66
83
  3. Edit .xs files with your editor/IDE
67
- 4. \`xano workspace:push ./xano-code\` - deploy
84
+ 4. \`xano workspace push -d ./xano-code\` - deploy
68
85
 
69
86
  **File naming:**
70
87
  - All folders and files use snake_case (e.g., \`my_function.xs\`, \`user_profile/\`)
@@ -85,161 +102,169 @@ After \`workspace:pull\`, files are organized using snake_case naming:
85
102
  - \`--sync\`: Full push of all files
86
103
  - \`--sync --delete\`: Full push AND removes remote objects not in local
87
104
  - \`--dry-run\`: Preview what would change without applying
88
- - \`--include/-i\` and \`--exclude/-e\`: Glob patterns for selective push
105
+ - \`--include/-i\` and \`--exclude/-e\`: Glob patterns for selective push (repeatable)
106
+ - \`--no-transaction\` and \`--no-guids\` disable the default transaction wrapping and GUID write-back
89
107
 
90
108
  **Git integration:**
91
- - \`workspace:git:pull\` pulls XanoScript directly from GitHub/GitLab repos
92
- - Supports private repos with \`--token\` flag
93
- - Can pull from a specific subdirectory with \`--path\``,
94
- related_topics: ["start", "branch", "function", "release", "integration"],
109
+ - \`workspace git pull\` pulls XanoScript directly from GitHub/GitLab repos
110
+ - Supports private repos with \`-t/--token\` flag (falls back to GITHUB_TOKEN env var)
111
+ - Can pull from a specific subdirectory with \`--path\`
112
+
113
+ **When to use sandbox instead:**
114
+ - \`sandbox\` is a lighter-weight alternative for ephemeral, isolated iteration
115
+ - Use workspace pull/push for canonical sync, version control, and CI/CD`,
116
+ related_topics: ["start", "branch", "function", "release", "sandbox", "integration"],
95
117
  commands: [
96
118
  {
97
- name: "workspace:list",
119
+ name: "workspace list",
98
120
  description: "List all workspaces accessible to your account",
99
- usage: "xano workspace:list [-p <profile>]",
100
- examples: ["xano workspace:list", "xano workspace:list -p production"]
121
+ usage: "xano workspace list [options]",
122
+ flags: [
123
+ { name: "latest", type: "boolean", required: false, default: "false", description: "Sort results by newest first (descending ID)" },
124
+ { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
125
+ { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
126
+ ],
127
+ examples: ["xano workspace list", "xano workspace list -p production", "xano workspace list --output json"]
101
128
  },
102
129
  {
103
- name: "workspace:get",
130
+ name: "workspace get",
104
131
  description: "Get details of a specific workspace",
105
- usage: "xano workspace:get [workspace_id] [options]",
106
- args: [
107
- { name: "workspace_id", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
108
- ],
132
+ usage: "xano workspace get [options]",
109
133
  flags: [
134
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
110
135
  { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
111
136
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
112
137
  ],
113
138
  examples: [
114
- "xano workspace:get 123",
115
- "xano workspace:get --output json",
116
- "xano workspace:get 456 -p production -o json"
139
+ "xano workspace get",
140
+ "xano workspace get -w 123",
141
+ "xano workspace get -w 456 -p production -o json"
117
142
  ]
118
143
  },
119
144
  {
120
- name: "workspace:create",
145
+ name: "workspace create",
121
146
  description: "Create a new workspace via the Xano Metadata API",
122
- usage: "xano workspace:create --name <name> [options]",
147
+ usage: "xano workspace create <name> [options]",
148
+ args: [
149
+ { name: "name", required: true, description: "Name for the new workspace" }
150
+ ],
123
151
  flags: [
124
- { name: "name", short: "n", type: "string", required: true, description: "Name of the workspace" },
125
152
  { name: "description", short: "d", type: "string", required: false, description: "Description for the workspace" },
126
153
  { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
127
154
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
128
155
  ],
129
156
  examples: [
130
- 'xano workspace:create --name "my-workspace"',
131
- 'xano workspace:create --name "my-app" --description "My application workspace"',
132
- 'xano workspace:create -n "new-project" -d "New project workspace" -o json'
157
+ "xano workspace create my-workspace",
158
+ 'xano workspace create my-app --description "My application workspace"',
159
+ 'xano workspace create new-project -d "New project workspace" -o json'
133
160
  ]
134
161
  },
135
162
  {
136
- name: "workspace:edit",
163
+ name: "workspace edit",
137
164
  description: "Edit an existing workspace via the Xano Metadata API",
138
- usage: "xano workspace:edit [workspace_id] [options]",
139
- args: [
140
- { name: "workspace_id", required: false, description: "Workspace ID to edit (uses profile workspace if not provided)" }
141
- ],
165
+ usage: "xano workspace edit [options]",
142
166
  flags: [
167
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID to edit (uses profile workspace if not provided)" },
143
168
  { name: "name", short: "n", type: "string", required: false, description: "New name for the workspace" },
144
169
  { name: "description", short: "d", type: "string", required: false, description: "New description for the workspace" },
145
170
  { name: "swagger", type: "boolean", required: false, description: "Enable or disable swagger documentation (--swagger or --no-swagger)" },
146
171
  { name: "require-token", type: "boolean", required: false, description: "Require token for documentation access (--require-token or --no-require-token)" },
172
+ { name: "allow-push", type: "boolean", required: false, description: "Allow CLI push to the workspace (--allow-push or --no-allow-push)" },
147
173
  { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
148
174
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
149
175
  ],
150
176
  examples: [
151
- 'xano workspace:edit 123 --name "new-name"',
152
- 'xano workspace:edit --name "updated-workspace" --description "Updated description"',
153
- "xano workspace:edit 123 --swagger --require-token",
154
- "xano workspace:edit 123 --no-swagger -o json"
177
+ 'xano workspace edit -w 123 --name "new-name"',
178
+ 'xano workspace edit --name "updated-workspace" --description "Updated description"',
179
+ "xano workspace edit -w 123 --swagger --require-token",
180
+ "xano workspace edit -w 123 --no-swagger -o json"
155
181
  ]
156
182
  },
157
183
  {
158
- name: "workspace:delete",
184
+ name: "workspace delete",
159
185
  description: "Delete a workspace via the Xano Metadata API. Cannot delete workspaces with active tenants.",
160
- usage: "xano workspace:delete <workspace_id> [options]",
161
- args: [
162
- { name: "workspace_id", required: true, description: "Workspace ID to delete" }
163
- ],
186
+ usage: "xano workspace delete [options]",
164
187
  flags: [
188
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID to delete (uses profile workspace if not provided)" },
165
189
  { name: "force", short: "f", type: "boolean", required: false, default: "false", description: "Skip confirmation prompt" },
166
190
  { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
167
191
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
168
192
  ],
169
193
  examples: [
170
- "xano workspace:delete 123",
171
- "xano workspace:delete 123 --force",
172
- "xano workspace:delete 123 -f -o json"
194
+ "xano workspace delete -w 123",
195
+ "xano workspace delete -w 123 --force",
196
+ "xano workspace delete -w 123 -f -o json"
173
197
  ]
174
198
  },
175
199
  {
176
- name: "workspace:pull",
177
- description: "Download workspace code to local directory. Splits multidoc into individual .xs files organized by type.",
178
- usage: "xano workspace:pull <directory> [options]",
179
- args: [
180
- { name: "directory", required: true, description: "Local directory to save files" }
181
- ],
200
+ name: "workspace pull",
201
+ description: "Download workspace code to a local directory. Splits the multidoc response into individual .xs files organized by type. The target directory is the -d/--directory flag (default: current directory), not a positional argument.",
202
+ usage: "xano workspace pull [options]",
182
203
  flags: [
204
+ { name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for pulled documents (defaults to current directory)" },
183
205
  { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile default if not set)" },
184
- { name: "branch", short: "b", type: "string", required: false, description: "Branch label to pull from" },
185
- { name: "env", type: "boolean", required: false, description: "Include environment variables" },
186
- { name: "draft", type: "boolean", required: false, description: "Include draft versions of functions" },
187
- { name: "records", type: "boolean", required: false, description: "Include table records" }
206
+ { name: "branch", short: "b", type: "string", required: false, description: "Branch label to pull from (defaults to live branch or profile branch)" },
207
+ { name: "env", type: "boolean", required: false, default: "false", description: "Include environment variables" },
208
+ { name: "draft", type: "boolean", required: false, default: "false", description: "Include draft versions of functions" },
209
+ { name: "records", type: "boolean", required: false, default: "false", description: "Include table records" },
210
+ { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
188
211
  ],
189
212
  examples: [
190
- "xano workspace:pull ./my-app",
191
- "xano workspace:pull ./staging-code -b dev",
192
- "xano workspace:pull ./backup --env --records --draft"
213
+ "xano workspace pull",
214
+ "xano workspace pull -d ./my-app",
215
+ "xano workspace pull -d ./staging-code -b dev",
216
+ "xano workspace pull -d ./backup --env --records --draft"
193
217
  ]
194
218
  },
195
219
  {
196
- name: "workspace:push",
197
- description: "Upload local XanoScript files to workspace. By default only pushes changed files (partial push). Use --sync for a full push.",
198
- usage: "xano workspace:push <directory> [options]",
199
- args: [
200
- { name: "directory", required: true, description: "Local directory containing .xs files" }
201
- ],
220
+ name: "workspace push",
221
+ description: "Upload local XanoScript files to a workspace. Default mode is partial (only changed files). Use --sync for a full push. The source directory is the -d/--directory flag (default: current directory), not a positional argument.",
222
+ usage: "xano workspace push [options]",
202
223
  flags: [
224
+ { name: "directory", short: "d", type: "string", required: false, default: ".", description: "Directory containing documents to push (defaults to current directory)" },
203
225
  { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile default if not set)" },
204
- { name: "branch", short: "b", type: "string", required: false, description: "Branch label to push to" },
205
- { name: "sync", type: "boolean", required: false, description: "Full push (default is partial/changed-only)" },
206
- { name: "delete", type: "boolean", required: false, description: "Delete remote objects not in local files (requires --sync)" },
207
- { name: "dry-run", type: "boolean", required: false, description: "Preview changes without applying" },
208
- { name: "force", type: "boolean", required: false, description: "Skip confirmation prompt" },
209
- { name: "env", type: "boolean", required: false, description: "Include environment variables" },
210
- { name: "records", type: "boolean", required: false, description: "Include table records" },
211
- { name: "truncate", type: "boolean", required: false, description: "Truncate tables before importing records" },
212
- { name: "transaction", type: "boolean", required: false, default: "true", description: "Wrap push in database transaction (--no-transaction to disable)" },
213
- { name: "guids", type: "boolean", required: false, default: "true", description: "Write GUIDs back to local files after push (--no-guids to disable)" },
214
- { name: "include", short: "i", type: "string", required: false, description: "Glob pattern to include specific files (repeatable)" },
215
- { name: "exclude", short: "e", type: "string", required: false, description: "Glob pattern to exclude specific files (repeatable)" }
226
+ { name: "branch", short: "b", type: "string", required: false, description: "Branch label to push to (defaults to live branch or profile branch)" },
227
+ { name: "sync", type: "boolean", required: false, default: "false", description: "Full push (default is partial/changed-only). Required for --delete." },
228
+ { name: "delete", type: "boolean", required: false, default: "false", description: "Delete remote objects not present in local files (requires --sync)" },
229
+ { name: "dry-run", type: "boolean", required: false, default: "false", description: "Preview changes without applying" },
230
+ { name: "force", type: "boolean", required: false, default: "false", description: "Skip preview and confirmation prompt (for CI/CD)" },
231
+ { name: "env", type: "boolean", required: false, default: "false", description: "Include environment variables" },
232
+ { name: "records", type: "boolean", required: false, default: "false", description: "Include table records" },
233
+ { name: "truncate", type: "boolean", required: false, default: "false", description: "Truncate tables before importing records" },
234
+ { name: "transaction", type: "boolean", required: false, default: "true", description: "Wrap import in a database transaction (--no-transaction to disable)" },
235
+ { name: "guids", type: "boolean", required: false, default: "true", description: "Write server-assigned GUIDs back to local files after push (--no-guids to disable)" },
236
+ { name: "include", short: "i", type: "string", required: false, description: "Glob pattern to include files, matched against relative paths (repeatable)" },
237
+ { name: "exclude", short: "e", type: "string", required: false, description: "Glob pattern to exclude files, matched against relative paths (repeatable)" },
238
+ { name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
216
239
  ],
217
240
  examples: [
218
- "xano workspace:push ./my-app",
219
- "xano workspace:push ./my-app -b dev",
220
- "xano workspace:push ./my-app --dry-run",
221
- "xano workspace:push ./my-app --sync --delete --force",
222
- "xano workspace:push ./my-app -i 'api/**' -i 'function/**'",
223
- "xano workspace:push ./my-app -e 'table/**' --records --truncate"
241
+ "xano workspace push",
242
+ "xano workspace push -d ./my-app",
243
+ "xano workspace push -d ./my-app -b dev",
244
+ "xano workspace push --dry-run",
245
+ "xano workspace push --sync --delete --force",
246
+ 'xano workspace push -i "api/**" -i "function/**"',
247
+ 'xano workspace push -e "table/**" --records --truncate',
248
+ "xano workspace push --no-transaction --no-guids"
224
249
  ]
225
250
  },
226
251
  {
227
- name: "workspace:git:pull",
228
- description: "Pull XanoScript files directly from a git repository (GitHub, GitLab, etc.)",
229
- usage: "xano workspace:git:pull <directory> --repo <url> [options]",
230
- args: [
231
- { name: "directory", required: true, description: "Local directory to save files" }
232
- ],
252
+ name: "workspace git pull",
253
+ description: "Pull XanoScript files directly from a git repository (GitHub, GitLab, or any git URL). Destination directory is passed via -d/--directory.",
254
+ usage: "xano workspace git pull -r <repo_url> [options]",
233
255
  flags: [
234
- { name: "repo", short: "r", type: "string", required: true, description: "Git repository URL (HTTPS or SSH)" },
235
- { name: "branch", short: "b", type: "string", required: false, description: "Git branch, tag, or ref to pull from" },
236
- { name: "path", type: "string", required: false, description: "Subdirectory within the repo to pull from" },
237
- { name: "token", short: "t", type: "string", required: false, description: "Personal access token for private repos" }
256
+ { name: "repo", short: "r", type: "string", required: true, description: "Git repository URL (GitHub HTTPS, SSH, or any git URL)" },
257
+ { name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for imported files (defaults to current directory)" },
258
+ { name: "branch", short: "b", type: "string", required: false, description: "Branch, tag, or ref to fetch (defaults to repository default branch)" },
259
+ { name: "path", type: "string", required: false, description: "Subdirectory within the repo to import from" },
260
+ { name: "token", short: "t", type: "string", required: false, description: "Personal access token for private repos (falls back to GITHUB_TOKEN env var)" }
238
261
  ],
239
262
  examples: [
240
- "xano workspace:git:pull ./code -r https://github.com/org/repo.git",
241
- "xano workspace:git:pull ./code -r https://github.com/org/repo.git -b main --path src/xano",
242
- "xano workspace:git:pull ./code -r https://github.com/org/private-repo.git -t ghp_token123"
263
+ "xano workspace git pull -r https://github.com/owner/repo",
264
+ "xano workspace git pull -d ./code -r https://github.com/owner/repo",
265
+ "xano workspace git pull -r https://github.com/owner/repo -b main --path src/xano",
266
+ "xano workspace git pull -r https://github.com/owner/private-repo -t ghp_token123",
267
+ "xano workspace git pull -r git@github.com:owner/repo.git"
243
268
  ]
244
269
  }
245
270
  ],
@@ -248,35 +273,45 @@ After \`workspace:pull\`, files are organized using snake_case naming:
248
273
  name: "Local Development Cycle",
249
274
  description: "Edit Xano code locally with your preferred tools",
250
275
  steps: [
251
- "Pull workspace: `xano workspace:pull ./code`",
276
+ "Pull workspace: `xano workspace pull -d ./code`",
252
277
  "Navigate to organized folders: `api/{group}/`, `function/`, `table/`, etc.",
253
278
  "Edit .xs files in your IDE (files use snake_case naming)",
254
279
  "Validate changes: Use xanoscript_docs MCP tool",
255
- "Push changes: `xano workspace:push ./code`",
280
+ "Push changes: `xano workspace push -d ./code`",
256
281
  "Test in Xano dashboard or via API"
257
282
  ],
258
- example: `xano workspace:pull ./my-app
283
+ example: `xano workspace pull -d ./my-app
259
284
  # Files organized: api/users/create_post.xs, function/validate_token.xs, etc.
260
- xano workspace:push ./my-app`
285
+ xano workspace push -d ./my-app`
261
286
  },
262
287
  {
263
288
  name: "Version Control Setup",
264
289
  description: "Track Xano code changes in git",
265
290
  steps: [
266
- "Pull workspace: `xano workspace:pull ./xano`",
291
+ "Pull workspace: `xano workspace pull -d ./xano`",
267
292
  "Initialize git: `cd xano && git init`",
268
293
  "Add files: `git add . && git commit -m 'Initial import'`",
269
294
  "Make changes and commit regularly",
270
- "Push to Xano when ready: `xano workspace:push ./xano`"
295
+ "Push to Xano when ready: `xano workspace push -d ./xano`"
271
296
  ]
272
297
  },
273
298
  {
274
299
  name: "Cross-Branch Deployment",
275
300
  description: "Promote code from staging to production",
276
301
  steps: [
277
- "Pull from staging: `xano workspace:pull ./deploy -b staging`",
302
+ "Pull from staging: `xano workspace pull -d ./deploy -b staging`",
278
303
  "Review changes",
279
- "Push to production: `xano workspace:push ./deploy -b production`"
304
+ "Push to production: `xano workspace push -d ./deploy -b production`"
305
+ ]
306
+ },
307
+ {
308
+ name: "Selective Push with Dry Run",
309
+ description: "Preview and selectively push only some files",
310
+ steps: [
311
+ "Preview first: `xano workspace push --dry-run`",
312
+ "Include only functions: `xano workspace push -i 'function/**'`",
313
+ "Exclude tables: `xano workspace push -e 'table/**'`",
314
+ "Force full sync with deletes: `xano workspace push --sync --delete --force`"
280
315
  ]
281
316
  }
282
317
  ]
@@ -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.73",
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",