@xano/developer-mcp 1.0.10 → 1.0.12
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 +83 -70
- package/dist/api_docs/format.d.ts +5 -0
- package/dist/api_docs/format.js +158 -0
- package/dist/api_docs/index.d.ts +52 -0
- package/dist/api_docs/index.js +111 -0
- package/dist/api_docs/topics/agent.d.ts +2 -0
- package/dist/api_docs/topics/agent.js +142 -0
- package/dist/api_docs/topics/api.d.ts +2 -0
- package/dist/api_docs/topics/api.js +176 -0
- package/dist/api_docs/topics/apigroup.d.ts +2 -0
- package/dist/api_docs/topics/apigroup.js +124 -0
- package/dist/api_docs/topics/authentication.d.ts +2 -0
- package/dist/api_docs/topics/authentication.js +61 -0
- package/dist/api_docs/topics/branch.d.ts +2 -0
- package/dist/api_docs/topics/branch.js +73 -0
- package/dist/api_docs/topics/file.d.ts +2 -0
- package/dist/api_docs/topics/file.js +70 -0
- package/dist/api_docs/topics/function.d.ts +2 -0
- package/dist/api_docs/topics/function.js +164 -0
- package/dist/api_docs/topics/history.d.ts +2 -0
- package/dist/api_docs/topics/history.js +149 -0
- package/dist/api_docs/topics/mcp_server.d.ts +2 -0
- package/dist/api_docs/topics/mcp_server.js +139 -0
- package/dist/api_docs/topics/middleware.d.ts +2 -0
- package/dist/api_docs/topics/middleware.js +156 -0
- package/dist/api_docs/topics/realtime.d.ts +2 -0
- package/dist/api_docs/topics/realtime.js +112 -0
- package/dist/api_docs/topics/start.d.ts +2 -0
- package/dist/api_docs/topics/start.js +107 -0
- package/dist/api_docs/topics/table.d.ts +2 -0
- package/dist/api_docs/topics/table.js +195 -0
- package/dist/api_docs/topics/task.d.ts +2 -0
- package/dist/api_docs/topics/task.js +165 -0
- package/dist/api_docs/topics/tool.d.ts +2 -0
- package/dist/api_docs/topics/tool.js +150 -0
- package/dist/api_docs/topics/workflows.d.ts +2 -0
- package/dist/api_docs/topics/workflows.js +131 -0
- package/dist/api_docs/topics/workspace.d.ts +2 -0
- package/dist/api_docs/topics/workspace.js +153 -0
- package/dist/api_docs/types.d.ts +79 -0
- package/dist/api_docs/types.js +4 -0
- package/dist/index.js +51 -175
- package/dist/templates/init-workspace.js +2 -16
- package/package.json +4 -7
- package/api_docs/addon.md +0 -193
- package/api_docs/agent.md +0 -154
- package/api_docs/api_group.md +0 -236
- package/api_docs/authentication.md +0 -68
- package/api_docs/file.md +0 -190
- package/api_docs/function.md +0 -217
- package/api_docs/history.md +0 -263
- package/api_docs/index.md +0 -104
- package/api_docs/mcp_server.md +0 -139
- package/api_docs/middleware.md +0 -205
- package/api_docs/realtime.md +0 -153
- package/api_docs/table.md +0 -151
- package/api_docs/task.md +0 -191
- package/api_docs/tool.md +0 -216
- package/api_docs/triggers.md +0 -344
- package/api_docs/workspace.md +0 -246
- /package/{xanoscript_docs → dist/xanoscript_docs}/README.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/addons.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/agents.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/apis.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/database.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/debugging.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/ephemeral.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/frontend.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/functions.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/integrations.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/mcp-servers.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/performance.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/realtime.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/schema.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/security.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/streaming.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/syntax.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/tables.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/tasks.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/testing.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/tools.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/triggers.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/types.md +0 -0
- /package/{xanoscript_docs → dist/xanoscript_docs}/version.json +0 -0
package/api_docs/workspace.md
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
# Workspace API
|
|
2
|
-
|
|
3
|
-
Workspaces are the primary container for all Xano resources including tables, APIs, functions, and more.
|
|
4
|
-
|
|
5
|
-
## Endpoints Overview
|
|
6
|
-
|
|
7
|
-
| Method | Endpoint | Description |
|
|
8
|
-
|--------|----------|-------------|
|
|
9
|
-
| GET | `/workspace` | List all workspaces |
|
|
10
|
-
| GET | `/workspace/{workspace_id}` | Get workspace details |
|
|
11
|
-
| POST | `/workspace/{workspace_id}/export` | Export workspace archive |
|
|
12
|
-
| POST | `/workspace/{workspace_id}/export-schema` | Export schema only |
|
|
13
|
-
| POST | `/workspace/{workspace_id}/import` | Import workspace archive |
|
|
14
|
-
| POST | `/workspace/{workspace_id}/import-schema` | Import schema to new branch |
|
|
15
|
-
| GET | `/workspace/{workspace_id}/openapi` | Get OpenAPI specification |
|
|
16
|
-
| GET | `/workspace/{workspace_id}/context` | Get AI-consumable context |
|
|
17
|
-
| GET | `/workspace/{workspace_id}/multidoc` | Export as XanoScript multidoc |
|
|
18
|
-
| POST | `/workspace/{workspace_id}/convert/fromXS` | Convert XanoScript to JSON |
|
|
19
|
-
| POST | `/workspace/{workspace_id}/convert/toXS` | Convert JSON to XanoScript |
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## List Workspaces
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
GET /workspace
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Returns array of workspace objects the authenticated user can access.
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Get Workspace
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
GET /workspace/{workspace_id}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**Path Parameters:**
|
|
40
|
-
- `workspace_id` (int, required): Workspace ID
|
|
41
|
-
|
|
42
|
-
**Response Fields:**
|
|
43
|
-
| Field | Type | Description |
|
|
44
|
-
|-------|------|-------------|
|
|
45
|
-
| `id` | int | Workspace unique identifier |
|
|
46
|
-
| `name` | text | Workspace name |
|
|
47
|
-
| `branch` | text | Current live branch label |
|
|
48
|
-
| `swagger` | bool | OpenAPI documentation enabled |
|
|
49
|
-
| `documentation.link` | text | Link to OpenAPI spec |
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## Export Workspace
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
POST /workspace/{workspace_id}/export
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**Parameters:**
|
|
60
|
-
| Parameter | Type | Default | Description |
|
|
61
|
-
|-----------|------|---------|-------------|
|
|
62
|
-
| `branch` | text | "" | Branch label (empty = live) |
|
|
63
|
-
| `password` | text | "" | Optional encryption password |
|
|
64
|
-
|
|
65
|
-
Returns downloadable archive file.
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Export Schema Only
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
POST /workspace/{workspace_id}/export-schema
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Same parameters as export. Returns schema and branch configuration only.
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Import Workspace
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
POST /workspace/{workspace_id}/import
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Parameters:**
|
|
86
|
-
| Parameter | Type | Required | Description |
|
|
87
|
-
|-----------|------|----------|-------------|
|
|
88
|
-
| `file` | file | Yes | Export archive file |
|
|
89
|
-
| `password` | text | No | Decryption password |
|
|
90
|
-
|
|
91
|
-
Replaces all content in target workspace.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Import Schema
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
POST /workspace/{workspace_id}/import-schema
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Parameters:**
|
|
102
|
-
| Parameter | Type | Required | Description |
|
|
103
|
-
|-----------|------|----------|-------------|
|
|
104
|
-
| `file` | file | Yes | Schema export file |
|
|
105
|
-
| `newbranch` | text | Yes | Name for new branch |
|
|
106
|
-
| `setlive` | bool | No | Set new branch as live |
|
|
107
|
-
| `password` | text | No | Decryption password |
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Get OpenAPI Spec
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
GET /workspace/{workspace_id}/openapi
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Parameters:**
|
|
118
|
-
- `branch` (text): Branch label (empty = live)
|
|
119
|
-
|
|
120
|
-
Returns OpenAPI specification as JSON.
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## Get Workspace Context
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
GET /workspace/{workspace_id}/context
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Generates AI/LLM-consumable workspace context.
|
|
131
|
-
|
|
132
|
-
**Parameters:**
|
|
133
|
-
| Parameter | Type | Default | Description |
|
|
134
|
-
|-----------|------|---------|-------------|
|
|
135
|
-
| `branch` | text | "" | Branch label |
|
|
136
|
-
| `format` | enum | "yaml" | Output: "json" or "yaml" |
|
|
137
|
-
| `include` | text | "" | Comma-separated resource list |
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## Export as XanoScript Multidoc
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
GET /workspace/{workspace_id}/multidoc
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Parameters:**
|
|
148
|
-
| Parameter | Type | Default | Description |
|
|
149
|
-
|-----------|------|---------|-------------|
|
|
150
|
-
| `branch` | text | "" | Branch label |
|
|
151
|
-
| `env` | bool | false | Include environment variables |
|
|
152
|
-
| `records` | bool | false | Include database records |
|
|
153
|
-
|
|
154
|
-
Returns XanoScript multidoc (`text/x-xanoscript`).
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## Convert XanoScript to JSON
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
POST /workspace/{workspace_id}/convert/fromXS
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
**Content-Type:** `text/x-xanoscript`
|
|
165
|
-
|
|
166
|
-
Body: XanoScript code to convert.
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Convert JSON to XanoScript
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
POST /workspace/{workspace_id}/convert/toXS
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
**Content-Type:** `application/json`
|
|
177
|
-
|
|
178
|
-
**Body:**
|
|
179
|
-
```json
|
|
180
|
-
{
|
|
181
|
-
"kind": "object_type",
|
|
182
|
-
"data": "json_data"
|
|
183
|
-
}
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
# Branches
|
|
189
|
-
|
|
190
|
-
## List Branches
|
|
191
|
-
|
|
192
|
-
```
|
|
193
|
-
GET /workspace/{workspace_id}/branch
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
**Response Example:**
|
|
197
|
-
```json
|
|
198
|
-
[
|
|
199
|
-
{"created_at": "2024-01-01T00:00:00Z", "label": "v1", "backup": false, "live": true},
|
|
200
|
-
{"created_at": "2024-01-15T00:00:00Z", "label": "dev", "backup": false}
|
|
201
|
-
]
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Delete Branch
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
DELETE /workspace/{workspace_id}/branch/{branch_label}
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
Cannot delete `v1` (root) or currently live branch.
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
# Datasources
|
|
215
|
-
|
|
216
|
-
External database connections.
|
|
217
|
-
|
|
218
|
-
## List Datasources
|
|
219
|
-
|
|
220
|
-
```
|
|
221
|
-
GET /workspace/{workspace_id}/datasource
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
## Create Datasource
|
|
225
|
-
|
|
226
|
-
```
|
|
227
|
-
POST /workspace/{workspace_id}/datasource
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
**Parameters:**
|
|
231
|
-
| Parameter | Type | Required | Default | Description |
|
|
232
|
-
|-----------|------|----------|---------|-------------|
|
|
233
|
-
| `label` | text | Yes | - | Unique label |
|
|
234
|
-
| `color` | text | No | "#ebc346" | Display color (hex) |
|
|
235
|
-
|
|
236
|
-
## Update Datasource
|
|
237
|
-
|
|
238
|
-
```
|
|
239
|
-
PUT /workspace/{workspace_id}/datasource/{label}
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
## Delete Datasource
|
|
243
|
-
|
|
244
|
-
```
|
|
245
|
-
DELETE /workspace/{workspace_id}/datasource/{label}
|
|
246
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|