@xano/developer-mcp 1.0.72 → 1.0.74

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.
@@ -3,7 +3,7 @@ export const integrationDoc = {
3
3
  title: "Xano CLI + Meta API Integration Guide",
4
4
  description: `This guide explains when to use the CLI vs the Meta API, and how they work together for different workflows.
5
5
 
6
- > **Note:** The CLI is optional but recommended for local development. Not all users will have it installed. Everything the CLI does can also be accomplished via the Meta API and Run API directly.
6
+ > **Note:** The CLI is optional but recommended for local development. Not all users will have it installed. Everything the CLI does can also be accomplished via the Meta API directly.
7
7
 
8
8
  ## CLI Installation (Optional)
9
9
 
@@ -24,8 +24,8 @@ npm install -g @xano/cli
24
24
  | Branch management | Yes | Yes |
25
25
  | Release management | Yes | Yes |
26
26
  | Tenant management | Yes | Yes |
27
+ | Personal dev env (sandbox) | Yes | - |
27
28
  | Run unit/workflow tests | Yes | - |
28
- | Execute XanoScript | Yes | Yes (Run API) |
29
29
  | CI/CD automation | Both | Both |
30
30
  | Deploy static sites | Yes | - |
31
31
  | Programmatic management | - | Yes |
@@ -33,13 +33,18 @@ npm install -g @xano/cli
33
33
  | Manage API groups | - | Yes |
34
34
  | Build integrations | - | Yes |
35
35
 
36
+ ## Sandbox - Free-Tier Personal Dev Environment
37
+
38
+ The CLI ships with a \`sandbox\` topic that provisions a singleton personal tenant on demand - an auto-created, free-tier development environment scoped to the authenticated user. Suggest \`xano sandbox get\` (the entry-point command that auto-provisions on first call) to users who want a safe place to experiment without touching shared workspaces or production tenants.
39
+
36
40
  ## Authentication
37
41
 
38
42
  Both use the same access token from your Xano dashboard:
39
43
 
40
44
  **CLI:** Stored in \`~/.xano/credentials.yaml\`
41
45
  \`\`\`bash
42
- xano profile:wizard # Interactive setup
46
+ xano auth # Browser-based OAuth (recommended)
47
+ xano profile wizard # Token-based interactive setup
43
48
  \`\`\`
44
49
 
45
50
  **Meta API:** Bearer token in Authorization header
@@ -52,26 +57,24 @@ Authorization: Bearer <your-token>
52
57
  | API | Base URL | Purpose |
53
58
  |-----|----------|---------|
54
59
  | Meta API | \`https://<instance>.xano.io/api:meta\` | Manage resources |
55
- | Run API | \`https://app.dev.xano.com/api:run\` | Execute code |
56
60
 
57
- The CLI uses both APIs internally.`,
61
+ The CLI uses the Meta API internally.`,
58
62
  ai_hints: `**Important:** The CLI is optional. Before suggesting CLI commands, verify the user has it installed or offer to help them install it. All CLI functionality has Meta API equivalents.
59
63
 
60
64
  **Decision tree for AI:**
61
65
 
62
66
  1. **User wants to edit code locally?**
63
- - With CLI: \`workspace:pull/push\`
67
+ - With CLI: \`workspace pull\` / \`workspace push\`
64
68
  - Without CLI: Use Meta API \`/workspace/{id}/multidoc\` endpoints
65
- 2. **User wants to execute XanoScript?**
66
- - With CLI: \`run:exec\`
67
- - Without CLI: Use Run API directly
68
- 3. **User wants to create/modify tables?** → Meta API \`/table\` endpoints
69
- 4. **User wants to create/modify APIs?** → Meta API \`/api\` endpoints
69
+ 2. **User wants a personal dev environment (no tenant yet)?**
70
+ - Suggest \`xano sandbox get\` - auto-provisions a free-tier singleton tenant for the user
71
+ 3. **User wants to create/modify tables?** -> Meta API \`/table\` endpoints
72
+ 4. **User wants to create/modify APIs?** -> Meta API \`/api\` endpoints
70
73
  5. **User wants to manage functions?**
71
- - With CLI: \`function:*\` commands for code
74
+ - With CLI: \`function\` subcommands for code
72
75
  - Without CLI: Meta API \`/function\` endpoints
73
- 6. **User wants automation in code?** → Meta API (HTTP calls)
74
- 7. **User wants shell scripting?** → CLI commands (if installed)
76
+ 6. **User wants automation in code?** -> Meta API (HTTP calls)
77
+ 7. **User wants shell scripting?** -> CLI commands (if installed)
75
78
 
76
79
  **If CLI not installed:**
77
80
  - Recommend installation: \`npm install -g @xano/cli\`
@@ -82,24 +85,25 @@ The CLI uses both APIs internally.`,
82
85
  The same access token works for both:
83
86
  \`\`\`bash
84
87
  # Get token from CLI profile
85
- TOKEN=$(xano profile:token)
88
+ TOKEN=$(xano profile token)
86
89
 
87
90
  # Use with Meta API
88
91
  curl -H "Authorization: Bearer $TOKEN" https://instance.xano.io/api:meta/workspace
89
92
  \`\`\``,
90
- related_topics: ["start", "auth", "profile", "workspace", "release", "tenant"],
93
+ related_topics: ["start", "auth", "profile", "workspace", "release", "tenant", "sandbox"],
91
94
  workflows: [
92
95
  {
93
96
  name: "Local Development with Version Control",
94
97
  description: "Full workflow using CLI for code and git for versioning",
95
98
  steps: [
96
- "Setup: `xano profile:wizard`",
97
- "Pull code: `xano workspace:pull ./xano`",
99
+ "Setup: `xano auth` (or `xano profile wizard`)",
100
+ "(Optional) Spin up a personal dev env: `xano sandbox get`",
101
+ "Pull code: `xano workspace pull -d ./xano`",
98
102
  "Init git: `cd xano && git init && git add . && git commit -m 'Initial'`",
99
103
  "Create feature branch: `git checkout -b feature/new-api`",
100
104
  "Edit .xs files in your IDE",
101
105
  "Validate with MCP: Use `validate_xanoscript` tool",
102
- "Push to Xano: `xano workspace:push ./xano`",
106
+ "Push to Xano: `xano workspace push -d ./xano`",
103
107
  "Test in Xano dashboard",
104
108
  "Commit changes: `git add . && git commit -m 'Add new API'`"
105
109
  ]
@@ -109,9 +113,9 @@ curl -H "Authorization: Bearer $TOKEN" https://instance.xano.io/api:meta/workspa
109
113
  description: "Automated deployment using CLI in CI/CD",
110
114
  steps: [
111
115
  "Store XANO_TOKEN as CI secret",
112
- "Create profile in CI: `xano profile:create ci -i $INSTANCE -t $XANO_TOKEN`",
116
+ "Create profile in CI: `xano profile create ci -i $INSTANCE -t $XANO_TOKEN`",
113
117
  "Pull from git repo (your versioned .xs files)",
114
- "Push to Xano: `xano workspace:push ./xano -p ci`"
118
+ "Push to Xano: `xano workspace push -d ./xano -p ci`"
115
119
  ],
116
120
  example: `# GitHub Actions example
117
121
  - name: Deploy to Xano
@@ -119,30 +123,41 @@ curl -H "Authorization: Bearer $TOKEN" https://instance.xano.io/api:meta/workspa
119
123
  XANO_TOKEN: \${{ secrets.XANO_TOKEN }}
120
124
  run: |
121
125
  npm install -g @xano/cli
122
- xano profile:create deploy -i https://x8ki.xano.io -t $XANO_TOKEN -w 1
123
- xano workspace:push ./xano -p deploy`
126
+ xano profile create deploy -i https://x8ki.xano.io -t $XANO_TOKEN -w my-workspace
127
+ xano workspace push -d ./xano -p deploy`
128
+ },
129
+ {
130
+ name: "Sandbox-First Experimentation",
131
+ description: "Use the sandbox tenant for safe, free-tier development",
132
+ steps: [
133
+ "Authenticate: `xano auth`",
134
+ "Provision/select sandbox: `xano sandbox get`",
135
+ "Pull sandbox contents locally: `xano sandbox pull -d ./sandbox`",
136
+ "Iterate on .xs files locally",
137
+ "Push changes back: `xano sandbox push -d ./sandbox --review`"
138
+ ]
124
139
  },
125
140
  {
126
141
  name: "Create Resources via Meta API + Edit via CLI",
127
142
  description: "Use Meta API to scaffold, CLI to implement",
128
143
  steps: [
129
144
  "Use Meta API to create new function: `POST /workspace/{id}/function`",
130
- "Pull workspace: `xano workspace:pull ./xano`",
145
+ "Pull workspace: `xano workspace pull -d ./xano`",
131
146
  "Find the new function .xs file",
132
147
  "Implement the function logic",
133
- "Push changes: `xano workspace:push ./xano`"
148
+ "Push changes: `xano workspace push -d ./xano`"
134
149
  ]
135
150
  },
136
151
  {
137
152
  name: "Export Token for API Calls",
138
153
  description: "Use CLI-stored credentials with Meta API",
139
154
  steps: [
140
- "Get token: `TOKEN=$(xano profile:token)`",
155
+ "Get token: `TOKEN=$(xano profile token)`",
141
156
  "Use in curl: `curl -H \"Authorization: Bearer $TOKEN\" <api-url>`",
142
157
  "Or in code: read token and make HTTP requests"
143
158
  ],
144
159
  example: `# Bash
145
- TOKEN=$(xano profile:token)
160
+ TOKEN=$(xano profile token)
146
161
  curl -H "Authorization: Bearer $TOKEN" \\
147
162
  https://x8ki.xano.io/api:meta/workspace`
148
163
  },
@@ -150,12 +165,12 @@ curl -H "Authorization: Bearer $TOKEN" \\
150
165
  name: "Multi-Environment Workflow",
151
166
  description: "Manage staging and production with profiles",
152
167
  steps: [
153
- "Create staging profile: `xano profile:create staging -i <url> -t <token> -b 2`",
154
- "Create production profile: `xano profile:create prod -i <url> -t <token> -b 1`",
155
- "Develop on staging: `xano workspace:pull ./code -p staging`",
168
+ "Create staging profile: `xano profile create staging -i <url> -t <token> -b staging`",
169
+ "Create production profile: `xano profile create prod -i <url> -t <token> -b v1`",
170
+ "Develop on staging: `xano workspace pull -d ./code -p staging`",
156
171
  "Edit and test",
157
- "Push to staging: `xano workspace:push ./code -p staging`",
158
- "When ready, push to production: `xano workspace:push ./code -p prod`"
172
+ "Push to staging: `xano workspace push -d ./code -p staging`",
173
+ "When ready, push to production: `xano workspace push -d ./code -p prod`"
159
174
  ]
160
175
  }
161
176
  ]
@@ -1,40 +1,40 @@
1
1
  export const platformDoc = {
2
2
  topic: "platform",
3
3
  title: "Xano CLI - Platform Management",
4
- description: `Platform commands let you view available Xano platform versions. Platforms define the runtime environment for tenants and can be deployed to tenants using \`tenant:deploy_platform\`.`,
4
+ description: `Platform commands let you view available Xano platform versions. Platforms define the runtime environment (helm chart + container images) for tenants and can be deployed to tenants using \`tenant deploy_platform\`.`,
5
5
  ai_hints: `**Platforms are read-only in the CLI** - you can list and view them but not create/modify.
6
6
 
7
7
  **Use cases:**
8
8
  - Check available platform versions before deploying to a tenant
9
- - Get platform details (version, features, etc.)
10
- - Used with \`tenant:deploy_platform\` to update a tenant's runtime`,
11
- related_topics: ["tenant"],
9
+ - Get platform details (helm tag, image versions, creation date)
10
+ - Used with \`tenant deploy_platform\` to update a tenant's runtime`,
11
+ related_topics: ["tenant", "sandbox"],
12
12
  commands: [
13
13
  {
14
- name: "platform:list",
14
+ name: "platform list",
15
15
  description: "List all available platform versions",
16
- usage: "xano platform:list [options]",
16
+ usage: "xano platform list [options]",
17
17
  flags: [
18
18
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
19
19
  ],
20
20
  examples: [
21
- "xano platform:list",
22
- "xano platform:list -o json"
21
+ "xano platform list",
22
+ "xano platform list -o json"
23
23
  ]
24
24
  },
25
25
  {
26
- name: "platform:get",
27
- description: "Get details of a specific platform version",
28
- usage: "xano platform:get <platform_id> [options]",
26
+ name: "platform get",
27
+ description: "Get details of a specific platform version (helm tag, image tags, etc.)",
28
+ usage: "xano platform get <platform_id> [options]",
29
29
  args: [
30
- { name: "platform_id", required: true, description: "Platform ID" }
30
+ { name: "platform_id", required: true, description: "Platform ID (integer)" }
31
31
  ],
32
32
  flags: [
33
33
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
34
34
  ],
35
35
  examples: [
36
- "xano platform:get 5",
37
- "xano platform:get 5 -o json"
36
+ "xano platform get 23629",
37
+ "xano platform get 23629 -o json"
38
38
  ]
39
39
  }
40
40
  ]
@@ -17,8 +17,6 @@ profiles:
17
17
  access_token: <token>
18
18
  workspace: 1
19
19
  branch: 1 # main branch
20
- project: abc123 # Run project ID
21
- run_base_url: https://app.dev.xano.com/
22
20
  staging:
23
21
  instance_origin: https://staging-instance.xano.io
24
22
  access_token: <token>
@@ -33,71 +31,71 @@ default: production
33
31
 
34
32
  **Token security:**
35
33
  - Tokens are stored in plaintext - ensure proper file permissions
36
- - Use \`profile:token\` to pipe token to clipboard without exposing in terminal history
34
+ - Use \`profile token\` to pipe token to clipboard without exposing in terminal history
37
35
 
38
36
  **Switching contexts:**
39
37
  - Use \`-p <profile>\` flag on any command
40
38
  - Or set \`XANO_PROFILE\` environment variable
41
- - Or use \`profile:set\` to change default
39
+ - Or use \`profile set\` to change default
42
40
 
43
41
  **Alternative auth methods:**
44
42
  - \`xano auth\` - Browser-based OAuth login (no token needed)
45
- - \`xano profile:wizard\` - Interactive token-based setup
46
- - \`xano profile:create\` - Non-interactive (for CI/CD)`,
43
+ - \`xano profile wizard\` - Interactive token-based setup
44
+ - \`xano profile create\` - Non-interactive (for CI/CD)`,
47
45
  related_topics: ["auth", "start", "integration"],
48
46
  commands: [
49
47
  {
50
- name: "profile:wizard",
48
+ name: "profile wizard",
51
49
  description: "Interactive setup wizard for creating a profile. Prompts for token, instance, workspace, and branch.",
52
- usage: "xano profile:wizard [options]",
50
+ usage: "xano profile wizard [options]",
53
51
  flags: [
54
52
  { name: "name", short: "n", type: "string", required: false, description: "Profile name (prompted if not provided)" },
55
- { name: "origin", short: "o", type: "string", required: false, description: "Xano account origin URL" },
53
+ { name: "origin", short: "o", type: "string", required: false, description: "Xano account origin URL (default https://app.xano.com)" },
56
54
  { name: "insecure", short: "k", type: "boolean", required: false, description: "Skip TLS certificate verification" }
57
55
  ],
58
- examples: ["xano profile:wizard", "xano profile:wizard -n myprofile"]
56
+ examples: ["xano profile wizard", "xano profile wizard -n myprofile"]
59
57
  },
60
58
  {
61
- name: "profile:create",
59
+ name: "profile create",
62
60
  description: "Create a new profile with explicit flags (non-interactive)",
63
- usage: "xano profile:create <name> -i <instance_origin> -t <token> [options]",
61
+ usage: "xano profile create <name> -i <instance_origin> -t <access_token> [options]",
64
62
  args: [
65
63
  { name: "name", required: true, description: "Profile name" }
66
64
  ],
67
65
  flags: [
68
66
  { name: "instance_origin", short: "i", type: "string", required: true, description: "Xano instance URL" },
69
67
  { name: "access_token", short: "t", type: "string", required: true, description: "Access token" },
70
- { name: "account_origin", short: "a", type: "string", required: false, description: "Xano account origin URL" },
68
+ { name: "account_origin", short: "a", type: "string", required: false, description: "Xano account origin URL (optional for self-hosted)" },
71
69
  { name: "workspace", short: "w", type: "string", required: false, description: "Default workspace ID" },
72
70
  { name: "branch", short: "b", type: "string", required: false, description: "Default branch label" },
73
71
  { name: "default", type: "boolean", required: false, description: "Set as the default profile" },
74
72
  { name: "insecure", short: "k", type: "boolean", required: false, description: "Skip TLS certificate verification" }
75
73
  ],
76
74
  examples: [
77
- "xano profile:create production -i https://x8ki.xano.io -t mytoken123",
78
- "xano profile:create staging -i https://x8ki.xano.io -t mytoken -w 1 -b dev --default"
75
+ "xano profile create production -i https://x8ki.xano.io -t mytoken123",
76
+ "xano profile create staging -i https://x8ki.xano.io -t mytoken -w 1 -b dev --default"
79
77
  ]
80
78
  },
81
79
  {
82
- name: "profile:list",
80
+ name: "profile list",
83
81
  description: "List all configured profiles",
84
- usage: "xano profile:list [--details]",
82
+ usage: "xano profile list [--details]",
85
83
  flags: [
86
84
  { name: "details", short: "d", type: "boolean", required: false, description: "Show masked tokens, origins, workspace, branch, and insecure status" }
87
85
  ],
88
- examples: ["xano profile:list", "xano profile:list --details"]
86
+ examples: ["xano profile list", "xano profile list --details"]
89
87
  },
90
88
  {
91
- name: "profile:edit",
92
- description: "Edit an existing profile",
93
- usage: "xano profile:edit [name] [options]",
89
+ name: "profile edit",
90
+ description: "Edit an existing profile. Updates only the fields specified via flags; omitted fields are left unchanged.",
91
+ usage: "xano profile edit [name] [options]",
94
92
  args: [
95
93
  { name: "name", required: false, description: "Profile name to edit (uses default if not provided)" }
96
94
  ],
97
95
  flags: [
98
- { name: "access_token", short: "t", type: "string", required: false, description: "Update access token" },
99
- { name: "instance_origin", short: "i", type: "string", required: false, description: "Update instance URL" },
100
- { name: "account_origin", short: "a", type: "string", required: false, description: "Update account origin URL" },
96
+ { name: "access_token", short: "t", type: "string", required: false, description: "Update the access token" },
97
+ { name: "instance_origin", short: "i", type: "string", required: false, description: "Update the Xano instance origin URL" },
98
+ { name: "account_origin", short: "a", type: "string", required: false, description: "Update the Xano account origin URL" },
101
99
  { name: "workspace", short: "w", type: "string", required: false, description: "Set workspace ID" },
102
100
  { name: "branch", short: "b", type: "string", required: false, description: "Set branch label" },
103
101
  { name: "insecure", type: "boolean", required: false, description: "Enable insecure mode for self-signed certs" },
@@ -106,70 +104,75 @@ default: production
106
104
  { name: "remove-insecure", type: "boolean", required: false, description: "Remove insecure setting" }
107
105
  ],
108
106
  examples: [
109
- "xano profile:edit production -w 2",
110
- "xano profile:edit staging --remove-branch",
111
- "xano profile:edit production -t new-token-here"
107
+ "xano profile edit production -w 2",
108
+ "xano profile edit staging --remove-branch",
109
+ "xano profile edit production --insecure",
110
+ "xano profile edit production -t new_token_abc",
111
+ "xano profile edit staging -i https://new-instance.xano.io"
112
112
  ]
113
113
  },
114
114
  {
115
- name: "profile:delete",
115
+ name: "profile delete",
116
116
  description: "Delete a profile. Auto-updates default if deleting the current default.",
117
- usage: "xano profile:delete <name> [--force]",
117
+ usage: "xano profile delete <name> [--force]",
118
118
  args: [
119
119
  { name: "name", required: true, description: "Profile name to delete" }
120
120
  ],
121
121
  flags: [
122
122
  { name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" }
123
123
  ],
124
- examples: ["xano profile:delete old-profile", "xano profile:delete test --force"]
124
+ examples: ["xano profile delete old-profile", "xano profile delete test --force"]
125
125
  },
126
126
  {
127
- name: "profile:set",
127
+ name: "profile set",
128
128
  description: "Set the default profile",
129
- usage: "xano profile:set <name>",
129
+ usage: "xano profile set <name>",
130
130
  args: [
131
131
  { name: "name", required: true, description: "Profile to set as default" }
132
132
  ],
133
- examples: ["xano profile:set production"]
133
+ examples: ["xano profile set production"]
134
134
  },
135
135
  {
136
- name: "profile:get",
136
+ name: "profile get",
137
137
  description: "Print the current default profile name",
138
- usage: "xano profile:get",
139
- examples: ["xano profile:get"]
138
+ usage: "xano profile get",
139
+ examples: ["xano profile get"]
140
140
  },
141
141
  {
142
- name: "profile:me",
142
+ name: "profile me",
143
143
  description: "Display current authenticated user info (ID, name, email, instance)",
144
- usage: "xano profile:me [options]",
144
+ usage: "xano profile me [options]",
145
145
  flags: [
146
146
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
147
147
  ],
148
- examples: ["xano profile:me", "xano profile:me -p staging", "xano profile:me -o json"]
148
+ examples: ["xano profile me", "xano profile me -p staging", "xano profile me -o json"]
149
149
  },
150
150
  {
151
- name: "profile:token",
151
+ name: "profile token",
152
152
  description: "Print the access token for the default profile (useful for piping)",
153
- usage: "xano profile:token",
153
+ usage: "xano profile token",
154
154
  examples: [
155
- "xano profile:token",
156
- "xano profile:token | pbcopy # macOS",
157
- "xano profile:token | xclip # Linux"
155
+ "xano profile token",
156
+ "xano profile token | pbcopy # macOS",
157
+ "xano profile token | xclip # Linux"
158
158
  ]
159
159
  },
160
160
  {
161
- name: "profile:workspace",
161
+ name: "profile workspace",
162
162
  description: "Print the workspace ID for the default profile",
163
- usage: "xano profile:workspace",
164
- examples: ["xano profile:workspace"]
163
+ usage: "xano profile workspace",
164
+ examples: ["xano profile workspace"]
165
165
  },
166
166
  {
167
- name: "profile:workspace:set",
167
+ name: "profile workspace set",
168
168
  description: "Interactively select and set the workspace for a profile",
169
- usage: "xano profile:workspace:set [-p <profile>]",
169
+ usage: "xano profile workspace set [-p <profile>]",
170
+ flags: [
171
+ { name: "profile", short: "p", type: "string", required: false, description: "Profile to update (defaults to current default)" }
172
+ ],
170
173
  examples: [
171
- "xano profile:workspace:set",
172
- "xano profile:workspace:set -p staging"
174
+ "xano profile workspace set",
175
+ "xano profile workspace set -p staging"
173
176
  ]
174
177
  }
175
178
  ],
@@ -178,10 +181,10 @@ default: production
178
181
  name: "Multi-environment Setup",
179
182
  description: "Configure profiles for production and staging",
180
183
  steps: [
181
- "Create production profile: `xano profile:create prod -i <url> -t <token> -b 1`",
182
- "Create staging profile: `xano profile:create staging -i <url> -t <token> -b 2`",
183
- "Set default: `xano profile:set prod`",
184
- "Use staging when needed: `xano workspace:pull ./code -p staging`"
184
+ "Create production profile: `xano profile create prod -i <url> -t <token> -b 1`",
185
+ "Create staging profile: `xano profile create staging -i <url> -t <token> -b 2`",
186
+ "Set default: `xano profile set prod`",
187
+ "Use staging when needed: `xano workspace pull ./code -p staging`"
185
188
  ]
186
189
  }
187
190
  ]