@xano/developer-mcp 1.0.66 → 1.0.69
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.
package/README.md
CHANGED
|
@@ -374,12 +374,10 @@ Retrieves XanoScript programming language documentation with context-aware suppo
|
|
|
374
374
|
| `integrations/external-apis` | HTTP requests with api.request |
|
|
375
375
|
| `integrations/utilities` | Local storage, email, zip, and Lambda |
|
|
376
376
|
| `frontend` | Static frontend development and deployment |
|
|
377
|
-
| `run` | Run job and service configurations |
|
|
378
377
|
| `addons` | Reusable subqueries for fetching related data |
|
|
379
378
|
| `debugging` | Logging, inspecting, and debugging XanoScript execution |
|
|
380
379
|
| `performance` | Performance optimization best practices |
|
|
381
380
|
| `realtime` | Real-time channels and events for push updates |
|
|
382
|
-
| `schema` | Runtime schema parsing and validation |
|
|
383
381
|
| `security` | Security best practices for authentication and authorization |
|
|
384
382
|
| `streaming` | Streaming data from files, requests, and responses |
|
|
385
383
|
| `middleware` | Request/response interceptors for functions, queries, tasks, and tools |
|
|
@@ -563,12 +561,10 @@ The server also exposes XanoScript documentation as MCP resources for direct acc
|
|
|
563
561
|
| `xanoscript://docs/integrations/external-apis` | HTTP requests with api.request |
|
|
564
562
|
| `xanoscript://docs/integrations/utilities` | Email, zip, Lambda utilities |
|
|
565
563
|
| `xanoscript://docs/frontend` | Static frontend development |
|
|
566
|
-
| `xanoscript://docs/run` | Run job and service configurations |
|
|
567
564
|
| `xanoscript://docs/addons` | Reusable subqueries for related data |
|
|
568
565
|
| `xanoscript://docs/debugging` | Logging and debugging tools |
|
|
569
566
|
| `xanoscript://docs/performance` | Performance optimization |
|
|
570
567
|
| `xanoscript://docs/realtime` | Real-time channels and events |
|
|
571
|
-
| `xanoscript://docs/schema` | Runtime schema parsing |
|
|
572
568
|
| `xanoscript://docs/security` | Security best practices |
|
|
573
569
|
| `xanoscript://docs/streaming` | Data streaming operations |
|
|
574
570
|
| `xanoscript://docs/middleware` | Request/response interceptors |
|
|
@@ -219,7 +219,6 @@ Use `xanoscript_docs({ tier: "survival" })` or `xanoscript_docs({ tier: "working
|
|
|
219
219
|
| `syntax/functions` | Built-in functions | Math, Date, Crypto, JSON |
|
|
220
220
|
| `types` | Data types, validation, input blocks | Validation Filters, Input Blocks |
|
|
221
221
|
| `functions` | Reusable function stacks, async, loops | Loops, Async Patterns |
|
|
222
|
-
| `schema` | Runtime schema parsing and validation | parse.object, parse.array |
|
|
223
222
|
|
|
224
223
|
### Data
|
|
225
224
|
|
|
@@ -269,7 +268,6 @@ Use `xanoscript_docs({ tier: "survival" })` or `xanoscript_docs({ tier: "working
|
|
|
269
268
|
| `workflow-tests` | End-to-end workflow tests with data sources and tags | Data Sources, Tags, Common Patterns |
|
|
270
269
|
| `debugging` | Logging, inspecting, and debugging XanoScript execution | debug.log, Inspection |
|
|
271
270
|
| `frontend` | Static frontend development and deployment | File Structure |
|
|
272
|
-
| `run` | Run job and service configurations for the Xano Job Runner | Jobs, Services |
|
|
273
271
|
|
|
274
272
|
### Best Practices
|
|
275
273
|
|
|
@@ -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
|
|
|
@@ -179,12 +179,6 @@
|
|
|
179
179
|
"applyTo": ["static/**/*"],
|
|
180
180
|
"aliases": ["static", "html", "css", "web"]
|
|
181
181
|
},
|
|
182
|
-
"run": {
|
|
183
|
-
"file": "run.md",
|
|
184
|
-
"description": "Run job and service configurations for the Xano Job Runner",
|
|
185
|
-
"applyTo": ["run/**/*.xs"],
|
|
186
|
-
"aliases": ["jobs", "runner", "services"]
|
|
187
|
-
},
|
|
188
182
|
"addons": {
|
|
189
183
|
"file": "addons.md",
|
|
190
184
|
"description": "Reusable subqueries for fetching related data",
|
|
@@ -209,12 +203,6 @@
|
|
|
209
203
|
"applyTo": ["realtime/channel/*.xs", "realtime/trigger/*.xs"],
|
|
210
204
|
"aliases": ["websocket", "channels", "pubsub"]
|
|
211
205
|
},
|
|
212
|
-
"schema": {
|
|
213
|
-
"file": "schema.md",
|
|
214
|
-
"description": "Runtime schema parsing and validation",
|
|
215
|
-
"applyTo": [],
|
|
216
|
-
"aliases": ["runtime-schema", "parsing"]
|
|
217
|
-
},
|
|
218
206
|
"security": {
|
|
219
207
|
"file": "security.md",
|
|
220
208
|
"description": "Security best practices for authentication and authorization",
|
|
@@ -35,6 +35,11 @@ Reference for XanoScript data types, input blocks, and validation.
|
|
|
35
35
|
| `file` / `image` / `video` / `audio` / `attachment` | File resources |
|
|
36
36
|
| `geo_point` / `geo_polygon` / `geo_linestring` | Geographic data |
|
|
37
37
|
|
|
38
|
+
### Dynamic Input
|
|
39
|
+
| Type | Description |
|
|
40
|
+
|------|-------------|
|
|
41
|
+
| `dblink` | Generate inputs from a table's schema (not available on tables) |
|
|
42
|
+
|
|
38
43
|
### Modifiers
|
|
39
44
|
|
|
40
45
|
The `?` has different meanings depending on placement:
|
|
@@ -358,6 +363,45 @@ input {
|
|
|
358
363
|
|
|
359
364
|
---
|
|
360
365
|
|
|
366
|
+
## Database Link Inputs (dblink)
|
|
367
|
+
|
|
368
|
+
Generates inputs dynamically from a table's schema. Each non-hidden column becomes an input, accessed via `$input.<column_name>`. Not available on table definitions.
|
|
369
|
+
|
|
370
|
+
```xs
|
|
371
|
+
// user table has: name, email, password → generates $input.name, $input.email, $input.password
|
|
372
|
+
function create_user {
|
|
373
|
+
input {
|
|
374
|
+
dblink {
|
|
375
|
+
table = "user"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
stack {
|
|
380
|
+
var $x1 { value = $input.name }
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
response = $x1
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
Use `override` to hide fields from the generated inputs:
|
|
388
|
+
|
|
389
|
+
```xs
|
|
390
|
+
input {
|
|
391
|
+
dblink {
|
|
392
|
+
table = "user"
|
|
393
|
+
override = {
|
|
394
|
+
created_at: {hidden: true}
|
|
395
|
+
email : {hidden: true}
|
|
396
|
+
password : {hidden: true}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
// Only $input.name is available — overridden fields are excluded
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
361
405
|
## Sensitive Fields
|
|
362
406
|
|
|
363
407
|
Mark fields for log masking:
|
package/package.json
CHANGED