xray-mcp 1.2.0 → 1.2.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/README.md CHANGED
@@ -141,8 +141,7 @@ npm run dev
141
141
  ```
142
142
 
143
143
  **Test Types:**
144
- - `Unstructured` - Free-form text steps (default, use with `add_manual_test_steps`)
145
- - `Manual` - Structured manual steps (Xray's native format)
144
+ - `Unstructured` or `Manual` - Free-form text steps (both map to Xray "Unstructured", use with `add_manual_test_steps`)
146
145
  - `Cucumber` - Gherkin/BDD scenarios
147
146
  - `Generic` - Generic automated tests
148
147
 
@@ -146,8 +146,14 @@ export class XrayClient {
146
146
  jira: jiraFields
147
147
  };
148
148
  if (testCase.testType) {
149
+ // Map user-friendly test types to Xray's internal types
150
+ // For free-form text steps (used by add_manual_test_steps), use "Unstructured"
151
+ let xrayTestType = testCase.testType;
152
+ if (testCase.testType === 'Manual' || testCase.testType === 'Unstructured') {
153
+ xrayTestType = 'Unstructured';
154
+ }
149
155
  variables.testType = {
150
- name: testCase.testType
156
+ name: xrayTestType
151
157
  };
152
158
  }
153
159
  const result = await this.graphqlRequest(mutation, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {