@xano/developer-mcp 2.3.0-beta.6 → 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 +23 -12
- package/dist/meta_api_docs/index.js +0 -2
- package/dist/meta_api_docs/topics/api.js +6 -6
- package/dist/meta_api_docs/topics/apigroup.js +2 -2
- package/dist/meta_api_docs/topics/authentication.js +1 -1
- package/dist/meta_api_docs/topics/history.js +39 -10
- package/dist/meta_api_docs/topics/mcp_server.js +6 -6
- package/dist/meta_api_docs/topics/middleware.js +1 -1
- package/dist/meta_api_docs/topics/table.js +2 -2
- package/dist/meta_api_docs/topics/workspace.js +1 -1
- package/dist/tools/validate_xanoscript.js +1 -5
- package/dist/xanoscript.js +0 -1
- package/dist/xanoscript_docs/README.md +25 -9
- package/dist/xanoscript_docs/agents.md +3 -0
- package/dist/xanoscript_docs/ai.md +820 -0
- package/dist/xanoscript_docs/branch.md +109 -29
- package/dist/xanoscript_docs/database.md +7 -5
- package/dist/xanoscript_docs/docs_index.json +36 -28
- package/dist/xanoscript_docs/essentials.md +53 -19
- package/dist/xanoscript_docs/file-uploads.md +4 -4
- package/dist/xanoscript_docs/mcp-servers.md +2 -2
- package/dist/xanoscript_docs/prompts.md +4 -2
- package/dist/xanoscript_docs/realtime-v2.md +4 -2
- package/dist/xanoscript_docs/resources.md +3 -1
- package/dist/xanoscript_docs/survival.md +1 -5
- package/dist/xanoscript_docs/tables.md +58 -0
- package/dist/xanoscript_docs/tools.md +1 -1
- package/dist/xanoscript_docs/triggers.md +133 -3
- package/dist/xanoscript_docs/types.md +14 -1
- package/dist/xanoscript_docs/unit-testing.md +29 -2
- package/dist/xanoscript_docs/version.json +2 -2
- package/dist/xanoscript_docs/workflow-tests.md +18 -0
- 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
|
@@ -20,12 +20,17 @@ XanoScript is the declarative scripting language for [Xano](https://xano.com), a
|
|
|
20
20
|
| `agent_trigger` | `ai/agent/trigger/{name}.xs` | Agent event handlers |
|
|
21
21
|
| `tool` | `ai/tool/{name}.xs` | Tools for AI agents |
|
|
22
22
|
| `mcp_server` | `ai/mcp_server/{name}.xs` | MCP server definitions |
|
|
23
|
-
| `prompt` | `
|
|
24
|
-
| `resource` | `
|
|
23
|
+
| `prompt` | `prompt/{name}.xs` | MCP prompts |
|
|
24
|
+
| `resource` | `resource/{name}.xs` | MCP resources |
|
|
25
25
|
| `mcp_server_trigger`| `ai/mcp_server/trigger/{name}.xs` | MCP server event handlers |
|
|
26
26
|
| `workflow_test` | `workflow_test/{name}.xs` | End-to-end workflow tests |
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
27
|
+
| `realtime_server` | `realtime/server/{server}/{server}.xs` | Realtime V2 server |
|
|
28
|
+
| `realtime_server_trigger` | `realtime/server/{server}/trigger/{name}.xs` | Realtime V2 connect/disconnect handlers |
|
|
29
|
+
| `channel` | `realtime/server/{server}/channel/{channel}/{channel}.xs` | Realtime V2 channel |
|
|
30
|
+
| `message` | `realtime/server/{server}/channel/{channel}/message/{name}.xs` | Realtime V2 message handlers |
|
|
31
|
+
| `channel_trigger` | `realtime/server/{server}/channel/{channel}/trigger/{name}.xs` | Realtime V2 join/leave/deliver handlers |
|
|
32
|
+
| `realtime_channel` | `realtime/channel/{name}.xs` | Legacy V1 realtime channel settings |
|
|
33
|
+
| `realtime_trigger` | `realtime/trigger/{name}.xs` | Legacy V1 realtime event handlers |
|
|
29
34
|
| `branch` | `branch.xs` | Branch-level configuration |
|
|
30
35
|
|
|
31
36
|
**Naming convention:** All folder and file names use `snake_case` (e.g., `user_profile.xs`, `get_all_users_get.xs`).
|
|
@@ -72,6 +77,10 @@ project/
|
|
|
72
77
|
│ ├── my_server.xs # MCP server definitions
|
|
73
78
|
│ └── trigger/
|
|
74
79
|
│ └── on_connect.xs # MCP server triggers
|
|
80
|
+
├── prompt/
|
|
81
|
+
│ └── code_review.xs # MCP prompts
|
|
82
|
+
├── resource/
|
|
83
|
+
│ └── order_docs.xs # MCP resources
|
|
75
84
|
├── workflow_test/
|
|
76
85
|
│ └── checkout_flow.xs # End-to-end workflow tests
|
|
77
86
|
├── middleware/
|
|
@@ -79,10 +88,18 @@ project/
|
|
|
79
88
|
├── addon/
|
|
80
89
|
│ └── user_posts.xs # Query addons
|
|
81
90
|
├── realtime/
|
|
91
|
+
│ ├── server/
|
|
92
|
+
│ │ └── chat/
|
|
93
|
+
│ │ ├── chat.xs # Realtime V2 server
|
|
94
|
+
│ │ └── channel/
|
|
95
|
+
│ │ └── rooms_room_id/ # Channel "rooms/{room_id}"
|
|
96
|
+
│ │ ├── rooms_room_id.xs
|
|
97
|
+
│ │ └── message/
|
|
98
|
+
│ │ └── send.xs # Realtime V2 messages
|
|
82
99
|
│ ├── channel/
|
|
83
|
-
│ │ └── chat_room.xs #
|
|
100
|
+
│ │ └── chat_room.xs # Legacy V1 realtime channels
|
|
84
101
|
│ └── trigger/
|
|
85
|
-
│ └── on_message.xs #
|
|
102
|
+
│ └── on_message.xs # Legacy V1 realtime triggers
|
|
86
103
|
├── static/ # Frontend files (HTML, CSS, JS)
|
|
87
104
|
└── run/ # Job and service configurations
|
|
88
105
|
```
|
|
@@ -252,6 +269,7 @@ Use `xano_xanoscript_docs({ tier: "survival" })` or `xano_xanoscript_docs({ tier
|
|
|
252
269
|
|
|
253
270
|
| Topic | Description | Key Sections |
|
|
254
271
|
| ------------- | --------------------------------------------------- | ------------ |
|
|
272
|
+
| `ai` | Xano AI statements: text, image, video, speech, music, transcription, embeddings, rerank | Choosing a Statement, Billing, Models |
|
|
255
273
|
| `agents` | AI agent configuration with LLM providers and tools | LLM Config, Tool Binding |
|
|
256
274
|
| `tools` | AI tools for agents and MCP servers | Tool Schema, Parameters |
|
|
257
275
|
| `mcp-servers` | MCP server definitions exposing tools | Server Config, Tool Exposure |
|
|
@@ -268,9 +286,7 @@ Use `xano_xanoscript_docs({ tier: "survival" })` or `xano_xanoscript_docs({ tier
|
|
|
268
286
|
| ------------ | ---------------------------------------------------------------------- | ------------ |
|
|
269
287
|
| `workspace` | Workspace-level settings: environment variables, preferences, realtime | Env Variables, Preferences |
|
|
270
288
|
| `branch` | Branch-level settings: middleware, history retention, visual styling | Middleware Config, History |
|
|
271
|
-
| `middleware` | Request/response interceptors for functions, queries, tasks, and
|
|
272
|
-
| `policies` | Workspace policy documents: syntax, check catalogue, templates, authoring rules | Quick Reference, Permissions |
|
|
273
|
-
| `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 |
|
|
289
|
+
| `middleware` | Request/response interceptors for functions, queries, tasks, tools, realtime messages, and MCP prompts and resources | Pre/Post Hooks |
|
|
274
290
|
|
|
275
291
|
### Development
|
|
276
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 |
|