@xano/developer-mcp 1.0.73 → 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.
@@ -8,67 +8,67 @@ export const unitTestDoc = {
8
8
  - **Unit tests** are created and configured in the Xano dashboard, not via the CLI.
9
9
  - The CLI is used to **list and run** tests, making it ideal for CI/CD pipelines.
10
10
  - Test output shows PASS/FAIL status with error details for failed tests.
11
- - Use \`--obj-type\` to filter tests by object type (e.g., function, API endpoint).
11
+ - Use \`--obj-type\` to filter tests by object type (function, query, middleware).
12
12
  - Use \`--branch\` to run tests against a specific branch.`,
13
13
  ai_hints: `**Key concepts:**
14
14
  - Unit tests are created in the Xano dashboard; the CLI is for running them
15
- - Use \`unit_test:run_all\` in CI/CD pipelines for automated testing
15
+ - Use \`unit_test run_all\` in CI/CD pipelines for automated testing
16
16
  - Output shows PASS/FAIL with error details for each test
17
- - \`--obj-type\` filters tests by object type (e.g., function, API endpoint)
17
+ - \`--obj-type\` filters tests by object type (function, query, middleware)
18
18
  - \`--branch\` specifies which branch to test against
19
19
 
20
20
  **CI/CD integration:**
21
- - Use \`unit_test:run_all -o json\` for machine-readable output
22
- - Combine with \`workflow_test:run_all\` for full test coverage
21
+ - Use \`unit_test run_all -o json\` for machine-readable output
22
+ - Combine with \`workflow_test run_all\` for full test coverage
23
23
  - Filter by branch with \`--branch\` to test specific branches`,
24
24
  related_topics: ["workflow_test", "workspace", "function"],
25
25
  commands: [
26
26
  {
27
- name: "unit_test:list",
27
+ name: "unit_test list",
28
28
  description: "List unit tests in the workspace",
29
- usage: "xano unit_test:list [options]",
29
+ usage: "xano unit_test list [options]",
30
30
  flags: [
31
- { name: "branch", short: "b", type: "string", required: false, description: "Branch to list tests from" },
32
- { name: "obj-type", type: "string", required: false, description: "Filter by object type" },
33
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
31
+ { name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
32
+ { name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
33
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
34
34
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
35
35
  ],
36
36
  examples: [
37
- "xano unit_test:list",
38
- "xano unit_test:list --branch dev",
39
- "xano unit_test:list --obj-type function -o json"
37
+ "xano unit_test list",
38
+ "xano unit_test list --branch dev",
39
+ "xano unit_test list --obj-type function -o json"
40
40
  ]
41
41
  },
42
42
  {
43
- name: "unit_test:run",
43
+ name: "unit_test run",
44
44
  description: "Run a single unit test by ID",
45
- usage: "xano unit_test:run <unit_test_id> [options]",
45
+ usage: "xano unit_test run <unit_test_id> [options]",
46
46
  args: [
47
47
  { name: "unit_test_id", required: true, description: "ID of the unit test to run" }
48
48
  ],
49
49
  flags: [
50
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
50
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
51
51
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
52
52
  ],
53
53
  examples: [
54
- "xano unit_test:run 123",
55
- "xano unit_test:run 123 -o json"
54
+ "xano unit_test run 123",
55
+ "xano unit_test run 123 -o json"
56
56
  ]
57
57
  },
58
58
  {
59
- name: "unit_test:run_all",
59
+ name: "unit_test run_all",
60
60
  description: "Run all unit tests in the workspace",
61
- usage: "xano unit_test:run_all [options]",
61
+ usage: "xano unit_test run_all [options]",
62
62
  flags: [
63
- { name: "branch", short: "b", type: "string", required: false, description: "Branch to run tests against" },
64
- { name: "obj-type", type: "string", required: false, description: "Filter by object type" },
65
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
63
+ { name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
64
+ { name: "obj-type", type: "string", required: false, description: "Filter by object type: function, query, middleware" },
65
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
66
66
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
67
67
  ],
68
68
  examples: [
69
- "xano unit_test:run_all",
70
- "xano unit_test:run_all --branch dev -o json",
71
- "xano unit_test:run_all --obj-type function"
69
+ "xano unit_test run_all",
70
+ "xano unit_test run_all --branch dev -o json",
71
+ "xano unit_test run_all --obj-type function"
72
72
  ]
73
73
  }
74
74
  ],
@@ -77,12 +77,12 @@ export const unitTestDoc = {
77
77
  name: "Run Tests in CI/CD",
78
78
  description: "Run all unit tests as part of a CI/CD pipeline",
79
79
  steps: [
80
- "List available tests: `xano unit_test:list`",
81
- "Run all tests: `xano unit_test:run_all`",
80
+ "List available tests: `xano unit_test list`",
81
+ "Run all tests: `xano unit_test run_all`",
82
82
  "Check output for PASS/FAIL results"
83
83
  ],
84
- example: `xano unit_test:list
85
- xano unit_test:run_all -o json`
84
+ example: `xano unit_test list
85
+ xano unit_test run_all -o json`
86
86
  }
87
87
  ]
88
88
  };
@@ -8,6 +8,7 @@ export const updateDoc = {
8
8
  - Before troubleshooting CLI issues
9
9
 
10
10
  **Update uses npm** - runs \`npm install -g @xano/cli\` under the hood.
11
+ **Check only** - use \`--check\` to see whether an update is available without installing.
11
12
  **Beta channel** - use \`--beta\` to get pre-release versions for testing new features.`,
12
13
  related_topics: ["start"],
13
14
  commands: [
@@ -6,100 +6,103 @@ export const workflowTestDoc = {
6
6
  ## Key Concepts
7
7
 
8
8
  - **Workflow tests** are more comprehensive than unit tests, testing full request flows.
9
- - Tests are created and configured in the Xano dashboard; the CLI is for listing, viewing, and running them.
9
+ - Tests are created and configured in the Xano dashboard; the CLI is for listing, viewing, running, and deleting them.
10
10
  - The \`get\` command supports \`xs\` output format for viewing test XanoScript.
11
11
  - Use \`run_all\` in CI/CD pipelines for automated end-to-end validation.`,
12
12
  ai_hints: `**Key concepts:**
13
13
  - Workflow tests are more comprehensive than unit tests, testing full request flows
14
14
  - Tests are created in the Xano dashboard; the CLI is for running them
15
- - \`workflow_test:get\` supports \`xs\` output format for viewing test XanoScript
16
- - Use \`workflow_test:run_all\` in CI/CD pipelines for automated testing
15
+ - \`workflow_test get\` supports \`xs\` output format for viewing test XanoScript
16
+ - Use \`workflow_test run_all\` in CI/CD pipelines for automated testing
17
17
 
18
18
  **CI/CD integration:**
19
- - Use \`workflow_test:run_all -o json\` for machine-readable output
20
- - Combine with \`unit_test:run_all\` for full test coverage
19
+ - Use \`workflow_test run_all -o json\` for machine-readable output
20
+ - Combine with \`unit_test run_all\` for full test coverage
21
21
  - Filter by branch with \`--branch\` to test specific branches
22
22
 
23
23
  **Viewing test details:**
24
- - Use \`workflow_test:get <id> -o xs\` to view the test XanoScript
24
+ - Use \`workflow_test get <id> -o xs\` to view the test XanoScript
25
25
  - Use \`--include-draft\` to view draft versions of tests`,
26
26
  related_topics: ["unit_test", "workspace", "branch"],
27
27
  commands: [
28
28
  {
29
- name: "workflow_test:list",
29
+ name: "workflow_test list",
30
30
  description: "List workflow tests in the workspace",
31
- usage: "xano workflow_test:list [options]",
31
+ usage: "xano workflow_test list [options]",
32
32
  flags: [
33
- { name: "branch", short: "b", type: "string", required: false, description: "Branch to list tests from" },
34
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
33
+ { name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
34
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
35
35
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
36
36
  ],
37
37
  examples: [
38
- "xano workflow_test:list",
39
- "xano workflow_test:list --branch dev",
40
- "xano workflow_test:list -o json"
38
+ "xano workflow_test list",
39
+ "xano workflow_test list --branch dev",
40
+ "xano workflow_test list -o json"
41
41
  ]
42
42
  },
43
43
  {
44
- name: "workflow_test:get",
44
+ name: "workflow_test get",
45
45
  description: "Get details for a specific workflow test",
46
- usage: "xano workflow_test:get <workflow_test_id> [options]",
46
+ usage: "xano workflow_test get <workflow_test_id> [options]",
47
47
  args: [
48
48
  { name: "workflow_test_id", required: true, description: "ID of the workflow test to retrieve" }
49
49
  ],
50
50
  flags: [
51
51
  { name: "include-draft", type: "boolean", required: false, description: "Include draft version if available" },
52
- { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: xs or json" },
53
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
52
+ { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary, json, or xs" },
53
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" }
54
54
  ],
55
55
  examples: [
56
- "xano workflow_test:get 456",
57
- "xano workflow_test:get 456 -o xs",
58
- "xano workflow_test:get 456 --include-draft -o json"
56
+ "xano workflow_test get 456",
57
+ "xano workflow_test get 456 -o xs",
58
+ "xano workflow_test get 456 --include-draft -o json"
59
59
  ]
60
60
  },
61
61
  {
62
- name: "workflow_test:run",
62
+ name: "workflow_test run",
63
63
  description: "Run a single workflow test by ID",
64
- usage: "xano workflow_test:run <workflow_test_id> [options]",
64
+ usage: "xano workflow_test run <workflow_test_id> [options]",
65
65
  args: [
66
66
  { name: "workflow_test_id", required: true, description: "ID of the workflow test to run" }
67
67
  ],
68
68
  flags: [
69
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
69
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
70
70
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
71
71
  ],
72
72
  examples: [
73
- "xano workflow_test:run 456",
74
- "xano workflow_test:run 456 -o json"
73
+ "xano workflow_test run 456",
74
+ "xano workflow_test run 456 -o json"
75
75
  ]
76
76
  },
77
77
  {
78
- name: "workflow_test:run_all",
78
+ name: "workflow_test run_all",
79
79
  description: "Run all workflow tests in the workspace",
80
- usage: "xano workflow_test:run_all [options]",
80
+ usage: "xano workflow_test run_all [options]",
81
81
  flags: [
82
- { name: "branch", short: "b", type: "string", required: false, description: "Branch to run tests against" },
83
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" },
82
+ { name: "branch", short: "b", type: "string", required: false, description: "Filter by branch name" },
83
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
84
84
  { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
85
85
  ],
86
86
  examples: [
87
- "xano workflow_test:run_all",
88
- "xano workflow_test:run_all --branch dev -o json"
87
+ "xano workflow_test run_all",
88
+ "xano workflow_test run_all --branch dev -o json"
89
89
  ]
90
90
  },
91
91
  {
92
- name: "workflow_test:delete",
92
+ name: "workflow_test delete",
93
93
  description: "Delete a workflow test by ID",
94
- usage: "xano workflow_test:delete <workflow_test_id> [options]",
94
+ usage: "xano workflow_test delete <workflow_test_id> [options]",
95
95
  args: [
96
96
  { name: "workflow_test_id", required: true, description: "ID of the workflow test to delete" }
97
97
  ],
98
98
  flags: [
99
- { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID" }
99
+ { name: "force", short: "f", type: "boolean", required: false, description: "Skip confirmation prompt" },
100
+ { name: "workspace", short: "w", type: "string", required: false, description: "Workspace ID (uses profile workspace if not provided)" },
101
+ { name: "output", short: "o", type: "string", required: false, default: "summary", description: "Output format: summary or json" }
100
102
  ],
101
103
  examples: [
102
- "xano workflow_test:delete 456"
104
+ "xano workflow_test delete 456",
105
+ "xano workflow_test delete 456 --force"
103
106
  ]
104
107
  }
105
108
  ],
@@ -108,12 +111,12 @@ export const workflowTestDoc = {
108
111
  name: "Validate Workflows Before Deploy",
109
112
  description: "Run all workflow tests to validate before deployment",
110
113
  steps: [
111
- "List available tests: `xano workflow_test:list`",
112
- "Run all tests: `xano workflow_test:run_all`",
114
+ "List available tests: `xano workflow_test list`",
115
+ "Run all tests: `xano workflow_test run_all`",
113
116
  "Check results for PASS/FAIL status"
114
117
  ],
115
- example: `xano workflow_test:list
116
- xano workflow_test:run_all -o json`
118
+ example: `xano workflow_test list
119
+ xano workflow_test run_all -o json`
117
120
  }
118
121
  ]
119
122
  };