xray-mcp 1.2.5 → 1.2.7

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 CHANGED
@@ -141,7 +141,7 @@ npm run dev
141
141
  ```
142
142
 
143
143
  **Test Types:**
144
- - `Manual` - Manual tests (default, use with `add_manual_test_steps` for unstructured steps)
144
+ - `Manual` - Manual tests with structured steps (use with `add_manual_test_steps`)
145
145
  - `Cucumber` - Gherkin/BDD scenarios
146
146
  - `Generic` - Other test types
147
147
  - `Generic` - Generic automated tests
@@ -214,22 +214,15 @@ export class XrayClient {
214
214
  * @param steps - Array of test steps with action, data, and result
215
215
  */
216
216
  async addManualTestSteps(issueId, steps) {
217
- // Format steps as a string for Xray's unstructured test definition
218
- // Format: "1. Action|Data|Result\n2. Action|Data|Result"
219
- const unstructuredSteps = steps
220
- .map((step, index) => {
221
- const stepNumber = index + 1;
222
- const parts = [step.action];
223
- if (step.data) {
224
- parts.push(step.data);
225
- }
226
- parts.push(step.result);
227
- return `${stepNumber}. ${parts.join('|')}`;
228
- })
229
- .join('\n');
217
+ // Format steps for Manual test type
218
+ const manualSteps = steps.map((step) => ({
219
+ action: step.action,
220
+ data: step.data || '',
221
+ result: step.result
222
+ }));
230
223
  const mutation = `
231
- mutation UpdateUnstructuredTest($issueId: String!, $unstructured: String!) {
232
- updateUnstructuredTestDefinition(issueId: $issueId, unstructured: $unstructured) {
224
+ mutation UpdateManualTest($issueId: String!, $steps: [ManualTestStepInput]!) {
225
+ updateManualTestSteps(issueId: $issueId, steps: $steps) {
233
226
  issueId
234
227
  jira(fields: ["key"])
235
228
  }
@@ -237,7 +230,7 @@ export class XrayClient {
237
230
  `;
238
231
  const variables = {
239
232
  issueId: issueId,
240
- unstructured: unstructuredSteps
233
+ steps: manualSteps
241
234
  };
242
235
  await this.graphqlRequest(mutation, variables);
243
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray-mcp",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {