@xano/developer-mcp 1.0.0

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +261 -0
  3. package/api_docs/addon.md +193 -0
  4. package/api_docs/agent.md +154 -0
  5. package/api_docs/api_group.md +236 -0
  6. package/api_docs/authentication.md +68 -0
  7. package/api_docs/file.md +190 -0
  8. package/api_docs/function.md +217 -0
  9. package/api_docs/history.md +263 -0
  10. package/api_docs/index.md +104 -0
  11. package/api_docs/mcp_server.md +139 -0
  12. package/api_docs/middleware.md +205 -0
  13. package/api_docs/realtime.md +153 -0
  14. package/api_docs/table.md +151 -0
  15. package/api_docs/task.md +191 -0
  16. package/api_docs/tool.md +216 -0
  17. package/api_docs/triggers.md +344 -0
  18. package/api_docs/workspace.md +246 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +495 -0
  21. package/package.json +49 -0
  22. package/xanoscript_docs/README.md +1 -0
  23. package/xanoscript_docs/api_query_examples.md +1255 -0
  24. package/xanoscript_docs/api_query_guideline.md +129 -0
  25. package/xanoscript_docs/build_from_lovable.md +715 -0
  26. package/xanoscript_docs/db_query_guideline.md +427 -0
  27. package/xanoscript_docs/ephemeral_environment_guideline.md +529 -0
  28. package/xanoscript_docs/expression_guideline.md +1086 -0
  29. package/xanoscript_docs/frontend_guideline.md +67 -0
  30. package/xanoscript_docs/function_examples.md +1406 -0
  31. package/xanoscript_docs/function_guideline.md +130 -0
  32. package/xanoscript_docs/functions.md +2155 -0
  33. package/xanoscript_docs/input_guideline.md +227 -0
  34. package/xanoscript_docs/mcp_server_examples.md +36 -0
  35. package/xanoscript_docs/mcp_server_guideline.md +69 -0
  36. package/xanoscript_docs/query_filter.md +489 -0
  37. package/xanoscript_docs/table_examples.md +586 -0
  38. package/xanoscript_docs/table_guideline.md +137 -0
  39. package/xanoscript_docs/task_examples.md +511 -0
  40. package/xanoscript_docs/task_guideline.md +103 -0
  41. package/xanoscript_docs/tips_and_tricks.md +144 -0
  42. package/xanoscript_docs/tool_examples.md +69 -0
  43. package/xanoscript_docs/tool_guideline.md +139 -0
  44. package/xanoscript_docs/unit_testing_guideline.md +328 -0
  45. package/xanoscript_docs/version.json +3 -0
  46. package/xanoscript_docs/workspace.md +17 -0
@@ -0,0 +1,489 @@
1
+ # covers
2
+
3
+ Determines if one geometry covers another.
4
+
5
+ ```xs
6
+ db.location.geometry|covers:$input.target_geometry
7
+ ```
8
+
9
+ Returns `true` if the geometry covers the target geometry, `false` otherwise.
10
+
11
+ # l1_distance_manhattan
12
+
13
+ Provides the L1 (Manhattan) distance between two vectors.
14
+
15
+ ```xs
16
+ db.embedding.vector|l1_distance_manhattan:$input.query_vector
17
+ ```
18
+
19
+ Calculates the Manhattan distance between two numeric arrays.
20
+
21
+ # l2_distance_euclidean
22
+
23
+ Provides the L2 (Euclidean) distance between two vectors.
24
+
25
+ ```xs
26
+ db.embedding.vector|l2_distance_euclidean:$input.query_vector
27
+ ```
28
+
29
+ Calculates the Euclidean distance between two numeric arrays.
30
+
31
+ # inner_product
32
+
33
+ Provides the inner product between two vectors.
34
+
35
+ ```xs
36
+ db.embedding.vector|inner_product:$input.query_vector
37
+ ```
38
+
39
+ Calculates the dot product between two numeric arrays.
40
+
41
+ # negative_inner_product
42
+
43
+ Provides the negative inner product between two vectors.
44
+
45
+ ```xs
46
+ db.embedding.vector|negative_inner_product:$input.query_vector
47
+ ```
48
+
49
+ Calculates the negative dot product between two numeric arrays.
50
+
51
+ # cosine_distance
52
+
53
+ Provides the cosine distance between two vectors.
54
+
55
+ ```xs
56
+ db.embedding.vector|cosine_distance:$input.query_vector
57
+ ```
58
+
59
+ Calculates the cosine distance (1 - cosine similarity) between two numeric arrays.
60
+
61
+ # cosine_similarity
62
+
63
+ Provides the cosine similarity between two vectors.
64
+
65
+ ```xs
66
+ db.embedding.vector|cosine_similarity:$input.query_vector
67
+ ```
68
+
69
+ Calculates the cosine similarity between two numeric arrays.
70
+
71
+ # distance
72
+
73
+ Provides the distance in meters between two geometries.
74
+
75
+ ```xs
76
+ db.location.geometry|distance:$input.target_geometry
77
+ ```
78
+
79
+ Returns the distance between two geometric objects in meters.
80
+
81
+ # within
82
+
83
+ Determines if one geometry is within the supplied radius of another geometry.
84
+
85
+ ```xs
86
+ db.location.geometry|within:$input.target_geometry:1000
87
+ ```
88
+
89
+ Returns `true` if the geometry is within 1000 meters of the target geometry.
90
+
91
+ # between
92
+
93
+ Determines if a value is between 2 other values.
94
+
95
+ ```xs
96
+ db.product.price|between:10:100
97
+ ```
98
+
99
+ Returns `true` if the price is between 10 and 100, inclusive.
100
+
101
+ # length
102
+
103
+ Returns the number of items in an array.
104
+
105
+ ```xs
106
+ db.user.tags|length
107
+ ```
108
+
109
+ If tags contains `["admin", "user", "guest"]`, the result will be: `3`
110
+
111
+ # floor
112
+
113
+ Rounds fractions down to their integer equivalent.
114
+
115
+ ```xs
116
+ db.bank_account.balance|floor
117
+ ```
118
+
119
+ If the balance is `123.45`, the result will be: `123`
120
+
121
+ # ceil
122
+
123
+ Rounds fractions up to their integer equivalent.
124
+
125
+ ```xs
126
+ db.bank_account.balance|ceil
127
+ ```
128
+
129
+ If the balance is `123.45`, the result will be: `124`
130
+
131
+ # round
132
+
133
+ Rounds the value to the specified precision. If no precision is specified, it defaults to `2`.
134
+
135
+ ```xs
136
+ db.bank_account.balance|round:1
137
+ ```
138
+
139
+ If the balance is `123.45`, the result will be: `123.5`
140
+
141
+ # to_lower
142
+
143
+ Converts all characters to lower case and returns the result.
144
+
145
+ ```xs
146
+ db.user.name|to_lower
147
+ ```
148
+
149
+ If name is `"John DOE"`, the result will be: `"john doe"`
150
+
151
+ # to_upper
152
+
153
+ Converts all characters to upper case and returns the result.
154
+
155
+ ```xs
156
+ db.user.name|to_upper
157
+ ```
158
+
159
+ If name is `"John Doe"`, the result will be: `"JOHN DOE"`
160
+
161
+ # concat
162
+
163
+ Concatenates two values together.
164
+
165
+ ```xs
166
+ db.user.first_name|concat:" "|concat:db.user.last_name
167
+ ```
168
+
169
+ If first_name is `"John"` and last_name is `"Doe"`, the result will be: `"John Doe"`
170
+
171
+ # substr
172
+
173
+ Extracts a section of text.
174
+
175
+ ```xs
176
+ db.user.email|substr:0:5
177
+ ```
178
+
179
+ If email is `"john@example.com"`, the result will be: `"john@"`
180
+
181
+ # coalesce
182
+
183
+ Provides an alternative value for null values.
184
+
185
+ ```xs
186
+ db.user.nickname|coalesce:db.user.first_name
187
+ ```
188
+
189
+ If nickname is `null` and first_name is `"John"`, the result will be: `"John"`
190
+
191
+ # unaccent
192
+
193
+ Removes accents (eg é → e, ñ → n, ö → o) from characters.
194
+
195
+ ```xs
196
+ db.user.name|unaccent
197
+ ```
198
+
199
+ If name is `"José María"`, the result will be: `"Jose Maria"`
200
+
201
+ # add
202
+
203
+ Adds 2 values together and returns the answer.
204
+
205
+ ```xs
206
+ db.product.price|add:5.99
207
+ ```
208
+
209
+ If price is `10.00`, the result will be: `15.99`
210
+
211
+ # sub
212
+
213
+ Subtracts 2 values together and returns the answer.
214
+
215
+ ```xs
216
+ db.product.price|sub:2.50
217
+ ```
218
+
219
+ If price is `10.00`, the result will be: `7.50`
220
+
221
+ # mul
222
+
223
+ Multiplies 2 values together and returns the answer.
224
+
225
+ ```xs
226
+ db.product.price|mul:1.2
227
+ ```
228
+
229
+ If price is `10.00`, the result will be: `12.00`
230
+
231
+ # div
232
+
233
+ Divides 2 values together and returns the answer.
234
+
235
+ ```xs
236
+ db.product.price|div:2
237
+ ```
238
+
239
+ If price is `10.00`, the result will be: `5.00`
240
+
241
+ # search_rank
242
+
243
+ Calculate a ranking value for the search match.
244
+
245
+ ```xs
246
+ db.article.content|search_rank:$input.search_term
247
+ ```
248
+
249
+ Returns a decimal value representing the relevance ranking of the search match.
250
+
251
+ # timestamp_month
252
+
253
+ Get month from timestamp.
254
+
255
+ ```xs
256
+ db.event.created_at|timestamp_month
257
+ ```
258
+
259
+ Returns the month (1-12) from the timestamp. Optional timezone parameter defaults to UTC.
260
+
261
+ # timestamp_year
262
+
263
+ Get year from timestamp.
264
+
265
+ ```xs
266
+ db.event.created_at|timestamp_year:"EST"
267
+ ```
268
+
269
+ Returns the year from the timestamp. Optional timezone parameter defaults to UTC.
270
+
271
+ # timestamp_week
272
+
273
+ Get week from timestamp.
274
+
275
+ ```xs
276
+ db.event.created_at|timestamp_week
277
+ ```
278
+
279
+ Returns the week number (1-53) from the timestamp. Optional timezone parameter defaults to UTC.
280
+
281
+ # timestamp_hour
282
+
283
+ Get hour from timestamp.
284
+
285
+ ```xs
286
+ db.event.created_at|timestamp_hour
287
+ ```
288
+
289
+ Returns the hour (0-23) from the timestamp. Optional timezone parameter defaults to UTC.
290
+
291
+ # timestamp_minute
292
+
293
+ Get minute from timestamp.
294
+
295
+ ```xs
296
+ db.event.created_at|timestamp_minute
297
+ ```
298
+
299
+ Returns the minute (0-59) from the timestamp. Optional timezone parameter defaults to UTC.
300
+
301
+ # timestamp_day_of_month
302
+
303
+ Get day of month from timestamp.
304
+
305
+ ```xs
306
+ db.event.created_at|timestamp_day_of_month
307
+ ```
308
+
309
+ Returns the day of the month (1-31) from the timestamp. Optional timezone parameter defaults to UTC.
310
+
311
+ # timestamp_day_of_week
312
+
313
+ Get day of week from timestamp.
314
+
315
+ ```xs
316
+ db.event.created_at|timestamp_day_of_week
317
+ ```
318
+
319
+ Returns the day of the week (0-6, where 0 is Sunday) from the timestamp. Optional timezone parameter defaults to UTC.
320
+
321
+ # timestamp_day_of_year
322
+
323
+ Get day of year from timestamp.
324
+
325
+ ```xs
326
+ db.event.created_at|timestamp_day_of_year
327
+ ```
328
+
329
+ Returns the day of the year (1-366) from the timestamp. Optional timezone parameter defaults to UTC.
330
+
331
+ # timestamp_epoch_day
332
+
333
+ Get the number of days since the unix epoch.
334
+
335
+ ```xs
336
+ db.event.created_at|timestamp_epoch_day
337
+ ```
338
+
339
+ Returns the number of days since January 1, 1970.
340
+
341
+ # timestamp_epoch_hour
342
+
343
+ Get the number of hours since the unix epoch.
344
+
345
+ ```xs
346
+ db.event.created_at|timestamp_epoch_hour
347
+ ```
348
+
349
+ Returns the number of hours since January 1, 1970.
350
+
351
+ # timestamp_epoch_minute
352
+
353
+ Get the number of minutes since the unix epoch.
354
+
355
+ ```xs
356
+ db.event.created_at|timestamp_epoch_minute
357
+ ```
358
+
359
+ Returns the number of minutes since January 1, 1970.
360
+
361
+ # timestamp_epoch_sec
362
+
363
+ Get the number of seconds since the unix epoch.
364
+
365
+ ```xs
366
+ db.event.created_at|timestamp_epoch_sec
367
+ ```
368
+
369
+ Returns the number of seconds since January 1, 1970.
370
+
371
+ # timestamp_add_seconds
372
+
373
+ Add a number of seconds to the timestamp.
374
+
375
+ ```xs
376
+ db.event.created_at|timestamp_add_seconds:30
377
+ ```
378
+
379
+ Adds 30 seconds to the timestamp. Defaults to adding 1 second if no amount is specified.
380
+
381
+ # timestamp_subtract_seconds
382
+
383
+ Subtract a number of seconds from the timestamp.
384
+
385
+ ```xs
386
+ db.event.created_at|timestamp_subtract_seconds:30
387
+ ```
388
+
389
+ Subtracts 30 seconds from the timestamp. Defaults to subtracting 1 second if no amount is specified.
390
+
391
+ # timestamp_add_minutes
392
+
393
+ Add a number of minutes to the timestamp.
394
+
395
+ ```xs
396
+ db.event.created_at|timestamp_add_minutes:15
397
+ ```
398
+
399
+ Adds 15 minutes to the timestamp. Defaults to adding 1 minute if no amount is specified.
400
+
401
+ # timestamp_subtract_minutes
402
+
403
+ Subtract a number of minutes from the timestamp.
404
+
405
+ ```xs
406
+ db.event.created_at|timestamp_subtract_minutes:15
407
+ ```
408
+
409
+ Subtracts 15 minutes from the timestamp. Defaults to subtracting 1 minute if no amount is specified.
410
+
411
+ # timestamp_add_hours
412
+
413
+ Add a number of hours to the timestamp.
414
+
415
+ ```xs
416
+ db.event.created_at|timestamp_add_hours:2
417
+ ```
418
+
419
+ Adds 2 hours to the timestamp. Defaults to adding 1 hour if no amount is specified.
420
+
421
+ # timestamp_subtract_hours
422
+
423
+ Subtract a number of hours from the timestamp.
424
+
425
+ ```xs
426
+ db.event.created_at|timestamp_subtract_hours:2
427
+ ```
428
+
429
+ Subtracts 2 hours from the timestamp. Defaults to subtracting 1 hour if no amount is specified.
430
+
431
+ # timestamp_add_days
432
+
433
+ Add a number of days to the timestamp.
434
+
435
+ ```xs
436
+ db.event.created_at|timestamp_add_days:7
437
+ ```
438
+
439
+ Adds 7 days to the timestamp. Defaults to adding 1 day if no amount is specified.
440
+
441
+ # timestamp_subtract_days
442
+
443
+ Subtract a number of days from the timestamp.
444
+
445
+ ```xs
446
+ db.event.created_at|timestamp_subtract_days:7
447
+ ```
448
+
449
+ Subtracts 7 days from the timestamp. Defaults to subtracting 1 day if no amount is specified.
450
+
451
+ # timestamp_add_months
452
+
453
+ Add a number of months to the timestamp.
454
+
455
+ ```xs
456
+ db.event.created_at|timestamp_add_months:3
457
+ ```
458
+
459
+ Adds 3 months to the timestamp. Defaults to adding 1 month if no amount is specified.
460
+
461
+ # timestamp_subtract_months
462
+
463
+ Subtract a number of months from the timestamp.
464
+
465
+ ```xs
466
+ db.event.created_at|timestamp_subtract_months:3
467
+ ```
468
+
469
+ Subtracts 3 months from the timestamp. Defaults to subtracting 1 month if no amount is specified.
470
+
471
+ # timestamp_add_years
472
+
473
+ Add a number of years to the timestamp.
474
+
475
+ ```xs
476
+ db.event.created_at|timestamp_add_years:1
477
+ ```
478
+
479
+ Adds 1 year to the timestamp. Defaults to adding 1 year if no amount is specified.
480
+
481
+ # timestamp_subtract_years
482
+
483
+ Subtract a number of years from the timestamp.
484
+
485
+ ```xs
486
+ db.event.created_at|timestamp_subtract_years:1
487
+ ```
488
+
489
+ Subtracts 1 year from the timestamp. Defaults to subtracting 1 year if no amount is specified.