@smartbear/mcp 0.39.0 → 0.40.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.
Files changed (34) hide show
  1. package/dist/package.json.js +1 -1
  2. package/dist/qmetry/client/auto-resolve.js +7 -0
  3. package/dist/qmetry/client/handlers.js +5 -2
  4. package/dist/qmetry/client/issues.js +8 -1
  5. package/dist/qmetry/client/project.js +103 -2
  6. package/dist/qmetry/client/requirement.js +99 -3
  7. package/dist/qmetry/client/testcase.js +51 -2
  8. package/dist/qmetry/client/testsuite.js +7 -1
  9. package/dist/qmetry/client/tools/issue-tools.js +1 -15
  10. package/dist/qmetry/client/tools/project-tools.js +2 -2
  11. package/dist/qmetry/client/tools/requirement-tools.js +124 -11
  12. package/dist/qmetry/client/tools/testcase-tools.js +116 -56
  13. package/dist/qmetry/client/tools/testsuite-tools.js +1 -19
  14. package/dist/qmetry/client/tools/udf-tools.js +15 -4
  15. package/dist/qmetry/client/udf.js +2 -2
  16. package/dist/qmetry/client.js +19 -11
  17. package/dist/qmetry/config/constants.js +3 -0
  18. package/dist/qmetry/config/rest-endpoints.js +4 -2
  19. package/dist/qmetry/types/ai-agent.js +8 -4
  20. package/dist/qmetry/types/common.js +69 -43
  21. package/dist/qmetry/types/requirements.js +7 -1
  22. package/dist/qmetry/types/testcase.js +2 -1
  23. package/dist/qmetry/types/udf.js +5 -12
  24. package/dist/swagger/client/api.js +29 -4
  25. package/dist/swagger/client/functional-testing-api.js +17 -10
  26. package/dist/swagger/client/functional-testing-tools.js +1 -1
  27. package/dist/swagger/client/functional-testing-types.js +65 -2
  28. package/dist/swagger/client/functional-testing-url-utils.js +110 -0
  29. package/dist/swagger/client/registry-types.js +2 -2
  30. package/dist/swagger/client/tools.js +2 -2
  31. package/dist/zephyr/client.js +2 -0
  32. package/dist/zephyr/common/rest-api-schemas.js +345 -4
  33. package/dist/zephyr/tool/folder/get-folders.js +69 -0
  34. package/package.json +1 -1
@@ -0,0 +1,69 @@
1
+ import { Tool } from "../../../common/tools.js";
2
+ import { ListFolders200Response, ListFoldersQueryParams } from "../../common/rest-api-schemas.js";
3
+ class GetFolders extends Tool {
4
+ specification = {
5
+ title: "Get Folders",
6
+ toolset: "Folders",
7
+ summary: "Get folders, optionally filtered by project and folder type",
8
+ readOnly: true,
9
+ idempotent: true,
10
+ useCases: [
11
+ "List folders in a Zephyr project",
12
+ "Get Test Case folders for a project",
13
+ "Get Test Plan folders for a project",
14
+ "Get Test Cycle folders for a project",
15
+ "Browse the folder structure in Zephyr"
16
+ ],
17
+ inputSchema: ListFoldersQueryParams,
18
+ outputSchema: ListFolders200Response,
19
+ examples: [
20
+ {
21
+ description: "Get the first 10 Folders",
22
+ parameters: {
23
+ maxResults: 10,
24
+ startAt: 0
25
+ },
26
+ expectedOutput: "The first 10 Folders with their details"
27
+ },
28
+ {
29
+ description: "Get Folders from the project SA",
30
+ parameters: {
31
+ projectKey: "SA",
32
+ maxResults: 10,
33
+ startAt: 0
34
+ },
35
+ expectedOutput: "Folders belonging to project SA with their details"
36
+ },
37
+ {
38
+ description: "Get Test Case Folders from the project MM2",
39
+ parameters: {
40
+ projectKey: "MM2",
41
+ folderType: "TEST_CASE",
42
+ maxResults: 10,
43
+ startAt: 0
44
+ },
45
+ expectedOutput: "Test Case Folders belonging to project MM2 with their details"
46
+ },
47
+ {
48
+ description: "Get Test Cycle Folders across all projects",
49
+ parameters: {
50
+ folderType: "TEST_CYCLE",
51
+ maxResults: 10,
52
+ startAt: 0
53
+ },
54
+ expectedOutput: "Test Cycle Folders from all projects with their details"
55
+ }
56
+ ]
57
+ };
58
+ handle = async (args) => {
59
+ const parsedArgs = ListFoldersQueryParams.parse(args);
60
+ const response = await this.client.getApiClient().get("/folders", parsedArgs);
61
+ return {
62
+ structuredContent: response,
63
+ content: []
64
+ };
65
+ };
66
+ }
67
+ export {
68
+ GetFolders
69
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbear/mcp",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },