@smartbear/mcp 0.10.0 → 0.11.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.
- package/README.md +10 -8
- package/dist/bugsnag/client/api/index.js +2 -0
- package/dist/bugsnag/client/filters.js +0 -6
- package/dist/bugsnag/client.js +234 -376
- package/dist/bugsnag/input-schemas.js +51 -0
- package/dist/collaborator/client.js +18 -5
- package/dist/common/cache.js +63 -0
- package/dist/common/client-registry.js +128 -0
- package/dist/common/register-clients.js +31 -0
- package/dist/common/server.js +30 -9
- package/dist/common/transport-http.js +377 -0
- package/dist/common/transport-stdio.js +43 -0
- package/dist/index.js +20 -70
- package/dist/pactflow/client.js +39 -19
- package/dist/qmetry/client.js +24 -9
- package/dist/reflect/client.js +10 -4
- package/dist/{api-hub → swagger}/client/api.js +2 -2
- package/dist/{api-hub → swagger}/client/configuration.js +1 -1
- package/dist/{api-hub → swagger}/client/index.js +2 -2
- package/dist/{api-hub → swagger}/client/tools.js +4 -4
- package/dist/{api-hub → swagger}/client.js +47 -35
- package/dist/swagger/config-utils.js +18 -0
- package/dist/zephyr/client.js +40 -8
- package/dist/zephyr/common/rest-api-schemas.js +79 -78
- package/dist/zephyr/tool/priority/get-priorities.js +43 -0
- package/dist/zephyr/tool/status/get-statuses.js +49 -0
- package/dist/zephyr/tool/test-case/get-test-case.js +39 -0
- package/dist/zephyr/tool/test-case/get-test-cases.js +64 -0
- package/dist/zephyr/tool/test-cycle/get-test-cycle.js +39 -0
- package/dist/zephyr/tool/test-cycle/get-test-cycles.js +2 -2
- package/dist/zephyr/tool/test-execution/get-test-execution.js +39 -0
- package/package.json +2 -2
- /package/dist/{api-hub → swagger}/client/portal-types.js +0 -0
- /package/dist/{api-hub → swagger}/client/registry-types.js +0 -0
- /package/dist/{api-hub → swagger}/client/user-management-types.js +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { listTestCasesCursorPaginatedQueryParams, listTestCasesCursorPaginatedResponse, } from "../../common/rest-api-schemas.js";
|
|
2
|
+
export class GetTestCases {
|
|
3
|
+
apiClient;
|
|
4
|
+
constructor(apiClient) {
|
|
5
|
+
this.apiClient = apiClient;
|
|
6
|
+
}
|
|
7
|
+
specification = {
|
|
8
|
+
title: "Get Test Cases",
|
|
9
|
+
summary: "Get details of test cases in Zephyr",
|
|
10
|
+
readOnly: true,
|
|
11
|
+
idempotent: true,
|
|
12
|
+
inputSchema: listTestCasesCursorPaginatedQueryParams,
|
|
13
|
+
outputSchema: listTestCasesCursorPaginatedResponse,
|
|
14
|
+
examples: [
|
|
15
|
+
{
|
|
16
|
+
description: "Get the first 10 Test Cases",
|
|
17
|
+
parameters: {
|
|
18
|
+
limit: 10,
|
|
19
|
+
startAtId: 1,
|
|
20
|
+
},
|
|
21
|
+
expectedOutput: "The first 10 Test Cases with their details",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
description: "Get any Test Case",
|
|
25
|
+
parameters: {
|
|
26
|
+
limit: 1,
|
|
27
|
+
},
|
|
28
|
+
expectedOutput: "One Test Case with its details",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
description: "Get five Test Cases starting from the ID 123",
|
|
32
|
+
parameters: {
|
|
33
|
+
limit: 5,
|
|
34
|
+
startAtId: 123,
|
|
35
|
+
},
|
|
36
|
+
expectedOutput: "Five Test Cases starting from the ID 123 with their details",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
description: "Get one Test Case from the project PROJ",
|
|
40
|
+
parameters: {
|
|
41
|
+
projectKey: "PROJ",
|
|
42
|
+
limit: 1,
|
|
43
|
+
},
|
|
44
|
+
expectedOutput: "One Test Case from project PROJ with its details",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
description: "Get one Test Case from the folder with ID 123",
|
|
48
|
+
parameters: {
|
|
49
|
+
folderId: 123,
|
|
50
|
+
limit: 1,
|
|
51
|
+
},
|
|
52
|
+
expectedOutput: "One Test Case from folder with ID 123 with its details",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
handle = async (args) => {
|
|
57
|
+
const parsedArgs = listTestCasesCursorPaginatedQueryParams.parse(args);
|
|
58
|
+
const response = await this.apiClient.get("/testcases/nextgen", parsedArgs);
|
|
59
|
+
return {
|
|
60
|
+
structuredContent: response,
|
|
61
|
+
content: [],
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getTestCycleParams, getTestCycleResponse, } from "../../common/rest-api-schemas.js";
|
|
2
|
+
export class GetTestCycle {
|
|
3
|
+
apiClient;
|
|
4
|
+
constructor(apiClient) {
|
|
5
|
+
this.apiClient = apiClient;
|
|
6
|
+
}
|
|
7
|
+
specification = {
|
|
8
|
+
title: "Get Test Cycle",
|
|
9
|
+
summary: "Get details of test cycle specified by id or key in Zephyr",
|
|
10
|
+
readOnly: true,
|
|
11
|
+
idempotent: true,
|
|
12
|
+
inputSchema: getTestCycleParams,
|
|
13
|
+
outputSchema: getTestCycleResponse,
|
|
14
|
+
examples: [
|
|
15
|
+
{
|
|
16
|
+
description: "Get the test cycle with id 1",
|
|
17
|
+
parameters: {
|
|
18
|
+
testCycleIdOrKey: "1",
|
|
19
|
+
},
|
|
20
|
+
expectedOutput: "The test cycle with its details",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
description: "Get the test cycle with key 'SA-R40'",
|
|
24
|
+
parameters: {
|
|
25
|
+
testCycleIdOrKey: "SA-R40",
|
|
26
|
+
},
|
|
27
|
+
expectedOutput: "The test cycle with its details",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
handle = async (args) => {
|
|
32
|
+
const { testCycleIdOrKey } = getTestCycleParams.parse(args);
|
|
33
|
+
const response = await this.apiClient.get(`/testcycles/${testCycleIdOrKey}`);
|
|
34
|
+
return {
|
|
35
|
+
structuredContent: response,
|
|
36
|
+
content: [],
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -44,12 +44,12 @@ export class GetTestCycles {
|
|
|
44
44
|
expectedOutput: "One Test Cycle from project PROJ with its details",
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
description: "Get one Test Cycle from the folder 123",
|
|
47
|
+
description: "Get one Test Cycle from the folder with ID 123",
|
|
48
48
|
parameters: {
|
|
49
49
|
folderId: 123,
|
|
50
50
|
maxResults: 1,
|
|
51
51
|
},
|
|
52
|
-
expectedOutput: "One Test Cycle from folder 123 with its details",
|
|
52
|
+
expectedOutput: "One Test Cycle from folder with ID 123 with its details",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
description: "Get one Test Cycle from the version 456",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getTestExecutionParams, getTestExecutionResponse, } from "../../common/rest-api-schemas.js";
|
|
2
|
+
export class GetTestExecution {
|
|
3
|
+
apiClient;
|
|
4
|
+
constructor(apiClient) {
|
|
5
|
+
this.apiClient = apiClient;
|
|
6
|
+
}
|
|
7
|
+
specification = {
|
|
8
|
+
title: "Get Test Execution",
|
|
9
|
+
summary: "Get details of test execution specified by id or key in Zephyr",
|
|
10
|
+
readOnly: true,
|
|
11
|
+
idempotent: true,
|
|
12
|
+
inputSchema: getTestExecutionParams,
|
|
13
|
+
outputSchema: getTestExecutionResponse,
|
|
14
|
+
examples: [
|
|
15
|
+
{
|
|
16
|
+
description: "Get the test execution with id 1",
|
|
17
|
+
parameters: {
|
|
18
|
+
testExecutionIdOrKey: "1",
|
|
19
|
+
},
|
|
20
|
+
expectedOutput: "The test execution with its details",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
description: "Get the test execution with key 'PROJ-E123'",
|
|
24
|
+
parameters: {
|
|
25
|
+
testExecutionIdOrKey: "PROJ-E123",
|
|
26
|
+
},
|
|
27
|
+
expectedOutput: "The test execution with its details",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
handle = async (args) => {
|
|
32
|
+
const { testExecutionIdOrKey } = getTestExecutionParams.parse(args);
|
|
33
|
+
const response = await this.apiClient.get(`/testexecutions/${testExecutionIdOrKey}`);
|
|
34
|
+
return {
|
|
35
|
+
structuredContent: response,
|
|
36
|
+
content: [],
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartbear/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "MCP server for interacting SmartBear Products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"smartbear",
|
|
7
7
|
"mcp",
|
|
8
8
|
"bugsnag",
|
|
9
9
|
"reflect",
|
|
10
|
-
"
|
|
10
|
+
"swagger",
|
|
11
11
|
"pactflow",
|
|
12
12
|
"zephyr"
|
|
13
13
|
],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|