xray-mcp 1.2.2 → 1.2.3

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,9 +141,10 @@ npm run dev
141
141
  ```
142
142
 
143
143
  **Test Types:**
144
- - `Manual` - Structured manual tests (use Xray's built-in manual test steps)
144
+ - `Manual` - Creates Unstructured tests (maps to "Unstructured" for `add_manual_test_steps` compatibility)
145
145
  - `Unstructured` - Free-form text steps (use with `add_manual_test_steps` tool)
146
146
  - `Cucumber` - Gherkin/BDD scenarios
147
+ - `Generic` - Other test types
147
148
  - `Generic` - Generic automated tests
148
149
 
149
150
  #### Add Manual Test Steps
@@ -112,7 +112,7 @@ export class XrayClient {
112
112
  */
113
113
  async createTestCase(testCase) {
114
114
  const mutation = `
115
- mutation CreateTest($jira: JSON!, $testType: UpdateTestTypeInput) {
115
+ mutation CreateTest($jira: JSON!, $testType: String) {
116
116
  createTest(jira: $jira, testType: $testType) {
117
117
  test {
118
118
  issueId
@@ -146,9 +146,14 @@ export class XrayClient {
146
146
  jira: jiraFields
147
147
  };
148
148
  if (testCase.testType) {
149
- variables.testType = {
150
- kind: testCase.testType
151
- };
149
+ // Map "Manual" to "Unstructured" for ADO migration compatibility
150
+ // add_manual_test_steps only works with Unstructured test type
151
+ let xrayTestType = testCase.testType;
152
+ if (testCase.testType === 'Manual') {
153
+ xrayTestType = 'Unstructured';
154
+ }
155
+ // Pass as plain string, not object
156
+ variables.testType = xrayTestType;
152
157
  }
153
158
  const result = await this.graphqlRequest(mutation, variables);
154
159
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray-mcp",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {