xray-mcp 1.2.1 → 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,13 +141,15 @@ npm run dev
141
141
  ```
142
142
 
143
143
  **Test Types:**
144
- - `Unstructured` or `Manual` - Free-form text steps (both map to Xray "Unstructured", use with `add_manual_test_steps`)
144
+ - `Manual` - Creates Unstructured tests (maps to "Unstructured" for `add_manual_test_steps` compatibility)
145
+ - `Unstructured` - Free-form text steps (use with `add_manual_test_steps` tool)
145
146
  - `Cucumber` - Gherkin/BDD scenarios
147
+ - `Generic` - Other test types
146
148
  - `Generic` - Generic automated tests
147
149
 
148
150
  #### Add Manual Test Steps
149
151
 
150
- **Important:** Test cases must be created with `testType: "Unstructured"` (default) to use this tool.
152
+ **Important:** Test cases must be created with `testType: "Unstructured"` to use this tool.
151
153
 
152
154
  ```json
153
155
  {
@@ -167,7 +169,7 @@ npm run dev
167
169
  ```
168
170
 
169
171
  **Migration from Azure DevOps:** This tool is perfect for migrating test cases from ADO:
170
- 1. Create test case with `testType: "Unstructured"` (default)
172
+ 1. Create test case with `testType: "Unstructured"`
171
173
  2. Use the returned `issueId` with `add_manual_test_steps`
172
174
  3. Steps are formatted as pipe-delimited text: "1. Action|Data|Result"
173
175
 
@@ -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,15 +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"
149
+ // Map "Manual" to "Unstructured" for ADO migration compatibility
150
+ // add_manual_test_steps only works with Unstructured test type
151
151
  let xrayTestType = testCase.testType;
152
- if (testCase.testType === 'Manual' || testCase.testType === 'Unstructured') {
152
+ if (testCase.testType === 'Manual') {
153
153
  xrayTestType = 'Unstructured';
154
154
  }
155
- variables.testType = {
156
- name: xrayTestType
157
- };
155
+ // Pass as plain string, not object
156
+ variables.testType = xrayTestType;
158
157
  }
159
158
  const result = await this.graphqlRequest(mutation, variables);
160
159
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xray-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {