@xano/developer-mcp 2.3.0-beta.1 → 2.3.0-beta.10
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 -14
- 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 +42 -11
- 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/workflows.js +1 -1
- package/dist/meta_api_docs/topics/workspace.js +1 -1
- package/dist/tools/validate_xanoscript.js +6 -9
- package/dist/xanoscript.js +0 -1
- package/dist/xanoscript_docs/README.md +25 -8
- package/dist/xanoscript_docs/agents.md +14 -5
- 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 -22
- 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 -91
- 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 -135
- package/dist/xanoscript_docs/policies.md +0 -308
|
@@ -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,8 +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, goals, authoring rules | Quick Reference, Permissions |
|
|
289
|
+
| `middleware` | Request/response interceptors for functions, queries, tasks, tools, realtime messages, and MCP prompts and resources | Pre/Post Hooks |
|
|
273
290
|
|
|
274
291
|
### Development
|
|
275
292
|
|
|
@@ -6,7 +6,7 @@ applyTo: "ai/agent/*.xs"
|
|
|
6
6
|
|
|
7
7
|
AI-powered agents that use LLMs to perform tasks autonomously.
|
|
8
8
|
|
|
9
|
-
> **TL;DR:** Define with `agent "name" { llm = { type: "provider", system_prompt: "...", prompt: "..." } tools = [...] }`. Providers: `xano-
|
|
9
|
+
> **TL;DR:** Define with `agent "name" { llm = { type: "provider", system_prompt: "...", prompt: "..." } tools = [...] }`. Providers: `xano-ai`, `openai`, `anthropic`, `google-genai` (`xano-free` is deprecated). Tools give agents capabilities.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -29,7 +29,8 @@ agent "<name>" {
|
|
|
29
29
|
### LLM Providers
|
|
30
30
|
| Provider | Type Value |
|
|
31
31
|
|----------|------------|
|
|
32
|
-
| Xano
|
|
32
|
+
| Xano AI (charged in credits) | `xano-ai` |
|
|
33
|
+
| Xano Free (deprecated, runs as Xano AI) | `xano-free` |
|
|
33
34
|
| Google Gemini | `google-genai` |
|
|
34
35
|
| OpenAI | `openai` |
|
|
35
36
|
| Anthropic | `anthropic` |
|
|
@@ -43,7 +44,7 @@ agent "Customer Support" {
|
|
|
43
44
|
canonical = "support-agent-v1"
|
|
44
45
|
description = "Handles customer inquiries"
|
|
45
46
|
llm = {
|
|
46
|
-
type: "xano-
|
|
47
|
+
type: "xano-ai"
|
|
47
48
|
system_prompt: "You are a helpful customer support agent."
|
|
48
49
|
prompt: "{{ $args.user_message }}"
|
|
49
50
|
max_steps: 5
|
|
@@ -60,6 +61,8 @@ agent "Customer Support" {
|
|
|
60
61
|
|
|
61
62
|
## Calling Agents
|
|
62
63
|
|
|
64
|
+
> **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.
|
|
65
|
+
|
|
63
66
|
```xs
|
|
64
67
|
ai.agent.run "Customer Support" {
|
|
65
68
|
args = {}|set:"user_message":$input.message
|
|
@@ -90,18 +93,23 @@ llm = {
|
|
|
90
93
|
|
|
91
94
|
## Provider Configurations
|
|
92
95
|
|
|
93
|
-
### Xano
|
|
96
|
+
### Xano AI
|
|
97
|
+
Runs on Xano's own models and is charged in AI credits, so it needs no API key. It uses Xano AI's default model; there is no `model` field.
|
|
94
98
|
```xs
|
|
95
99
|
llm = {
|
|
96
|
-
type: "xano-
|
|
100
|
+
type: "xano-ai"
|
|
97
101
|
system_prompt: "You are a helpful assistant."
|
|
98
102
|
prompt: "{{ $args.message }}"
|
|
99
103
|
max_steps: 3
|
|
100
104
|
temperature: 0
|
|
101
105
|
search_grounding: false // Google Search grounding
|
|
106
|
+
location: "eu" // Optional: "us", "global" or "eu"; omit for the workspace default
|
|
102
107
|
}
|
|
103
108
|
```
|
|
104
109
|
|
|
110
|
+
### Xano Free (deprecated)
|
|
111
|
+
`type: "xano-free"` is still valid, so existing agents keep working, but the validator marks it deprecated. Where Xano AI is available, a `xano-free` agent runs as Xano AI: charged in credits, on Xano AI's default model and the workspace's location. Write new agents with `type: "xano-ai"`.
|
|
112
|
+
|
|
105
113
|
### Google Gemini
|
|
106
114
|
```xs
|
|
107
115
|
llm = {
|
|
@@ -387,6 +395,7 @@ agent "Research Agent" {
|
|
|
387
395
|
|
|
388
396
|
| Topic | Description |
|
|
389
397
|
|-------|-------------|
|
|
398
|
+
| `ai` | One-shot Xano AI statements (`ai.text.generate`, `ai.image.generate`, ...) |
|
|
390
399
|
| `tools` | Functions that agents can execute |
|
|
391
400
|
| `mcp-servers` | MCP server configuration |
|
|
392
401
|
| `triggers` | Agent triggers for events |
|