@smartbear/mcp 0.13.5 → 0.14.1

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 (27) hide show
  1. package/dist/bugsnag/client.js +169 -10
  2. package/dist/package.json.js +1 -1
  3. package/dist/pactflow/client/utils.js +10 -4
  4. package/dist/swagger/client/portal-types.js +7 -1
  5. package/dist/swagger/client/tools.js +1 -1
  6. package/dist/zephyr/client.js +13 -1
  7. package/dist/zephyr/common/api-client.js +35 -1
  8. package/dist/zephyr/common/rest-api-schemas.js +1913 -1755
  9. package/dist/zephyr/common/utils.js +20 -0
  10. package/dist/zephyr/tool/environment/get-environments.js +4 -4
  11. package/dist/zephyr/tool/priority/get-priorities.js +4 -4
  12. package/dist/zephyr/tool/project/get-project.js +4 -4
  13. package/dist/zephyr/tool/project/get-projects.js +4 -4
  14. package/dist/zephyr/tool/status/get-statuses.js +4 -4
  15. package/dist/zephyr/tool/test-case/create-test-case.js +69 -0
  16. package/dist/zephyr/tool/test-case/create-web-link.js +46 -0
  17. package/dist/zephyr/tool/test-case/get-test-case.js +4 -4
  18. package/dist/zephyr/tool/test-case/get-test-cases.js +4 -4
  19. package/dist/zephyr/tool/test-case/update-test-case.js +79 -0
  20. package/dist/zephyr/tool/test-cycle/create-test-cycle.js +70 -0
  21. package/dist/zephyr/tool/test-cycle/get-test-cycle.js +4 -4
  22. package/dist/zephyr/tool/test-cycle/get-test-cycles.js +4 -4
  23. package/dist/zephyr/tool/test-cycle/update-test-cycle.js +90 -0
  24. package/dist/zephyr/tool/test-execution/create-test-execution.js +66 -0
  25. package/dist/zephyr/tool/test-execution/get-test-execution.js +4 -4
  26. package/dist/zephyr/tool/test-execution/get-test-executions.js +4 -4
  27. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ import { Tool } from "../../../common/tools.js";
2
+ import { CreateTestExecution201Response, CreateTestExecutionBody } from "../../common/rest-api-schemas.js";
3
+ class CreateTestExecution extends Tool {
4
+ specification = {
5
+ title: "Create Test Execution",
6
+ summary: "Create a new Test Execution for a Test Case within a specific Test Cycle",
7
+ readOnly: false,
8
+ idempotent: false,
9
+ inputSchema: CreateTestExecutionBody,
10
+ outputSchema: CreateTestExecution201Response,
11
+ examples: [
12
+ {
13
+ description: "Create a Passed execution for test case SA-T1 in cycle SA-R1",
14
+ parameters: {
15
+ projectKey: "SA",
16
+ testCaseKey: "SA-T1",
17
+ testCycleKey: "SA-R1",
18
+ statusName: "Pass"
19
+ },
20
+ expectedOutput: "The newly created Test Execution with execution details"
21
+ },
22
+ {
23
+ description: "Create a Failed execution with execution time, environment and comment",
24
+ parameters: {
25
+ projectKey: "MM2",
26
+ testCaseKey: "MM2-T15",
27
+ testCycleKey: "MM2-R3",
28
+ statusName: "Fail",
29
+ environmentName: "Staging",
30
+ executionTime: 125e3,
31
+ comment: "Step 3 failed due to timeout<br>Logs attached."
32
+ },
33
+ expectedOutput: "The newly created Test Execution including environment and timing information"
34
+ },
35
+ {
36
+ description: "Create execution with custom fields and assignment",
37
+ parameters: {
38
+ projectKey: "SA",
39
+ testCaseKey: "SA-T5",
40
+ testCycleKey: "SA-R2",
41
+ statusName: "Pass",
42
+ executedById: "5b10ac8d82e05b22cc7d4ef5",
43
+ assignedToId: "5b10ac8d82e05b22cc7d4ef6",
44
+ actualEndDate: "2026-02-17T10:15:30Z",
45
+ customFields: {
46
+ "Execution Build": "1.0.3",
47
+ "Tested Browser": "Chrome",
48
+ "Execution Date": "2026-02-17"
49
+ }
50
+ },
51
+ expectedOutput: "The newly created Test Execution including custom field values"
52
+ }
53
+ ]
54
+ };
55
+ handle = async (args) => {
56
+ const body = CreateTestExecutionBody.parse(args);
57
+ const response = await this.client.getApiClient().post(`/testexecutions/`, body);
58
+ return {
59
+ structuredContent: response,
60
+ content: []
61
+ };
62
+ };
63
+ }
64
+ export {
65
+ CreateTestExecution
66
+ };
@@ -1,13 +1,13 @@
1
1
  import { Tool } from "../../../common/tools.js";
2
- import { getTestExecutionResponse, getTestExecutionParams } from "../../common/rest-api-schemas.js";
2
+ import { GetTestExecution200Response, GetTestExecutionParams } from "../../common/rest-api-schemas.js";
3
3
  class GetTestExecution extends Tool {
4
4
  specification = {
5
5
  title: "Get Test Execution",
6
6
  summary: "Get details of test execution specified by id or key in Zephyr",
7
7
  readOnly: true,
8
8
  idempotent: true,
9
- inputSchema: getTestExecutionParams,
10
- outputSchema: getTestExecutionResponse,
9
+ inputSchema: GetTestExecutionParams,
10
+ outputSchema: GetTestExecution200Response,
11
11
  examples: [
12
12
  {
13
13
  description: "Get the test execution with id 1",
@@ -26,7 +26,7 @@ class GetTestExecution extends Tool {
26
26
  ]
27
27
  };
28
28
  handle = async (args) => {
29
- const { testExecutionIdOrKey } = getTestExecutionParams.parse(args);
29
+ const { testExecutionIdOrKey } = GetTestExecutionParams.parse(args);
30
30
  const response = await this.client.getApiClient().get(`/testexecutions/${testExecutionIdOrKey}`);
31
31
  return {
32
32
  structuredContent: response,
@@ -1,13 +1,13 @@
1
1
  import { Tool } from "../../../common/tools.js";
2
- import { listTestExecutionsNextgenResponse, listTestExecutionsNextgenQueryParams } from "../../common/rest-api-schemas.js";
2
+ import { ListTestExecutionsNextgen200Response, ListTestExecutionsNextgenQueryParams } from "../../common/rest-api-schemas.js";
3
3
  class GetTestExecutions extends Tool {
4
4
  specification = {
5
5
  title: "Get Test Executions",
6
6
  summary: "Get test executions with optional filters",
7
7
  readOnly: true,
8
8
  idempotent: true,
9
- inputSchema: listTestExecutionsNextgenQueryParams,
10
- outputSchema: listTestExecutionsNextgenResponse,
9
+ inputSchema: ListTestExecutionsNextgenQueryParams,
10
+ outputSchema: ListTestExecutionsNextgen200Response,
11
11
  examples: [
12
12
  {
13
13
  description: "Get the first 10 test executions",
@@ -32,7 +32,7 @@ class GetTestExecutions extends Tool {
32
32
  ]
33
33
  };
34
34
  handle = async (args) => {
35
- const parsedArgs = listTestExecutionsNextgenQueryParams.parse(args);
35
+ const parsedArgs = ListTestExecutionsNextgenQueryParams.parse(args);
36
36
  const response = await this.client.getApiClient().get("/testexecutions/nextgen", parsedArgs);
37
37
  return {
38
38
  structuredContent: response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbear/mcp",
3
- "version": "0.13.5",
3
+ "version": "0.14.1",
4
4
  "description": "MCP server for interacting SmartBear Products",
5
5
  "keywords": [
6
6
  "smartbear",