@qase/mcp-server 2.7.4 → 3.0.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +4 -4
  3. package/build/auth/mcp-guard.d.ts.map +1 -1
  4. package/build/auth/mcp-guard.js +1 -1
  5. package/build/auth/mcp-guard.js.map +1 -1
  6. package/build/cache/metrics.d.ts.map +1 -1
  7. package/build/cache/metrics.js +16 -1
  8. package/build/cache/metrics.js.map +1 -1
  9. package/build/index.js +27 -5
  10. package/build/index.js.map +1 -1
  11. package/build/operations-v2/composites/ci-report.js +3 -5
  12. package/build/operations-v2/composites/ci-report.js.map +1 -1
  13. package/build/operations-v2/composites/regression-run.js +2 -1
  14. package/build/operations-v2/composites/regression-run.js.map +1 -1
  15. package/build/operations-v2/composites/triage-defect.js +5 -7
  16. package/build/operations-v2/composites/triage-defect.js.map +1 -1
  17. package/build/operations-v2/escape/api.js +11 -4
  18. package/build/operations-v2/escape/api.js.map +1 -1
  19. package/build/operations-v2/index.d.ts +1 -0
  20. package/build/operations-v2/index.d.ts.map +1 -1
  21. package/build/operations-v2/index.js +1 -0
  22. package/build/operations-v2/index.js.map +1 -1
  23. package/build/operations-v2/meta/discover.d.ts +5 -4
  24. package/build/operations-v2/meta/discover.d.ts.map +1 -1
  25. package/build/operations-v2/meta/discover.js +13 -32
  26. package/build/operations-v2/meta/discover.js.map +1 -1
  27. package/build/operations-v2/meta/tool-help.d.ts +10 -0
  28. package/build/operations-v2/meta/tool-help.d.ts.map +1 -0
  29. package/build/operations-v2/meta/tool-help.js +42 -0
  30. package/build/operations-v2/meta/tool-help.js.map +1 -0
  31. package/build/operations-v2/qql/index.js +15 -9
  32. package/build/operations-v2/qql/index.js.map +1 -1
  33. package/build/operations-v2/read/get.js +2 -1
  34. package/build/operations-v2/read/get.js.map +1 -1
  35. package/build/operations-v2/read/project-context.js +9 -7
  36. package/build/operations-v2/read/project-context.js.map +1 -1
  37. package/build/operations-v2/write/attachments.js +25 -19
  38. package/build/operations-v2/write/attachments.js.map +1 -1
  39. package/build/operations-v2/write/case-fields.d.ts +26 -215
  40. package/build/operations-v2/write/case-fields.d.ts.map +1 -1
  41. package/build/operations-v2/write/case-fields.js +28 -24
  42. package/build/operations-v2/write/case-fields.js.map +1 -1
  43. package/build/operations-v2/write/cases-bulk.js +2 -1
  44. package/build/operations-v2/write/cases-bulk.js.map +1 -1
  45. package/build/operations-v2/write/cases.js +4 -3
  46. package/build/operations-v2/write/cases.js.map +1 -1
  47. package/build/operations-v2/write/custom-fields.js +13 -10
  48. package/build/operations-v2/write/custom-fields.js.map +1 -1
  49. package/build/operations-v2/write/defects.js +7 -9
  50. package/build/operations-v2/write/defects.js.map +1 -1
  51. package/build/operations-v2/write/environments.js +5 -5
  52. package/build/operations-v2/write/environments.js.map +1 -1
  53. package/build/operations-v2/write/external-issues.js +2 -2
  54. package/build/operations-v2/write/external-issues.js.map +1 -1
  55. package/build/operations-v2/write/milestones.js +6 -6
  56. package/build/operations-v2/write/milestones.js.map +1 -1
  57. package/build/operations-v2/write/plans.js +5 -5
  58. package/build/operations-v2/write/plans.js.map +1 -1
  59. package/build/operations-v2/write/projects.js +6 -6
  60. package/build/operations-v2/write/projects.js.map +1 -1
  61. package/build/operations-v2/write/results.js +7 -12
  62. package/build/operations-v2/write/results.js.map +1 -1
  63. package/build/operations-v2/write/reviews.js +18 -18
  64. package/build/operations-v2/write/reviews.js.map +1 -1
  65. package/build/operations-v2/write/runs.js +8 -6
  66. package/build/operations-v2/write/runs.js.map +1 -1
  67. package/build/operations-v2/write/shared-steps.js +5 -8
  68. package/build/operations-v2/write/shared-steps.js.map +1 -1
  69. package/build/operations-v2/write/suites.js +4 -3
  70. package/build/operations-v2/write/suites.js.map +1 -1
  71. package/build/server-instructions.d.ts +1 -1
  72. package/build/server-instructions.d.ts.map +1 -1
  73. package/build/server-instructions.js +4 -4
  74. package/build/server.d.ts.map +1 -1
  75. package/build/server.js +154 -104
  76. package/build/server.js.map +1 -1
  77. package/build/transports/body-limit.d.ts +13 -0
  78. package/build/transports/body-limit.d.ts.map +1 -0
  79. package/build/transports/body-limit.js +43 -0
  80. package/build/transports/body-limit.js.map +1 -0
  81. package/build/transports/json-parse-error.d.ts +10 -6
  82. package/build/transports/json-parse-error.d.ts.map +1 -1
  83. package/build/transports/json-parse-error.js +38 -14
  84. package/build/transports/json-parse-error.js.map +1 -1
  85. package/build/transports/rate-limit.d.ts +1 -1
  86. package/build/transports/rate-limit.js +1 -1
  87. package/build/transports/sse.d.ts.map +1 -1
  88. package/build/transports/sse.js +3 -2
  89. package/build/transports/sse.js.map +1 -1
  90. package/build/transports/streamableHttp.d.ts.map +1 -1
  91. package/build/transports/streamableHttp.js +84 -171
  92. package/build/transports/streamableHttp.js.map +1 -1
  93. package/build/utils/auth-context.d.ts +30 -0
  94. package/build/utils/auth-context.d.ts.map +1 -1
  95. package/build/utils/auth-context.js +33 -0
  96. package/build/utils/auth-context.js.map +1 -1
  97. package/build/utils/protocol-telemetry.d.ts +62 -0
  98. package/build/utils/protocol-telemetry.d.ts.map +1 -0
  99. package/build/utils/protocol-telemetry.js +123 -0
  100. package/build/utils/protocol-telemetry.js.map +1 -0
  101. package/build/utils/registry.d.ts +28 -34
  102. package/build/utils/registry.d.ts.map +1 -1
  103. package/build/utils/registry.js +107 -102
  104. package/build/utils/registry.js.map +1 -1
  105. package/build/utils/request-state.d.ts +71 -0
  106. package/build/utils/request-state.d.ts.map +1 -0
  107. package/build/utils/request-state.js +108 -0
  108. package/build/utils/request-state.js.map +1 -0
  109. package/build/utils/server-context.d.ts +53 -16
  110. package/build/utils/server-context.d.ts.map +1 -1
  111. package/build/utils/server-context.js +147 -39
  112. package/build/utils/server-context.js.map +1 -1
  113. package/build/utils/validation.d.ts +12 -25
  114. package/build/utils/validation.d.ts.map +1 -1
  115. package/build/utils/validation.js +2 -2
  116. package/build/utils/validation.js.map +1 -1
  117. package/build/version.d.ts +1 -1
  118. package/build/version.js +1 -1
  119. package/docs/self-run.md +40 -3
  120. package/docs/tools.md +54 -60
  121. package/docs/troubleshooting.md +29 -8
  122. package/package.json +8 -9
  123. package/server.json +2 -2
package/docs/tools.md CHANGED
@@ -1,64 +1,57 @@
1
1
  # Tool Reference
2
2
 
3
- The Qase MCP Server exposes **41 tools** across 6 groups: Read (2), QQL (2), Write (32, including 5 review tools), Composite (3), Escape hatch (1), and Meta (1).
3
+ The Qase MCP Server exposes **42 tools** across 6 groups: Read (2), QQL (2), Write (32, including 5 review tools), Composite (3), Escape hatch (1), and Meta (2).
4
4
 
5
- ## Discovery model
5
+ ## All tools are listed
6
6
 
7
- To keep context-token usage low, tools are split into two visibility tiers:
8
-
9
- - **`core`** — always listed to the MCP client, no activation needed (17 tools).
10
- - **`discoverable`** — hidden by default; the LLM finds and activates them on demand via `qase_discover_tools`, which searches tool names/descriptions and activates matches for the rest of the session (24 tools, mostly deletes, review operations, and secondary write operations).
11
-
12
- If a tool you need isn't showing up in your client's tool list, call `qase_discover_tools` with a query (e.g. `"delete"`, `"milestone"`, `"plan"`) to activate it first.
13
-
14
- Activation makes the tool callable on the server immediately and the server announces it with `notifications/tools/list_changed`. A client that does not re-read `tools/list` on that notification will not offer the tool no matter how often discovery runs — it typically fails with something like `tools.<name> is not a function`. Nothing on the server side is broken there: use [`qase_api`](#escape-hatch) to reach the same endpoint, or ask for a client that supports the notification. Tools a core tool's own description recommends are never hidden, so this never blocks the main workflows.
7
+ Since 3.0.0 every tool is in the client's tool list from the first request — there is no activation step and no `notifications/tools/list_changed` to wait for. `qase_discover_tools` remains as a search over the catalogue for when the right tool's name is not known, and `qase_tool_help` returns the full documentation of a tool on demand; the descriptions in the list are deliberately short.
15
8
 
16
9
  Every tool's schema uses "label or numeric ID" strings for Qase's configurable enum fields (`priority`, `severity`, `type`, `layer`, `behavior`, `status`, `automation` on cases); the server resolves labels against the workspace's actual system-field configuration at call time. See [Case enum values](#case-enum-values) below.
17
10
 
18
11
  ## Read tools
19
12
 
20
- | Tool | Description | Key params | Visibility |
21
- | --- | --- | --- | --- |
22
- | `qase_get` | Get any Qase entity by type and ID. Supports field projection via `fields`. `code` is required for project-scoped entities (case, suite, run, result, plan, defect, milestone, environment, shared_step, shared_parameter, configuration, review); optional for global entities (user, author, attachment, custom_field). Cases and runs automatically request their external issue links (`external_issues` / `external_issue`); override with `include`. | `entity` (enum: case, suite, run, result, plan, defect, milestone, environment, shared_step, shared_parameter, configuration, attachment, author, user, custom_field, review), `code` (optional), `id` (number or hash string), `fields` (optional string array — pass `["*"]` for all), `include` (optional string) | core |
23
- | `qase_project_context` | Get full project context in one call: project details, suites tree, milestones, environments, custom fields, and users. Cached for 5 minutes. Recommended as the first call when starting work with a project. Each collection returns its first 100 entities by default — check the `coverage` field (`{ total, loaded, truncated }` per collection) before treating a list as complete, and pass `full: true` to page through everything. | `code`, `full` (optional bool, default false) | core |
13
+ | Tool | Description | Key params |
14
+ | --- | --- | --- |
15
+ | `qase_get` | Get any Qase entity by type and ID. Supports field projection via `fields`. `code` is required for project-scoped entities (case, suite, run, result, plan, defect, milestone, environment, shared_step, shared_parameter, configuration, review); optional for global entities (user, author, attachment, custom_field). Cases and runs automatically request their external issue links (`external_issues` / `external_issue`); override with `include`. | `entity` (enum: case, suite, run, result, plan, defect, milestone, environment, shared_step, shared_parameter, configuration, attachment, author, user, custom_field, review), `code` (optional), `id` (number or hash string), `fields` (optional string array — pass `["*"]` for all), `include` (optional string) |
16
+ | `qase_project_context` | Get full project context in one call: project details, suites tree, milestones, environments, custom fields, and users. Cached for 5 minutes. Recommended as the first call when starting work with a project. Each collection returns its first 100 entities by default — check the `coverage` field (`{ total, loaded, truncated }` per collection) before treating a list as complete, and pass `full: true` to page through everything. | `code`, `full` (optional bool, default false) |
24
17
 
25
18
  ## QQL tools
26
19
 
27
- | Tool | Description | Key params | Visibility |
28
- | --- | --- | --- | --- |
29
- | `qql_search` | Search entities using Qase Query Language (QQL) with powerful filtering and cross-project queries. Aggregate with `SELECT (COUNT(id)) …` instead of paging rows to count — note `SELECT` comes **first**, before the conditions. | `query` (1-2000 chars, matching the REST limit), `limit` (optional, max 100, default 10), `offset` (optional) | core |
30
- | `qql_help` | Get one section of the QQL reference. `topic` is **required** — the whole reference is large, so ask for the section you need. Read `entities` before querying an unfamiliar entity: field names are not uniform (only `case`/`defect`/`plan`/`requirement` have `created`; `run` has `started`/`ended`, `result` only `ended`). | `topic` (required enum: overview, syntax, entities, operators, functions, examples, aggregation, enumValues) | core |
20
+ | Tool | Description | Key params |
21
+ | --- | --- | --- |
22
+ | `qql_search` | Search entities using Qase Query Language (QQL) with powerful filtering and cross-project queries. Aggregate with `SELECT (COUNT(id)) …` instead of paging rows to count — note `SELECT` comes **first**, before the conditions. | `query` (1-2000 chars, matching the REST limit), `limit` (optional, max 100, default 10), `offset` (optional) |
23
+ | `qql_help` | Get one section of the QQL reference. `topic` is **required** — the whole reference is large, so ask for the section you need. Read `entities` before querying an unfamiliar entity: field names are not uniform (only `case`/`defect`/`plan`/`requirement` have `created`; `run` has `started`/`ended`, `result` only `ended`). | `topic` (required enum: overview, syntax, entities, operators, functions, examples, aggregation, enumValues) |
31
24
 
32
25
  ## Write tools
33
26
 
34
27
  <details>
35
28
  <summary>Write tools (23, excluding review — see below)</summary>
36
29
 
37
- | Tool | Description | Key params | Visibility |
38
- | --- | --- | --- | --- |
39
- | `qase_case_upsert` | Create or update a test case. If `id` is provided, updates the existing case; if omitted, creates a new one. Enum fields (priority, severity, type, etc.) accept both labels ("high", "blocker") and numeric IDs — the server normalizes automatically. | `code`, `id` (optional), `title` (1-255 chars), `description`, `preconditions`, `postconditions`, `severity`, `priority`, `type`, `layer`, `behavior`, `automation`, `status`, `is_flaky` (all label-or-ID strings; `is_flaky` is 0=No / 1=Yes and also accepts a boolean), `suite_id`, `milestone_id`, `steps` (array, supports nesting; a step may reference a shared step via `shared` — the shared step hash — instead of `action`), `steps_type` (enum: classic, gherkin), `tags`, `attachments`, `custom_field` | core |
40
- | `qase_case_bulk_create` | Create up to 100 test cases in a single request. Use instead of calling `qase_case_upsert` repeatedly when importing or generating several cases at once. Enum fields accept labels or numeric IDs. Creates only — use `qase_case_upsert` with an `id` to update. Returns the IDs of the created cases in submission order. | `code`, `cases` (array, 1-100 — same fields as `qase_case_upsert` without `id`, including `shared` step references) | core |
41
- | `qase_case_delete` | Delete a test case by project code and case ID. | `code`, `id` | discoverable |
42
- | `qase_defect_upsert` | Create or update a defect. If `id` is provided, updates (including status changes and resolve). If omitted, creates a new defect. Set `status: "resolved"` to resolve an existing defect. | `code`, `id` (optional), `title` (1-255 chars), `actual_result`, `severity` (enum, see [below](#case-enum-values)), `status` (enum: open, in_progress, resolved, invalid), `tags`, `attachments`, `custom_field` | core |
43
- | `qase_defect_delete` | Delete a defect by project code and defect ID. | `code`, `id` | discoverable |
44
- | `qase_run_upsert` | Create or update a test run. If `id` is provided, updates; if omitted, creates. | `code`, `id` (optional), `title` (1-255 chars), `description`, `environment_id`, `milestone_id`, `plan_id`, `cases` (case ID array), `tags`, `is_autotest`, `start_time`/`end_time` (RFC3339), `custom_field` | core |
45
- | `qase_run_complete` | Mark a test run as complete. | `code`, `id` | core |
46
- | `qase_run_delete` | Delete a test run. | `code`, `id` | discoverable |
47
- | `qase_result_record` | Record one or more test results into a run. A single entry uses the single-result API, multiple entries use bulk. Each result must include a status; `case_id` is recommended. **The bulk endpoint takes at most 200 results per request**, so a longer list is refused before anything is written — split it across consecutive calls. It is refused rather than split automatically because results are append-only: a batch that failed half way could not be unwound, and the natural retry would record the first 200 a second time and leave the run with a wrong pass rate. Use `qase_ci_report` for a finished run, which does split for you. | `code`, `run_id`, `results` (array, 1-200) — each result: `case_id` (optional), `status` (enum: passed, failed, blocked, skipped, invalid), `comment`, `stacktrace`, `time_ms`, `defect` (bool), `steps` (array with `position`, `status`, `comment`, `attachments`), `attachments`, `custom_field` | core |
48
- | `qase_result_delete` | Delete a test result by run ID and result hash. | `code`, `run_id`, `hash` | discoverable |
49
- | `qase_suite_upsert` | Create or update a test suite. If `id` is provided, updates the existing suite; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `preconditions`, `parent_id` (for nesting) | core |
50
- | `qase_suite_delete` | Delete a test suite. If `delete_cases` is true, removes all cases in the suite; if false or omitted, cases are moved to the parent suite. | `code`, `id`, `delete_cases` (optional bool) | discoverable |
51
- | `qase_milestone_upsert` | Create or update a milestone. If `id` is provided, updates the existing milestone; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `status` (enum: active, completed), `due_date` (Unix timestamp) | discoverable |
52
- | `qase_milestone_delete` | Delete a milestone by project code and milestone ID. | `code`, `id` | discoverable |
53
- | `qase_plan_upsert` | Create or update a test plan. If `id` is provided, updates the existing plan; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `cases` (case ID array) | discoverable |
54
- | `qase_plan_delete` | Delete a test plan by project code and plan ID. | `code`, `id` | discoverable |
55
- | `qase_shared_step_upsert` | Create or update a shared step. If `hash` is provided, updates the existing shared step; if omitted, creates a new one. Shared steps are reusable steps included in multiple test cases. | `code`, `hash` (optional), `title` (1-255 chars), `steps` (array: `action`, `expected_result`, `data`, `attachments`) | discoverable |
56
- | `qase_shared_step_delete` | Delete a shared step by project code and hash. | `code`, `hash` | discoverable |
57
- | `qase_environment_upsert` | Create or update a test environment. If `id` is provided, updates the existing environment; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `slug`, `host` | discoverable |
58
- | `qase_environment_delete` | Delete a test environment by project code and environment ID. | `code`, `id` | discoverable |
30
+ | Tool | Description | Key params |
31
+ | --- | --- | --- |
32
+ | `qase_case_upsert` | Create or update a test case. If `id` is provided, updates the existing case; if omitted, creates a new one. Enum fields (priority, severity, type, etc.) accept both labels ("high", "blocker") and numeric IDs — the server normalizes automatically. | `code`, `id` (optional), `title` (1-255 chars), `description`, `preconditions`, `postconditions`, `severity`, `priority`, `type`, `layer`, `behavior`, `automation`, `status`, `is_flaky` (all label-or-ID strings; `is_flaky` is 0=No / 1=Yes and also accepts a boolean), `suite_id`, `milestone_id`, `steps` (array, supports nesting; a step may reference a shared step via `shared` — the shared step hash — instead of `action`), `steps_type` (enum: classic, gherkin), `tags`, `attachments`, `custom_field` |
33
+ | `qase_case_bulk_create` | Create up to 100 test cases in a single request. Use instead of calling `qase_case_upsert` repeatedly when importing or generating several cases at once. Enum fields accept labels or numeric IDs. Creates only — use `qase_case_upsert` with an `id` to update. Returns the IDs of the created cases in submission order. | `code`, `cases` (array, 1-100 — same fields as `qase_case_upsert` without `id`, including `shared` step references) |
34
+ | `qase_case_delete` | Delete a test case by project code and case ID. | `code`, `id` |
35
+ | `qase_defect_upsert` | Create or update a defect. If `id` is provided, updates (including status changes and resolve). If omitted, creates a new defect. Set `status: "resolved"` to resolve an existing defect. | `code`, `id` (optional), `title` (1-255 chars), `actual_result`, `severity` (enum, see [below](#case-enum-values)), `status` (enum: open, in_progress, resolved, invalid), `tags`, `attachments`, `custom_field` |
36
+ | `qase_defect_delete` | Delete a defect by project code and defect ID. | `code`, `id` |
37
+ | `qase_run_upsert` | Create or update a test run. If `id` is provided, updates; if omitted, creates. | `code`, `id` (optional), `title` (1-255 chars), `description`, `environment_id`, `milestone_id`, `plan_id`, `cases` (case ID array), `tags`, `is_autotest`, `start_time`/`end_time` (RFC3339), `custom_field` |
38
+ | `qase_run_complete` | Mark a test run as complete. | `code`, `id` |
39
+ | `qase_run_delete` | Delete a test run. | `code`, `id` |
40
+ | `qase_result_record` | Record one or more test results into a run. A single entry uses the single-result API, multiple entries use bulk. Each result must include a status; `case_id` is recommended. **The bulk endpoint takes at most 200 results per request**, so a longer list is refused before anything is written — split it across consecutive calls. It is refused rather than split automatically because results are append-only: a batch that failed half way could not be unwound, and the natural retry would record the first 200 a second time and leave the run with a wrong pass rate. Use `qase_ci_report` for a finished run, which does split for you. | `code`, `run_id`, `results` (array, 1-200) — each result: `case_id` (optional), `status` (enum: passed, failed, blocked, skipped, invalid), `comment`, `stacktrace`, `time_ms`, `defect` (bool), `steps` (array with `position`, `status`, `comment`, `attachments`), `attachments`, `custom_field` |
41
+ | `qase_result_delete` | Delete a test result by run ID and result hash. | `code`, `run_id`, `hash` |
42
+ | `qase_suite_upsert` | Create or update a test suite. If `id` is provided, updates the existing suite; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `preconditions`, `parent_id` (for nesting) |
43
+ | `qase_suite_delete` | Delete a test suite. If `delete_cases` is true, removes all cases in the suite; if false or omitted, cases are moved to the parent suite. | `code`, `id`, `delete_cases` (optional bool) |
44
+ | `qase_milestone_upsert` | Create or update a milestone. If `id` is provided, updates the existing milestone; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `status` (enum: active, completed), `due_date` (Unix timestamp) |
45
+ | `qase_milestone_delete` | Delete a milestone by project code and milestone ID. | `code`, `id` |
46
+ | `qase_plan_upsert` | Create or update a test plan. If `id` is provided, updates the existing plan; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `cases` (case ID array) |
47
+ | `qase_plan_delete` | Delete a test plan by project code and plan ID. | `code`, `id` |
48
+ | `qase_shared_step_upsert` | Create or update a shared step. If `hash` is provided, updates the existing shared step; if omitted, creates a new one. Shared steps are reusable steps included in multiple test cases. | `code`, `hash` (optional), `title` (1-255 chars), `steps` (array: `action`, `expected_result`, `data`, `attachments`) |
49
+ | `qase_shared_step_delete` | Delete a shared step by project code and hash. | `code`, `hash` |
50
+ | `qase_environment_upsert` | Create or update a test environment. If `id` is provided, updates the existing environment; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `slug`, `host` |
51
+ | `qase_environment_delete` | Delete a test environment by project code and environment ID. | `code`, `id` |
59
52
  | `qase_attachment_upload` | Upload one or more files and get back their hashes, which every `attachments` field accepts. This is the only way to obtain such a hash — the endpoint needs `multipart/form-data`, which `qase_api` cannot send. Pass `files` to send several in a single request; hashes come back in the same order. Use `file_base64` whenever the server is not on the same machine as the file, including the hosted connector, where it is the only option. **Qase accepts at most 20 files, 32 MB per file and 128 MB per request** — a request over any of those is refused before anything is uploaded, so split it across calls. A 507 from the API means the team account is out of attachment storage. | `code`, `files` (array, 1-20 — each: `filename`, `file_base64`, `file_path`); or the single-file form: `filename`, `file_base64` (base64 content), `file_path` (absolute path, local servers only), `file` (deprecated alias accepting either) | **core** |
60
- | `qase_attachment_delete` | Delete an attachment by its hash. | `hash` | discoverable |
61
- | `qase_external_issue_link` | Link or unlink test cases and test runs to issues in an external tracker (Jira Cloud or Jira Server). A case can be linked to several issues; a run can have only one link, and attaching a new issue replaces the previous one. Detaching a run clears its link. Read linked issues back with `qase_get`. | `code`, `entity` (enum: case, run), `action` (enum: attach, detach), `type` (enum: jira-cloud, jira-server), `links` (array: `id`, `issues` — issue keys such as `PROJ-1234`) | discoverable |
53
+ | `qase_attachment_delete` | Delete an attachment by its hash. | `hash` |
54
+ | `qase_external_issue_link` | Link or unlink test cases and test runs to issues in an external tracker (Jira Cloud or Jira Server). A case can be linked to several issues; a run can have only one link, and attaching a new issue replaces the previous one. Detaching a run clears its link. Read linked issues back with `qase_get`. | `code`, `entity` (enum: case, run), `action` (enum: attach, detach), `type` (enum: jira-cloud, jira-server), `links` (array: `id`, `issues` — issue keys such as `PROJ-1234`) |
62
55
 
63
56
  </details>
64
57
 
@@ -70,13 +63,13 @@ Test case review is the pull-request workflow for test cases: an author proposes
70
63
 
71
64
  **Scope**: the public API covers authoring only. **Approving, requesting changes, merging, and declining have no API endpoints** — they exist only in the Qase UI (which does emit webhooks). No tool here can perform them; read the current state with `qase_review_list` or `qase_get`.
72
65
 
73
- | Tool | Description | Key params | Visibility |
74
- | --- | --- | --- | --- |
75
- | `qase_review_create` | Open a review. With `case_id` it proposes changes to an existing case (an `edit` review — send only the fields that change); without it, a new-case draft (a `create` review — `title` required). Case fields are named and normalised exactly as in `qase_case_upsert`. Returns `{ review_id, type, case_id, status }`. | `code`, `case_id` (optional), `reviewers` (optional), plus any `qase_case_upsert` case field | discoverable |
76
- | `qase_review_update` | Change the proposal, reassign reviewers, or both. **Changing the proposal resets every approval already given**; updating only `reviewers` keeps them. The result reports `approvals_reset`. | `code`, `id`, `reviewers` (optional — replaces the list; `[]` removes everyone), plus any case field | discoverable |
77
- | `qase_review_list` | List reviews with filters, reporting `total` alongside `returned`. This is how review and per-reviewer approval status are read — QQL has no `review` entity. | `code`, `status` (optional enum: open, merged, declined), `type` (optional enum: create, edit), `case_id`, `author_uuid`, `reviewer_uuid`, `search`, `limit` (max 100, default 25), `offset` | discoverable |
78
- | `qase_review_delete` | Delete a review. Merged reviews cannot be deleted. This removes the proposal — it does **not** decline it, which is UI-only. | `code`, `id` | discoverable |
79
- | `qase_review_bulk_create` | Open several reviews at once. The API validates the batch as a whole, so one invalid item rejects all of them; items missing a required `title` are caught locally before anything is sent. Returns a flat `review_ids` list (the API nests them as `items[].review_id`). | `code`, `reviews` (array, min 1 — same fields as `qase_review_create` without `code`) | discoverable |
66
+ | Tool | Description | Key params |
67
+ | --- | --- | --- |
68
+ | `qase_review_create` | Open a review. With `case_id` it proposes changes to an existing case (an `edit` review — send only the fields that change); without it, a new-case draft (a `create` review — `title` required). Case fields are named and normalised exactly as in `qase_case_upsert`. Returns `{ review_id, type, case_id, status }`. | `code`, `case_id` (optional), `reviewers` (optional), plus any `qase_case_upsert` case field |
69
+ | `qase_review_update` | Change the proposal, reassign reviewers, or both. **Changing the proposal resets every approval already given**; updating only `reviewers` keeps them. The result reports `approvals_reset`. | `code`, `id`, `reviewers` (optional — replaces the list; `[]` removes everyone), plus any case field |
70
+ | `qase_review_list` | List reviews with filters, reporting `total` alongside `returned`. This is how review and per-reviewer approval status are read — QQL has no `review` entity. | `code`, `status` (optional enum: open, merged, declined), `type` (optional enum: create, edit), `case_id`, `author_uuid`, `reviewer_uuid`, `search`, `limit` (max 100, default 25), `offset` |
71
+ | `qase_review_delete` | Delete a review. Merged reviews cannot be deleted. This removes the proposal — it does **not** decline it, which is UI-only. | `code`, `id` |
72
+ | `qase_review_bulk_create` | Open several reviews at once. The API validates the batch as a whole, so one invalid item rejects all of them; items missing a required `title` are caught locally before anything is sent. Returns a flat `review_ids` list (the API nests them as `items[].review_id`). | `code`, `reviews` (array, min 1 — same fields as `qase_review_create` without `code`) |
80
73
 
81
74
  Reviewers are **author UUIDs**, not user IDs (`qase_get { entity: "author" }` or `GET /author`). Email addresses are accepted and resolved to UUIDs. A review cannot be reviewed by its author, and the review is created by whoever owns the API token — so that person cannot appear in `reviewers`; leave the list empty and assign in the UI if needed.
82
75
 
@@ -86,23 +79,24 @@ Read a single review, including its `proposed_case`, with `qase_get { entity: "r
86
79
 
87
80
  Composite tools chain several underlying operations into one call, so an agent avoids multi-step round-trips for common workflows.
88
81
 
89
- | Tool | Description | Key params | Visibility |
90
- | --- | --- | --- | --- |
91
- | `qase_ci_report` | Report CI/CD test results in one call: creates a run, records all results, and optionally completes the run. Replaces the 3-4 step manual workflow of create_run → bulk_create_results → complete_run. Designed for CI pipeline integration. **Batches larger than 200 are split across requests automatically**, up to 2000 results in one report; beyond that, report the suite as several runs. If a batch fails part way the error names the run that exists and how many results reached it, so the rest can be recorded with `qase_result_record` rather than by repeating this call, which would create a second run. | `code`, `title` (1-255 chars), `environment_id` (optional), `results` (array, 1-2000: `case_id`, `status` (enum: passed, failed, blocked, skipped, invalid), `comment`, `time_ms`, `stacktrace`, `defect`, `attachments`), `complete` (default true), `is_autotest` (default true) | core |
92
- | `qase_regression_run` | Set up a regression test run in one call. Accepts case selection by suite IDs, explicit case IDs, or plan ID. Creates the run and adds all matching cases. Replaces the multi-step workflow of find cases → create run → add cases. | `code`, `title` (1-255 chars), `description`, `environment_id`, `milestone_id`, `plan_id`, `suite_ids` (array), `include_cases` (array) | core |
93
- | `qase_triage_defect` | Create a defect from a test failure. `title`, `actual_result`, and `severity` are all required by the API. The API offers no way to attach runs or results to a defect — the `runs`/`results` arrays seen on a defect are populated by the test runner when a result is reported as a defect — so reference failing results in `actual_result` instead. (`run_id` and `failed_result_ids` were removed in 2.1.0: they were accepted and ignored.) | `code`, `title` (1-255 chars), `actual_result` (required), `severity` (required, enum, see [below](#case-enum-values)), `description`, `tags`, `attachments`, `custom_field` | core |
82
+ | Tool | Description | Key params |
83
+ | --- | --- | --- |
84
+ | `qase_ci_report` | Report CI/CD test results in one call: creates a run, records all results, and optionally completes the run. Replaces the 3-4 step manual workflow of create_run → bulk_create_results → complete_run. Designed for CI pipeline integration. **Batches larger than 200 are split across requests automatically**, up to 2000 results in one report; beyond that, report the suite as several runs. If a batch fails part way the error names the run that exists and how many results reached it, so the rest can be recorded with `qase_result_record` rather than by repeating this call, which would create a second run. | `code`, `title` (1-255 chars), `environment_id` (optional), `results` (array, 1-2000: `case_id`, `status` (enum: passed, failed, blocked, skipped, invalid), `comment`, `time_ms`, `stacktrace`, `defect`, `attachments`), `complete` (default true), `is_autotest` (default true) |
85
+ | `qase_regression_run` | Set up a regression test run in one call. Accepts case selection by suite IDs, explicit case IDs, or plan ID. Creates the run and adds all matching cases. Replaces the multi-step workflow of find cases → create run → add cases. | `code`, `title` (1-255 chars), `description`, `environment_id`, `milestone_id`, `plan_id`, `suite_ids` (array), `include_cases` (array) |
86
+ | `qase_triage_defect` | Create a defect from a test failure. `title`, `actual_result`, and `severity` are all required by the API. The API offers no way to attach runs or results to a defect — the `runs`/`results` arrays seen on a defect are populated by the test runner when a result is reported as a defect — so reference failing results in `actual_result` instead. (`run_id` and `failed_result_ids` were removed in 2.1.0: they were accepted and ignored.) | `code`, `title` (1-255 chars), `actual_result` (required), `severity` (required, enum, see [below](#case-enum-values)), `description`, `tags`, `attachments`, `custom_field` |
94
87
 
95
88
  ## Escape hatch
96
89
 
97
- | Tool | Description | Key params | Visibility |
98
- | --- | --- | --- | --- |
99
- | `qase_api` | Direct Qase REST API call for endpoints not covered by other tools. Pass the HTTP method, path (starting with `/v1/`), and optional body/query. Use this when the dedicated tools do not cover your use case. **Sends JSON only** — it cannot upload files, which need `multipart/form-data`; use `qase_attachment_upload` for that. See [developers.qase.io](https://developers.qase.io) for the API reference. | `method` (enum: GET, POST, PUT, PATCH, DELETE — default GET), `path` (e.g. `/v1/project/DEMO/run`), `body` (optional object, for POST/PUT/PATCH), `query` (optional object) | core |
90
+ | Tool | Description | Key params |
91
+ | --- | --- | --- |
92
+ | `qase_api` | Direct Qase REST API call for endpoints not covered by other tools. Pass the HTTP method, path (starting with `/v1/`), and optional body/query. Use this when the dedicated tools do not cover your use case. **Sends JSON only** — it cannot upload files, which need `multipart/form-data`; use `qase_attachment_upload` for that. See [developers.qase.io](https://developers.qase.io) for the API reference. | `method` (enum: GET, POST, PUT, PATCH, DELETE — default GET), `path` (e.g. `/v1/project/DEMO/run`), `body` (optional object, for POST/PUT/PATCH), `query` (optional object) |
100
93
 
101
94
  ## Meta
102
95
 
103
- | Tool | Description | Key params | Visibility |
104
- | --- | --- | --- | --- |
105
- | `qase_discover_tools` | Search for and activate additional Qase tools. By default, only core tools are visible. Use this to find tools for specific needs: deletions, test plans, milestone management, case reviews, etc. Found tools are automatically activated and become available for use — the server announces the change with `notifications/tools/list_changed`, and clients that ignore that notification will not offer the tool until the session is reconnected. | `query` (optional, matches tool name/description), `category` (optional enum: read, write, delete, composite, all), `activate` (optional bool, default true) | core |
96
+ | Tool | Description | Key params |
97
+ | --- | --- | --- |
98
+ | `qase_discover_tools` | Search the tool catalogue by what you are trying to do and get back the matching tools with their descriptions. Every tool is already listed and callable; use this when you do not know which one fits. | `query` (optional, matches tool name/description), `category` (optional enum: read, write, delete, composite, all) |
99
+ | `qase_tool_help` | The full documentation of one tool — argument semantics, limits, what cannot be undone, which tool to use instead. Descriptions in the tool list are deliberately short; read this before calling a tool for the first time in a session. | `tool` (the tool name exactly as listed) |
106
100
 
107
101
  ## Case enum values
108
102
 
@@ -9,6 +9,7 @@ Issues are grouped by how you're connecting: the [hosted connector](connect.md)
9
9
  This means the server is running locally (self-run) and rejected the token it was given.
10
10
 
11
11
  **Solution**:
12
+
12
13
  1. Verify your API token is correct: https://app.qase.io/user/api/token
13
14
  2. Ensure `QASE_API_TOKEN` is set in your environment or MCP client config's `env` section
14
15
  3. Check for extra spaces or stray quotes around the token value
@@ -40,6 +41,7 @@ If that instance is served without TLS, also set `QASE_API_PROTOCOL=http` — se
40
41
  ### Connector doesn't appear, or won't connect
41
42
 
42
43
  **Solution**:
44
+
43
45
  1. Confirm the server URL is exactly `https://mcp.qase.io/mcp` — no trailing slash variations, no surrounding quotes (see the clean-URL footgun below)
44
46
  2. Confirm your MCP client supports remote (HTTP) servers with OAuth 2.1 — older clients or stdio-only integrations can't connect to a hosted URL
45
47
  3. Restart your MCP client completely (close and reopen) after adding the server
@@ -50,6 +52,7 @@ If that instance is served without TLS, also set `QASE_API_PROTOCOL=http` — se
50
52
  If you completed the browser sign-in but the client still reports the connector needs authorization, or shows zero tools:
51
53
 
52
54
  **Solution**:
55
+
53
56
  1. Make sure you actually completed the sign-in flow in the browser tab/window it opened — some clients silently fail if that tab is closed early
54
57
  2. Try disconnecting and reconnecting the connector (not just refreshing the client)
55
58
  3. If reconnecting doesn't help, follow the full remove-and-re-add steps below — a stale or partially-completed OAuth session is a common cause
@@ -64,6 +67,7 @@ That stray character poisons the OAuth callback — it changes the client's regi
64
67
  **This is not fixable by editing the URL in place.** Once a client has registered or cached an OAuth session against the bad URL, editing the field to remove the quote isn't enough — the client may still replay the old (poisoned) auth request from its cache.
65
68
 
66
69
  **Solution**:
70
+
67
71
  1. Fully **remove** the server entry from your MCP client (don't just edit it)
68
72
  2. Re-**add** it as a new entry
69
73
  3. Type the URL by hand: `https://mcp.qase.io/mcp` — no surrounding quotes, no extra characters
@@ -84,6 +88,7 @@ An active hosted-connector session stays valid for **7 days**. As long as you us
84
88
  **Error**: `Network error` or `ECONNREFUSED`
85
89
 
86
90
  **Solution**:
91
+
87
92
  1. Check your internet connection
88
93
  2. Verify the API domain is correct (especially for enterprise customers)
89
94
  3. Check if Qase is accessible: https://api.qase.io/v1/
@@ -93,6 +98,7 @@ An active hosted-connector session stays valid for **7 days**. As long as you us
93
98
  **Error**: `unable to get local issuer certificate`
94
99
 
95
100
  This error typically occurs in corporate environments with:
101
+
96
102
  - SSL-intercepting proxy servers
97
103
  - Self-signed certificates
98
104
  - Internal Certificate Authorities (CA)
@@ -115,6 +121,7 @@ This error typically occurs in corporate environments with:
115
121
  ```
116
122
 
117
123
  To find your certificate:
124
+
118
125
  - **Corporate environments**: Contact your IT department for the CA certificate
119
126
  - **macOS**: Export from Keychain Access (System Roots → your CA → Export as .pem)
120
127
  - **Windows**: Export from Certificate Manager (certmgr.msc)
@@ -125,6 +132,7 @@ To find your certificate:
125
132
  **Error**: `Invalid domain` or connection errors with custom domain
126
133
 
127
134
  **Solution**:
135
+
128
136
  1. Ensure `QASE_API_DOMAIN` is set to just the domain (e.g., `api-company.qase.io`)
129
137
  2. Don't include `https://` or `/v1` in the domain — the scheme goes in `QASE_API_PROTOCOL` instead (see below), and the API version is appended by the server
130
138
  3. A non-default port does belong in the domain: `api-company.qase.io:8080`
@@ -148,6 +156,7 @@ Only `http` and `https` are recognised; any other value falls back to `https`, s
148
156
  **Error**: MCP client shows "no tools, prompts or resources" or 0 tools available
149
157
 
150
158
  **Solution**:
159
+
151
160
  1. Verify your MCP configuration has the correct command and arguments (self-run) or the correct URL (hosted)
152
161
  2. For self-run: check that `QASE_API_TOKEN` is set in the `env` section
153
162
  3. For the hosted connector: check the [Hosted Connector / OAuth](#hosted-connector--oauth) section above, especially the clean-URL footgun
@@ -162,6 +171,7 @@ Only `http` and `https` are recognised; any other value falls back to `https`, s
162
171
  **Cause**: the agent did not see `qase_attachment_upload`. Before 2.2.0 it was a discoverable tool, hidden from the tool list until `qase_discover_tools` was called, so the agent fell back to the `qase_api` escape hatch — which genuinely cannot send `multipart/form-data`.
163
172
 
164
173
  **Solution**:
174
+
165
175
  1. Update to 2.2.0 or later, where the upload tool is always listed: `npm update -g @qase/mcp-server` (the hosted connector always runs the latest version)
166
176
  2. On an older version, ask the agent to run `qase_discover_tools` with `"attachment"` first
167
177
  3. Pass the file as `file_base64`. `file_path` only works when the server runs on the same machine as the file — the hosted connector cannot read your filesystem
@@ -172,28 +182,39 @@ Only `http` and `https` are recognised; any other value falls back to `https`, s
172
182
  **Symptom**: `qase_review_*` tools are missing, or every call fails.
173
183
 
174
184
  **Solution**:
175
- 1. Review tools are discoverable — ask the agent to run `qase_discover_tools` with `"review"`
185
+
186
+ 1. Since 3.0.0 the review tools are listed from the start; on an older version ask the agent to run `qase_discover_tools` with `"review"`
176
187
  2. Enable **Test case review** in the project settings; without it every review endpoint rejects the request
177
188
  3. Approving, requesting changes, merging, and declining are **UI-only** — the public API has no endpoints for them, so no tool can perform them
178
189
  4. `reviewers` takes author UUIDs (or emails, which are resolved). The review's author cannot be its own reviewer, and the author is whoever owns the API token
179
190
 
180
- ## A discovered tool still isn't callable
191
+ ## A tool is missing from the client's list
192
+
193
+ **Symptom**: the client does not offer a tool this reference says exists.
194
+
195
+ **Cause**: before 3.0.0, most tools were hidden until `qase_discover_tools` activated them, and a client on a stateless HTTP connection was never told the list had changed. Since 3.0.0 every tool is listed from the first request and the list never changes while the server runs.
181
196
 
182
- **Symptom**: `qase_discover_tools` reports the tool as found and activated, but calling it fails inside the client — typically `TypeError: tools.mcp__qase__<tool_name> is not a function`, or the agent insisting the tool does not exist.
197
+ **Solution**: update to 3.0.0 or later (self-run: `npm update -g @qase/mcp-server`; the hosted connector always runs the latest version), then reconnect so the client re-reads `tools/list`. On an older version, call the same REST endpoint through `qase_api`, which was always listed.
183
198
 
184
- **Cause**: activation is a server-side state change, announced to the client with the `notifications/tools/list_changed` notification. Clients that build their tool list once when the session opens and never rebuild it on that notification keep dispatching against the list they cached at connect time, so the tool the server just switched on is missing from the client's own table. The server itself will run the tool fine — the call never reaches it.
199
+ ## A deletion says it was declined or cancelled, but nothing asked me
200
+
201
+ **Symptom**: deleting something answers `Action "qase_run_delete" declined by the user` or `the client cancelled the confirmation request`, and no confirmation prompt was ever shown.
202
+
203
+ **Cause**: destructive tools do not delete on the first call. The server answers it with a request for input — a confirmation prompt carrying the tool name and the exact arguments — and deletes only when the client sends back an acceptance. The server cannot draw that prompt; the client does. A client that receives the request and drops it instead of showing it produces a refusal the person never had a say in. Up to 3.0.0 a cancelled prompt was reported as "declined by the user", which read as though somebody had refused; a cancel now says it was cancelled.
185
204
 
186
205
  **Solution**:
187
- 1. Update to 2.6.0 or later: the tools the server's own instructions and core descriptions recommend — `qase_case_bulk_create`, `qase_suite_upsert`, `qase_run_complete` — are now core and listed from the start, so the common workflows never depend on discovery (self-run: `npm update -g @qase/mcp-server`; the hosted connector always runs the latest version)
188
- 2. 2.6.0 also fixes notification delivery on the HTTP transports, where only the most recently opened session used to be notified — if several sessions or clients share one server process, older sessions previously never heard about an activation at all
189
- 3. For a tool that is still discoverable, start a new session (or reconnect) after activating it — the fresh `tools/list` includes it
190
- 4. As a last resort, call the same REST endpoint through `qase_api`, which is core and always listed
206
+
207
+ 1. Check that your client supports confirmation prompts (MCP elicitation) and that none of its settings suppress them. A client that never declares the capability gets a refusal saying so instead of a prompt
208
+ 2. If the prompt appears but times out, answer it sooner — a confirmation stays answerable for 10 minutes, and an unanswered one refuses the call
209
+ 3. Running more than one replica, self-hosted? Set `QASE_MCP_REQUEST_STATE_KEY` to the same value on all of them — see [self-run.md](self-run.md#environment-variables). Without it the answer is verified by a different replica than the one that asked, and the deletion is refused
210
+ 4. Either way nothing was deleted. Retry and answer the prompt, or delete it in the Qase UI
191
211
 
192
212
  ## Tool Not Found
193
213
 
194
214
  **Error**: `Unknown tool: tool_name`
195
215
 
196
216
  **Solution**:
217
+
197
218
  1. Ensure you're using the latest version: `npm update -g @qase/mcp-server` (self-run) — the hosted connector always runs the latest version
198
219
  2. If upgrading from v1, tool names have changed — see [docs/migration.md](migration.md)
199
220
  3. Restart your MCP client after updating
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qase/mcp-server",
3
- "version": "2.7.4",
3
+ "version": "3.0.0",
4
4
  "mcpName": "io.qase/mcp-server",
5
5
  "description": "Official MCP server for Qase Test Management Platform",
6
6
  "type": "module",
@@ -67,10 +67,10 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@modelcontextprotocol/node": "^2.0.0",
71
- "@modelcontextprotocol/server": "^2.0.0",
72
- "@modelcontextprotocol/server-legacy": "^2.0.0",
73
- "axios": "^1.13.5",
70
+ "@modelcontextprotocol/node": "^2.1.1",
71
+ "@modelcontextprotocol/server": "^2.3.1",
72
+ "@modelcontextprotocol/server-legacy": "^2.3.1",
73
+ "axios": "^1.20.0",
74
74
  "express": "^5.2.1",
75
75
  "express-rate-limit": "^8.7.0",
76
76
  "form-data": "^4.0.5",
@@ -79,12 +79,11 @@
79
79
  "neverthrow": "^8.2.0",
80
80
  "npm": "^12.1.0",
81
81
  "qase-api-client": "^1.1.14",
82
- "zod": "^3.24.2",
83
- "zod-to-json-schema": "^3.24.3"
82
+ "zod": "^4.6.6"
84
83
  },
85
84
  "devDependencies": {
86
- "@modelcontextprotocol/client": "^2.0.0",
87
- "@modelcontextprotocol/core": "^2.0.0",
85
+ "@modelcontextprotocol/client": "^2.3.1",
86
+ "@modelcontextprotocol/core": "^2.3.1",
88
87
  "@types/express": "^4.17.21",
89
88
  "@types/jest": "^29.5.12",
90
89
  "@types/node": "^20.11.24",
package/server.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "url": "https://github.com/qase-tms/qase-mcp-server",
9
9
  "source": "github"
10
10
  },
11
- "version": "2.7.4",
11
+ "version": "3.0.0",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@qase/mcp-server",
16
- "version": "2.7.4",
16
+ "version": "3.0.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },