@xano/developer-mcp 2.3.0-beta.7 → 2.3.0-beta.9
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 +4 -16
- package/dist/cli_docs/index.js +0 -4
- package/dist/cli_docs/topics/function.js +0 -2
- package/dist/cli_docs/topics/knowledge.js +1 -2
- package/dist/cli_docs/topics/workspace.js +5 -10
- package/dist/meta_api_docs/index.js +0 -2
- package/dist/meta_api_docs/topics/history.js +1 -2
- package/dist/tools/validate_xanoscript.js +1 -5
- package/dist/xanoscript.js +0 -1
- package/dist/xanoscript_docs/README.md +1 -2
- package/dist/xanoscript_docs/agents.md +3 -0
- package/dist/xanoscript_docs/ai.md +820 -0
- package/dist/xanoscript_docs/database.md +1 -4
- package/dist/xanoscript_docs/docs_index.json +26 -22
- package/dist/xanoscript_docs/essentials.md +11 -19
- package/dist/xanoscript_docs/survival.md +1 -5
- package/dist/xanoscript_docs/unit-testing.md +29 -2
- package/dist/xanoscript_docs/version.json +2 -2
- package/dist/xanoscript_docs/working.md +39 -15
- package/package.json +2 -3
- package/dist/cli_docs/topics/policy.d.ts +0 -2
- package/dist/cli_docs/topics/policy.js +0 -92
- package/dist/cli_docs/topics/skills.d.ts +0 -2
- package/dist/cli_docs/topics/skills.js +0 -57
- package/dist/meta_api_docs/topics/policy.d.ts +0 -3
- package/dist/meta_api_docs/topics/policy.js +0 -140
- package/dist/xanoscript_docs/policies.md +0 -448
- package/dist/xanoscript_docs/policy-templates.md +0 -267
package/README.md
CHANGED
|
@@ -78,15 +78,12 @@ Add to your Claude Desktop configuration file:
|
|
|
78
78
|
|
|
79
79
|
## Xano Skills
|
|
80
80
|
|
|
81
|
-
This repo ships
|
|
81
|
+
This repo ships two agent skills under `skills/`:
|
|
82
82
|
|
|
83
83
|
- **`xano-init`** — guided setup that profiles a Xano workspace and builds a sandbox-first development playbook
|
|
84
84
|
- **`xanoscript-docs-expert`** — deep reference for working with XanoScript documentation and this MCP project's architecture
|
|
85
|
-
- **`xano-policies`** — stub for workspace policies: the authoring rules that never change, plus `xano skills pull` to install the live, catalogue-generated skill from your instance
|
|
86
85
|
|
|
87
|
-
**Using Claude Code inside this repo?** You already have
|
|
88
|
-
|
|
89
|
-
> Only the root `skills/` folder is published (skills.sh indexes it, and `npx skills add` installs from it); `.claude/skills/` is the copy this repo's own Claude Code sessions load. Edit `xano-policies` in both places: a test fails when its two copies differ.
|
|
86
|
+
**Using Claude Code inside this repo?** You already have both skills. They're committed to `.claude/skills/` and load automatically when Claude Code starts a session in this directory — no install step needed. Just invoke `xano-init` or `xanoscript-docs-expert` by name, or describe the task in natural language.
|
|
90
87
|
|
|
91
88
|
**Using a different agent, or want the skills available in other projects?** Skills are distributed via the open [Agent Skills standard](https://github.com/vercel-labs/skills) and install with a single `npx` command — no cloning or manual file copying.
|
|
92
89
|
|
|
@@ -103,7 +100,7 @@ npx skills add xano-inc/xano-developer-mcp -s xano-init \
|
|
|
103
100
|
-a claude-code -a codex -a cursor -a opencode -g
|
|
104
101
|
```
|
|
105
102
|
|
|
106
|
-
Drop `-s` to install every skill in the repo, or drop `-g` to scope the install to the current project instead of your user profile.
|
|
103
|
+
Drop `-s` to install every skill in the repo, or drop `-g` to scope the install to the current project instead of your user profile. Other supported agents include `gemini-cli`, `windsurf`, `continue`, `cline`, `github-copilot`, and more — see the [skills CLI](https://github.com/vercel-labs/skills) for the full list.
|
|
107
104
|
|
|
108
105
|
Start a new agent session after installing so the skill manifest is picked up.
|
|
109
106
|
|
|
@@ -328,7 +325,7 @@ import '@xano/developer-mcp/server';
|
|
|
328
325
|
|
|
329
326
|
### 1. `xano_validate_xanoscript`
|
|
330
327
|
|
|
331
|
-
Validates XanoScript code for syntax errors. Supports multiple input methods. The language server auto-detects the object type from the code syntax
|
|
328
|
+
Validates XanoScript code for syntax errors. Supports multiple input methods. The language server auto-detects the object type from the code syntax.
|
|
332
329
|
|
|
333
330
|
**Parameters:**
|
|
334
331
|
| Parameter | Type | Required | Description |
|
|
@@ -415,8 +412,6 @@ Retrieves XanoScript programming language documentation with context-aware suppo
|
|
|
415
412
|
| `middleware` | Request/response interceptors for functions, queries, tasks, and tools |
|
|
416
413
|
| `branch` | Branch-level settings: middleware, history retention, visual styling |
|
|
417
414
|
| `workspace` | Workspace-level settings: environment variables, preferences, realtime |
|
|
418
|
-
| `policies` | Workspace policy documents: syntax, the check catalogue, templates and authoring rules |
|
|
419
|
-
| `policy-templates` | The platform's policy templates, recipes for goals that take several, and what no check can see |
|
|
420
415
|
|
|
421
416
|
**Examples:**
|
|
422
417
|
```
|
|
@@ -498,7 +493,6 @@ Get documentation for Xano's Meta API. Use this to understand how to programmati
|
|
|
498
493
|
| `realtime` | Real-time channel operations |
|
|
499
494
|
| `file` | File management |
|
|
500
495
|
| `history` | Version history |
|
|
501
|
-
| `policy` | Workspace policies: check catalogue and templates, parse, save, object lookup, evaluate, runs (whole, summary and findings pages), agent skill |
|
|
502
496
|
| `workflows` | Step-by-step workflow guides |
|
|
503
497
|
|
|
504
498
|
**Examples:**
|
|
@@ -546,8 +540,6 @@ Use this tool to understand CLI commands for local development, code synchroniza
|
|
|
546
540
|
| `tenant` | Tenant management - CRUD, deployments, env vars, backups, clusters |
|
|
547
541
|
| `unit_test` | Unit test management - list and run unit tests |
|
|
548
542
|
| `workflow_test` | Workflow test management - list, run, and manage workflow tests |
|
|
549
|
-
| `policy` | Workspace policies - catalogue, parse, publish, evaluate, status, runs, delete |
|
|
550
|
-
| `skills` | Install the agent skill the instance generates (`skills pull`) |
|
|
551
543
|
| `platform` | Platform management - list and view platform versions |
|
|
552
544
|
| `static_host` | Static hosting - deploy frontend builds |
|
|
553
545
|
| `update` | Update the CLI to the latest version |
|
|
@@ -610,8 +602,6 @@ The server also exposes XanoScript documentation as MCP resources for direct acc
|
|
|
610
602
|
| `xanoscript://docs/middleware` | Request/response interceptors |
|
|
611
603
|
| `xanoscript://docs/branch` | Branch-level settings |
|
|
612
604
|
| `xanoscript://docs/workspace` | Workspace-level settings |
|
|
613
|
-
| `xanoscript://docs/policies` | Workspace policy documents |
|
|
614
|
-
| `xanoscript://docs/policy-templates` | Policy templates and recipes |
|
|
615
605
|
|
|
616
606
|
## npm Scripts
|
|
617
607
|
|
|
@@ -623,7 +613,6 @@ The server also exposes XanoScript documentation as MCP resources for direct acc
|
|
|
623
613
|
| `test` | `vitest run` | Run unit tests |
|
|
624
614
|
| `test:watch` | `vitest` | Run tests in watch mode |
|
|
625
615
|
| `test:coverage` | `vitest run --coverage` | Run tests with coverage report |
|
|
626
|
-
| `gen:policy-docs` | `node scripts/gen-policy-check-docs.mjs` | Regenerate the check catalogue regions of `policies.md`, and `policy-templates.md`, from `scripts/policy-catalogue.json` |
|
|
627
616
|
|
|
628
617
|
## Project Structure
|
|
629
618
|
|
|
@@ -741,7 +730,6 @@ Compiles TypeScript to JavaScript in the `dist/` directory.
|
|
|
741
730
|
- **aliases**: Alternative names for topic lookup
|
|
742
731
|
- **priority**: Ordering weight for file_path matching
|
|
743
732
|
- **exclusive**: The topic alone documents the files its `applyTo` matches, so file_path mode returns only that topic
|
|
744
|
-
- The check catalogue in `policies.md` (the checks and their uses, the scope fields, the statement names and the fix hints) is generated between its `BEGIN GENERATED` and `END GENERATED` markers, and `policy-templates.md` (the templates, the recipes and what no check can see) is generated whole. To refresh them, save the catalogue the platform serves (`xano policy catalogue -o json`, from an instance running the matching platform version) to `scripts/policy-catalogue.json`, then run `npm run gen:policy-docs`; a test fails when the two disagree
|
|
745
733
|
|
|
746
734
|
**Meta API Documentation** (`src/meta_api_docs/`):
|
|
747
735
|
- TypeScript modules with structured documentation
|
package/dist/cli_docs/index.js
CHANGED
|
@@ -24,8 +24,6 @@ import { platformDoc } from "./topics/platform.js";
|
|
|
24
24
|
import { staticHostDoc } from "./topics/static_host.js";
|
|
25
25
|
import { updateDoc } from "./topics/update.js";
|
|
26
26
|
import { integrationDoc } from "./topics/integration.js";
|
|
27
|
-
import { policyDoc } from "./topics/policy.js";
|
|
28
|
-
import { skillsDoc } from "./topics/skills.js";
|
|
29
27
|
/**
|
|
30
28
|
* All available documentation topics
|
|
31
29
|
*/
|
|
@@ -46,8 +44,6 @@ export const topics = {
|
|
|
46
44
|
static_host: staticHostDoc,
|
|
47
45
|
update: updateDoc,
|
|
48
46
|
integration: integrationDoc,
|
|
49
|
-
policy: policyDoc,
|
|
50
|
-
skills: skillsDoc,
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
53
49
|
* Get list of all available topic names
|
|
@@ -87,7 +87,6 @@ Xano CLI commands are SPACE-separated (e.g. \`xano function list\`), not colon-s
|
|
|
87
87
|
{ name: "file", short: "f", type: "string", required: false, description: "Path to file containing XanoScript code (mutually exclusive with --stdin)" },
|
|
88
88
|
{ name: "stdin", short: "s", type: "boolean", required: false, default: "false", description: "Read XanoScript code from stdin (mutually exclusive with --file)" },
|
|
89
89
|
{ name: "edit", short: "e", type: "boolean", required: false, default: "false", description: "Open the file in $EDITOR before creating (requires --file)" },
|
|
90
|
-
{ name: "policy-override", type: "string", required: false, description: "Create the function past a blocking live-branch publish policy gate with an audited reason (requires workspace:policy update). A refusal without it saves nothing and exits 2; pass only the user's own reason" },
|
|
91
90
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
92
91
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
93
92
|
],
|
|
@@ -111,7 +110,6 @@ Xano CLI commands are SPACE-separated (e.g. \`xano function list\`), not colon-s
|
|
|
111
110
|
{ name: "stdin", short: "s", type: "boolean", required: false, default: "false", description: "Read updated XanoScript from stdin (mutually exclusive with --file)" },
|
|
112
111
|
{ name: "edit", short: "e", type: "boolean", required: false, default: "false", description: "Open the file in $EDITOR before updating (requires --file)" },
|
|
113
112
|
{ name: "publish", type: "boolean", required: false, default: "true", description: "Publish after editing (use --no-publish to save as draft only)" },
|
|
114
|
-
{ name: "policy-override", type: "string", required: false, description: "Publish past a blocking live-branch publish policy gate with an audited reason (requires workspace:policy update). A refusal without it saves nothing and exits 2; pass only the user's own reason" },
|
|
115
113
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
116
114
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
117
115
|
],
|
|
@@ -8,7 +8,6 @@ export const knowledgeDoc = {
|
|
|
8
8
|
- **Knowledge types**: \`agents.md\` (the workspace's AGENTS.md), \`doc\` (standalone markdown docs), and \`skill\` (a SKILL.md plus optional reference files).
|
|
9
9
|
- **Inclusion**: how an item is surfaced to AI — \`always\` (always-on context), \`on demand\` (auto-selected when relevant), or \`manual\` (only when explicitly referenced).
|
|
10
10
|
- **Read via \`knowledge list\`/\`knowledge get\`**; **write via workspace/sandbox push** — there is no \`knowledge push\`/\`knowledge pull\`. Knowledge is synced automatically as part of \`workspace pull/push\` and \`sandbox pull/push\` under the \`knowledge/\` directory.
|
|
11
|
-
- **Not every skill an agent gets is a knowledge record.** The platform's \`xano-policies\` skill never appears in \`knowledge list\` or under \`knowledge/\`; see the \`skills\` topic. A workspace knowledge record of the same name replaces it.
|
|
12
11
|
|
|
13
12
|
## On-Disk Layout (from workspace/sandbox pull)
|
|
14
13
|
|
|
@@ -57,7 +56,7 @@ guid: abc123...
|
|
|
57
56
|
**\`knowledge get\` matching:** the name match is case-insensitive; on a miss the error lists all available names. Use \`--file <path>\` to fetch a skill's reference file instead of its SKILL.md.
|
|
58
57
|
|
|
59
58
|
**Frontmatter caution:** write \`inclusion\` (not \`mode\`) in frontmatter — the CLI writes \`inclusion: always | on demand | manual\` on pull and normalizes those labels back to the backend enum on push.`,
|
|
60
|
-
related_topics: ["workspace", "sandbox"
|
|
59
|
+
related_topics: ["workspace", "sandbox"],
|
|
61
60
|
commands: [
|
|
62
61
|
{
|
|
63
62
|
name: "knowledge list",
|
|
@@ -91,8 +91,6 @@ After \`workspace pull\`, files are organized using snake_case naming:
|
|
|
91
91
|
|
|
92
92
|
\`workspace pull\` and \`workspace push\` automatically sync knowledge and skills (markdown files under \`knowledge/\`) alongside XanoScript — no extra flag. Knowledge participates in push previews, \`--sync\`/\`--delete\`, and \`--include\`/\`--exclude\` globs. See the \`knowledge\` topic for the file layout and frontmatter format.
|
|
93
93
|
|
|
94
|
-
The platform's generated \`xano-policies\` skill is not workspace knowledge, so pull does not write it; see the \`skills\` topic.
|
|
95
|
-
|
|
96
94
|
## Syntax note
|
|
97
95
|
|
|
98
96
|
Xano CLI commands are SPACE-separated (e.g. \`xano workspace pull\`), not colon-separated.
|
|
@@ -134,7 +132,6 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
134
132
|
- \`--dry-run\`: Preview what would change without applying
|
|
135
133
|
- \`--include/-i\` and \`--exclude/-e\`: Glob patterns for selective push (repeatable)
|
|
136
134
|
- \`--no-transaction\` and \`--no-guids\` disable the default transaction wrapping and GUID write-back
|
|
137
|
-
- \`-m/--message\`: labels only the Version History entry of each policy the push changes; other objects get no message, and an unchanged policy gets no entry
|
|
138
135
|
|
|
139
136
|
**Knowledge sync (automatic):**
|
|
140
137
|
- \`pull\` writes knowledge/skills markdown under \`knowledge/\`; \`push\` sends it back — no flag needed
|
|
@@ -153,7 +150,7 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
153
150
|
**When to use sandbox instead:**
|
|
154
151
|
- \`sandbox\` is a lighter-weight alternative for ephemeral, isolated iteration
|
|
155
152
|
- Use workspace pull/push for canonical sync, version control, and CI/CD`,
|
|
156
|
-
related_topics: ["start", "branch", "function", "release", "sandbox", "knowledge", "
|
|
153
|
+
related_topics: ["start", "branch", "function", "release", "sandbox", "knowledge", "integration"],
|
|
157
154
|
commands: [
|
|
158
155
|
{
|
|
159
156
|
name: "workspace list",
|
|
@@ -238,7 +235,7 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
238
235
|
},
|
|
239
236
|
{
|
|
240
237
|
name: "workspace pull",
|
|
241
|
-
description: "Download workspace code to a local directory. Splits the multidoc response into individual .xs files organized by type, and also writes workspace knowledge/skills markdown under knowledge/. The target directory is the -d/--directory flag (default: current directory), not a positional argument.
|
|
238
|
+
description: "Download workspace code to a local directory. Splits the multidoc response into individual .xs files organized by type, and also writes workspace knowledge/skills markdown under knowledge/. The target directory is the -d/--directory flag (default: current directory), not a positional argument.",
|
|
242
239
|
usage: "xano workspace pull [options]",
|
|
243
240
|
flags: [
|
|
244
241
|
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Output directory for pulled documents (defaults to current directory)" },
|
|
@@ -258,7 +255,7 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
258
255
|
},
|
|
259
256
|
{
|
|
260
257
|
name: "workspace push",
|
|
261
|
-
description: "Upload local XanoScript files to a workspace, including knowledge/skills markdown under knowledge/ (synced automatically, shown in the preview). 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. A partial push is additive, not declarative: it adds and updates but makes no destructive changes (it won't drop a removed column or relax a constraint), so local files and the live workspace can diverge. Use --sync for destructive changes; --dry-run to preview.
|
|
258
|
+
description: "Upload local XanoScript files to a workspace, including knowledge/skills markdown under knowledge/ (synced automatically, shown in the preview). 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. A partial push is additive, not declarative: it adds and updates but makes no destructive changes (it won't drop a removed column or relax a constraint), so local files and the live workspace can diverge. Use --sync for destructive changes; --dry-run to preview. If the knowledge sync fails after the import has landed, the import stands: the push exits 1, and -o json prints the import document with the failure as error ({exit, message}).",
|
|
262
259
|
usage: "xano workspace push [options]",
|
|
263
260
|
flags: [
|
|
264
261
|
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Directory containing documents to push (defaults to current directory)" },
|
|
@@ -275,8 +272,7 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
275
272
|
{ name: "guids", type: "boolean", required: false, default: "true", description: "Write server-assigned GUIDs back to local files after push (--no-guids to disable)" },
|
|
276
273
|
{ name: "include", short: "i", type: "string", required: false, description: "Glob pattern to include files, matched against relative paths (repeatable)" },
|
|
277
274
|
{ name: "exclude", short: "e", type: "string", required: false, description: "Glob pattern to exclude files, matched against relative paths (repeatable)" },
|
|
278
|
-
{ name: "
|
|
279
|
-
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "summary or json; JSON retains the complete import response and policy_check feedback" },
|
|
275
|
+
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "summary or json; JSON retains the complete import response" },
|
|
280
276
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
281
277
|
],
|
|
282
278
|
examples: [
|
|
@@ -288,8 +284,7 @@ For lighter-weight iterative development without pulling the whole workspace, se
|
|
|
288
284
|
'xano workspace push -i "api/**" -i "function/**"',
|
|
289
285
|
'xano workspace push -e "table/**" --records --truncate',
|
|
290
286
|
"xano workspace push --no-transaction --no-guids",
|
|
291
|
-
"xano workspace push --force -o json"
|
|
292
|
-
'xano workspace push -m "Tightened the auth policies"'
|
|
287
|
+
"xano workspace push --force -o json"
|
|
293
288
|
]
|
|
294
289
|
},
|
|
295
290
|
{
|
|
@@ -27,7 +27,6 @@ import { realtimeDoc } from "./topics/realtime.js";
|
|
|
27
27
|
import { fileDoc } from "./topics/file.js";
|
|
28
28
|
import { historyDoc } from "./topics/history.js";
|
|
29
29
|
import { workflowsDoc } from "./topics/workflows.js";
|
|
30
|
-
import { policyDoc } from "./topics/policy.js";
|
|
31
30
|
/**
|
|
32
31
|
* All available documentation topics
|
|
33
32
|
*/
|
|
@@ -51,7 +50,6 @@ export const topics = {
|
|
|
51
50
|
file: fileDoc,
|
|
52
51
|
history: historyDoc,
|
|
53
52
|
workflows: workflowsDoc,
|
|
54
|
-
policy: policyDoc,
|
|
55
53
|
};
|
|
56
54
|
/**
|
|
57
55
|
* Get list of all available topic names
|
|
@@ -4,7 +4,7 @@ export const historyDoc = {
|
|
|
4
4
|
description: `History endpoints provide audit logs for API requests and background executions. Use for debugging, monitoring, and compliance.
|
|
5
5
|
|
|
6
6
|
## Available History Types
|
|
7
|
-
- **Request History**: All API requests with timing and responses
|
|
7
|
+
- **Request History**: All API requests with timing and responses
|
|
8
8
|
- **Function History**: Function execution logs
|
|
9
9
|
- **Task History**: Scheduled task execution logs
|
|
10
10
|
- **Middleware History**: Middleware execution logs
|
|
@@ -23,7 +23,6 @@ export const historyDoc = {
|
|
|
23
23
|
- Filter by status to find errors (4xx, 5xx)
|
|
24
24
|
- Use branch filter to separate dev/prod logs
|
|
25
25
|
- Pass include_output=true for each request's output; the input is always returned
|
|
26
|
-
- For a viewer without workspace:policy read (or while the policies feature is off), a Metadata API call that carries policy details (a policy route, a policy refusal, a push's policy_check, a policy document) shows "Hidden: this call carries policy details, which need workspace:policy read." as its whole input and output; an endpoint's own request history is never masked
|
|
27
26
|
- History is limited to recent requests (not permanent storage)`,
|
|
28
27
|
endpoints: [
|
|
29
28
|
{
|
|
@@ -452,11 +452,7 @@ export const validateXanoscriptToolSpec = defineTool({
|
|
|
452
452
|
"- file_paths: Array of file paths for batch validation\n" +
|
|
453
453
|
"- directory: Validate all .xs files in a directory\n\n" +
|
|
454
454
|
"Returns errors with line/column positions and helpful suggestions for common mistakes. " +
|
|
455
|
-
"The language server auto-detects the object type from the code syntax.
|
|
456
|
-
"Policy documents (policies/*.xs) are validated too: their syntax and block shape are errors, " +
|
|
457
|
-
"and what the check catalogue decides (an unknown check, field or param, a value outside its set) " +
|
|
458
|
-
"is a warning against the catalogue the language server ships with. The instance decides on save; " +
|
|
459
|
-
"format and check a policy against its branch with xano_parse_policy or `xano policy parse --file <path>`.",
|
|
455
|
+
"The language server auto-detects the object type from the code syntax.",
|
|
460
456
|
annotations: {
|
|
461
457
|
readOnlyHint: true,
|
|
462
458
|
destructiveHint: false,
|
package/dist/xanoscript.js
CHANGED
|
@@ -341,7 +341,6 @@ export function readXanoscriptDocsV2(docsPath, args) {
|
|
|
341
341
|
`- file_path='api/users/create.xs' — auto-select the docs for the file you're editing`,
|
|
342
342
|
`- filter='round' — one expression filter's signature and example (comma-separate for several, e.g. filter='to_upper,split')`,
|
|
343
343
|
`- tier='survival' (~${tiers.survival.tokens}) or tier='working' (~${tiers.working.tokens}) for context-limited models`,
|
|
344
|
-
`- topic='policies' — when the workspace has a policies/ folder: keep to its active blocking policies while changing code, and evaluate after`,
|
|
345
344
|
`- mode='quick_reference' — compact output when you only need a reminder`,
|
|
346
345
|
`- max_tokens=4000 with file_path= — stop loading once the budget is reached`,
|
|
347
346
|
`- exclude_topics=['syntax'] with file_path= — skip topics you've already loaded`,
|
|
@@ -269,6 +269,7 @@ Use `xano_xanoscript_docs({ tier: "survival" })` or `xano_xanoscript_docs({ tier
|
|
|
269
269
|
|
|
270
270
|
| Topic | Description | Key Sections |
|
|
271
271
|
| ------------- | --------------------------------------------------- | ------------ |
|
|
272
|
+
| `ai` | Xano AI statements: text, image, video, speech, music, transcription, embeddings, rerank | Choosing a Statement, Billing, Models |
|
|
272
273
|
| `agents` | AI agent configuration with LLM providers and tools | LLM Config, Tool Binding |
|
|
273
274
|
| `tools` | AI tools for agents and MCP servers | Tool Schema, Parameters |
|
|
274
275
|
| `mcp-servers` | MCP server definitions exposing tools | Server Config, Tool Exposure |
|
|
@@ -286,8 +287,6 @@ Use `xano_xanoscript_docs({ tier: "survival" })` or `xano_xanoscript_docs({ tier
|
|
|
286
287
|
| `workspace` | Workspace-level settings: environment variables, preferences, realtime | Env Variables, Preferences |
|
|
287
288
|
| `branch` | Branch-level settings: middleware, history retention, visual styling | Middleware Config, History |
|
|
288
289
|
| `middleware` | Request/response interceptors for functions, queries, tasks, tools, realtime messages, and MCP prompts and resources | Pre/Post Hooks |
|
|
289
|
-
| `policies` | Workspace policy documents: syntax, check catalogue, templates, authoring rules | Quick Reference, Permissions |
|
|
290
|
-
| `policy-templates` | The platform's policy templates: key, title, checks, framework tags and what each leaves to fill, with an example; recipes for goals that take several; what no check can see | Using a template, Recipes, What no check can see |
|
|
291
290
|
|
|
292
291
|
### Development
|
|
293
292
|
|
|
@@ -60,6 +60,8 @@ agent "Customer Support" {
|
|
|
60
60
|
|
|
61
61
|
## Calling Agents
|
|
62
62
|
|
|
63
|
+
> **One-shot call?** A single prompt-to-answer (summarize, classify, extract JSON, generate an image, embed text) does not need an agent: use `ai.text.generate` and the other Xano AI statements (`xano_xanoscript_docs({ topic: "ai" })`). Use `ai.agent.run` when the model needs tools or multiple steps.
|
|
64
|
+
|
|
63
65
|
```xs
|
|
64
66
|
ai.agent.run "Customer Support" {
|
|
65
67
|
args = {}|set:"user_message":$input.message
|
|
@@ -387,6 +389,7 @@ agent "Research Agent" {
|
|
|
387
389
|
|
|
388
390
|
| Topic | Description |
|
|
389
391
|
|-------|-------------|
|
|
392
|
+
| `ai` | One-shot Xano AI statements (`ai.text.generate`, `ai.image.generate`, ...) |
|
|
390
393
|
| `tools` | Functions that agents can execute |
|
|
391
394
|
| `mcp-servers` | MCP server configuration |
|
|
392
395
|
| `triggers` | Agent triggers for events |
|