@xano/developer-mcp 2.0.1 → 2.0.2-beta.0
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.
|
@@ -47,11 +47,13 @@ Xano CLI commands are SPACE-separated (e.g. \`xano branch list\`), not colon-sep
|
|
|
47
47
|
flags: [
|
|
48
48
|
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
|
|
49
49
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" },
|
|
50
|
+
{ name: "backups", type: "boolean", required: false, default: "false", description: "Include backup branches in the output" },
|
|
50
51
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
51
52
|
],
|
|
52
53
|
examples: [
|
|
53
54
|
"xano branch list",
|
|
54
55
|
"xano branch list -w 123",
|
|
56
|
+
"xano branch list --backups",
|
|
55
57
|
"xano branch list --output json"
|
|
56
58
|
]
|
|
57
59
|
},
|
|
@@ -180,24 +180,23 @@ Xano CLI commands are SPACE-separated (e.g. \`xano release list\`), not colon-se
|
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
name: "release push",
|
|
183
|
-
description: "Push a local directory as a new release. Directory is the -d/--directory flag (default: current directory), not a positional argument.",
|
|
183
|
+
description: "Push a local directory as a new release. Directory is the -d/--directory flag (default: current directory), not a positional argument. The release is bound to the directory's branch — there is no `--branch` flag.",
|
|
184
184
|
usage: "xano release push -n <name> [options]",
|
|
185
185
|
flags: [
|
|
186
186
|
{ name: "name", short: "n", type: "string", required: true, description: "Name for the new release" },
|
|
187
|
-
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Local directory containing
|
|
188
|
-
{ name: "branch", short: "b", type: "string", required: false, description: "Branch to associate the release with" },
|
|
187
|
+
{ name: "directory", short: "d", type: "string", required: false, default: ".", description: "Local directory containing .xs documents to push as a release (defaults to current directory)" },
|
|
189
188
|
{ name: "hotfix", type: "boolean", required: false, default: "false", description: "Mark this release as a hotfix" },
|
|
190
189
|
{ name: "description", type: "string", required: false, description: "Description for the release" },
|
|
191
190
|
{ name: "records", type: "boolean", required: false, default: "true", description: "Include records (default: true; use --no-records to exclude)" },
|
|
192
191
|
{ name: "env", type: "boolean", required: false, default: "true", description: "Include environment variables (default: true; use --no-env to exclude)" },
|
|
193
|
-
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (
|
|
192
|
+
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (optional if set in profile)" },
|
|
194
193
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" },
|
|
195
194
|
{ name: "profile", short: "p", type: "string", required: false, description: "Profile name to use" }
|
|
196
195
|
],
|
|
197
196
|
examples: [
|
|
198
197
|
"xano release push -n v1.0.0",
|
|
199
198
|
"xano release push -d ./release-v1 -n v1.0.0",
|
|
200
|
-
'xano release push -d ./release-v1 -n v1.1.0
|
|
199
|
+
'xano release push -d ./release-v1 -n v1.1.0 --description "Staging release"',
|
|
201
200
|
"xano release push -n hotfix-1 --hotfix --no-records --no-env"
|
|
202
201
|
]
|
|
203
202
|
},
|
|
@@ -69,6 +69,20 @@ All commands support:
|
|
|
69
69
|
- \`XANO_CONFIG\` - Override the credentials file path (same effect as \`-c\`)
|
|
70
70
|
- \`XANO_VERBOSE\` - Enable verbose logging (same effect as \`-v\`)
|
|
71
71
|
|
|
72
|
+
## Safety Markers (\`[CRITICAL]\` and \`[IMPORTANT]\`)
|
|
73
|
+
|
|
74
|
+
Destructive commands and flags are prefixed with one of two imperative markers in their description, usage, and help text. These are not stylistic — they signal required agent behavior:
|
|
75
|
+
|
|
76
|
+
- **\`[CRITICAL]\`** — Irreversible or large-blast-radius operation (data loss, destroyed restore points, truncated tables, disabled rollback, removed clusters, replaced env vars). **NEVER run a \`[CRITICAL]\` command or flag without explicit user confirmation in the current turn.** Prior approval of a similar command does not carry over. The accompanying imperative verb (\`NEVER\`, \`STOP\`, \`DO NOT\`) tells you the exact required action.
|
|
77
|
+
- **\`[IMPORTANT]\`** — Mutates shared/live state but is reversible or has a preview path. **ALWAYS run \`--dry-run\` first (when available) and surface the output to the user before proceeding.** Confirm intent if the user has not already approved this specific action.
|
|
78
|
+
|
|
79
|
+
When you see either marker, pause and acknowledge it to the user before invoking the command — do not auto-accept it just because the broader task was approved.
|
|
80
|
+
|
|
81
|
+
Examples of where these markers appear:
|
|
82
|
+
- \`[CRITICAL]\` flags: \`--force\` on any \`delete\`, \`workspace push --sync --delete\`, \`--truncate\`, \`--no-transaction\`, \`--records\` (when pushing live data).
|
|
83
|
+
- \`[CRITICAL]\` commands: \`tenant backup restore\`, \`tenant cluster delete\`, \`tenant deploy_platform\`, \`tenant env set_all\`, \`sandbox env set_all\`, \`sandbox reset\`, \`sandbox delete\`, \`workspace delete\`.
|
|
84
|
+
- \`[IMPORTANT]\` base commands: \`workspace push\`, \`sandbox push\`, \`branch set_live\`, \`release import\`, \`release push\`, \`release deploy\`.
|
|
85
|
+
|
|
72
86
|
## Command Categories
|
|
73
87
|
|
|
74
88
|
| Category | Description |
|
|
@@ -86,7 +100,9 @@ All commands support:
|
|
|
86
100
|
| \`platform\` | View available platform versions |
|
|
87
101
|
| \`static_host\` | Deploy static sites |
|
|
88
102
|
| \`update\` | Update CLI to latest version |`,
|
|
89
|
-
ai_hints: `**
|
|
103
|
+
ai_hints: `**Safety markers (full definitions in description above):** When you see \`[CRITICAL]\` on a command or flag, NEVER run it without explicit user confirmation in the current turn — prior approval does not carry over. When you see \`[IMPORTANT]\`, ALWAYS run \`--dry-run\` first (when available) and show the user the output before the real run. The imperative verb in the marker (\`NEVER\`, \`ALWAYS\`, \`STOP\`, \`DO NOT\`) is the literal required action.
|
|
104
|
+
|
|
105
|
+
**Important:** The CLI is optional - not all users will have it installed. Before suggesting CLI commands, check if the user has it available or ask if they'd like to install it. The Meta API can accomplish the same tasks programmatically.
|
|
90
106
|
|
|
91
107
|
**When to use CLI vs Meta API:**
|
|
92
108
|
- Use CLI for: local development, code sync, quick execution, scripting
|
|
@@ -70,19 +70,19 @@ export const staticHostDoc = {
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
name: "static_host build get",
|
|
73
|
-
description: "Get details of a specific build",
|
|
74
|
-
usage: "xano static_host build get <
|
|
73
|
+
description: "Get details of a specific build. Positional order is `<build_id> <static_host>` per the CLI's argument schema.",
|
|
74
|
+
usage: "xano static_host build get <build_id> <static_host>",
|
|
75
75
|
args: [
|
|
76
|
-
{ name: "
|
|
77
|
-
{ name: "
|
|
76
|
+
{ name: "build_id", required: true, description: "Build ID" },
|
|
77
|
+
{ name: "static_host", required: true, description: "Static host name" }
|
|
78
78
|
],
|
|
79
79
|
flags: [
|
|
80
80
|
{ name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (optional if set in profile)" },
|
|
81
81
|
{ name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
|
|
82
82
|
],
|
|
83
83
|
examples: [
|
|
84
|
-
"xano static_host build get my-app
|
|
85
|
-
"xano static_host build get my-app
|
|
84
|
+
"xano static_host build get 52 my-app",
|
|
85
|
+
"xano static_host build get 52 my-app -o json"
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
],
|
package/package.json
CHANGED