zephyr-scale-mcp-server 0.1.0 → 0.1.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.
- package/build/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +6 -0
package/build/index.js
CHANGED
|
@@ -268,6 +268,10 @@ class ZephyrServer {
|
|
|
268
268
|
description: 'Array of test case keys to include in the test run',
|
|
269
269
|
items: { type: 'string' }
|
|
270
270
|
},
|
|
271
|
+
test_plan_key: {
|
|
272
|
+
type: 'string',
|
|
273
|
+
description: 'Test plan key to link this test run to (optional)',
|
|
274
|
+
},
|
|
271
275
|
folder: {
|
|
272
276
|
type: 'string',
|
|
273
277
|
description: 'Folder path (optional)',
|
|
@@ -675,7 +679,7 @@ class ZephyrServer {
|
|
|
675
679
|
}
|
|
676
680
|
}
|
|
677
681
|
async createTestRun(args) {
|
|
678
|
-
const { project_key, name, test_case_keys, folder, planned_start_date, planned_end_date, description, owner, environment, custom_fields } = args;
|
|
682
|
+
const { project_key, name, test_case_keys, test_plan_key, folder, planned_start_date, planned_end_date, description, owner, environment, custom_fields } = args;
|
|
679
683
|
// Build the basic payload
|
|
680
684
|
const payload = {
|
|
681
685
|
projectKey: project_key,
|
|
@@ -701,6 +705,8 @@ class ZephyrServer {
|
|
|
701
705
|
payload.environment = environment;
|
|
702
706
|
if (custom_fields)
|
|
703
707
|
payload.customFields = custom_fields;
|
|
708
|
+
if (test_plan_key)
|
|
709
|
+
payload.testPlanKey = test_plan_key;
|
|
704
710
|
try {
|
|
705
711
|
const response = await this.axiosInstance.post('/rest/atm/1.0/testrun', payload);
|
|
706
712
|
if (response.status === 201) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-scale-mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for Zephyr Scale test case management with comprehensive STEP_BY_STEP, PLAIN_TEXT, and BDD support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
package/src/index.ts
CHANGED
|
@@ -285,6 +285,10 @@ class ZephyrServer {
|
|
|
285
285
|
description: 'Array of test case keys to include in the test run',
|
|
286
286
|
items: { type: 'string' }
|
|
287
287
|
},
|
|
288
|
+
test_plan_key: {
|
|
289
|
+
type: 'string',
|
|
290
|
+
description: 'Test plan key to link this test run to (optional)',
|
|
291
|
+
},
|
|
288
292
|
folder: {
|
|
289
293
|
type: 'string',
|
|
290
294
|
description: 'Folder path (optional)',
|
|
@@ -734,6 +738,7 @@ class ZephyrServer {
|
|
|
734
738
|
project_key,
|
|
735
739
|
name,
|
|
736
740
|
test_case_keys,
|
|
741
|
+
test_plan_key,
|
|
737
742
|
folder,
|
|
738
743
|
planned_start_date,
|
|
739
744
|
planned_end_date,
|
|
@@ -762,6 +767,7 @@ class ZephyrServer {
|
|
|
762
767
|
if (owner) payload.owner = owner;
|
|
763
768
|
if (environment) payload.environment = environment;
|
|
764
769
|
if (custom_fields) payload.customFields = custom_fields;
|
|
770
|
+
if (test_plan_key) payload.testPlanKey = test_plan_key;
|
|
765
771
|
|
|
766
772
|
try {
|
|
767
773
|
const response = await this.axiosInstance.post('/rest/atm/1.0/testrun', payload);
|