@qase/mcp-server 2.7.5 → 3.0.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/CHANGELOG.md +52 -0
- package/README.md +17 -11
- package/build/auth/mcp-guard.d.ts.map +1 -1
- package/build/auth/mcp-guard.js +1 -1
- package/build/auth/mcp-guard.js.map +1 -1
- package/build/cache/metrics.js +2 -0
- package/build/cache/metrics.js.map +1 -1
- package/build/index.js +27 -5
- package/build/index.js.map +1 -1
- package/build/operations-v2/composites/ci-report.js +3 -5
- package/build/operations-v2/composites/ci-report.js.map +1 -1
- package/build/operations-v2/composites/regression-run.js +2 -1
- package/build/operations-v2/composites/regression-run.js.map +1 -1
- package/build/operations-v2/composites/triage-defect.js +5 -7
- package/build/operations-v2/composites/triage-defect.js.map +1 -1
- package/build/operations-v2/escape/api.js +11 -4
- package/build/operations-v2/escape/api.js.map +1 -1
- package/build/operations-v2/index.d.ts +1 -0
- package/build/operations-v2/index.d.ts.map +1 -1
- package/build/operations-v2/index.js +1 -0
- package/build/operations-v2/index.js.map +1 -1
- package/build/operations-v2/meta/discover.d.ts +5 -4
- package/build/operations-v2/meta/discover.d.ts.map +1 -1
- package/build/operations-v2/meta/discover.js +13 -32
- package/build/operations-v2/meta/discover.js.map +1 -1
- package/build/operations-v2/meta/tool-help.d.ts +10 -0
- package/build/operations-v2/meta/tool-help.d.ts.map +1 -0
- package/build/operations-v2/meta/tool-help.js +42 -0
- package/build/operations-v2/meta/tool-help.js.map +1 -0
- package/build/operations-v2/qql/index.js +15 -9
- package/build/operations-v2/qql/index.js.map +1 -1
- package/build/operations-v2/read/get.js +2 -1
- package/build/operations-v2/read/get.js.map +1 -1
- package/build/operations-v2/read/project-context.js +5 -6
- package/build/operations-v2/read/project-context.js.map +1 -1
- package/build/operations-v2/write/attachments.js +16 -21
- package/build/operations-v2/write/attachments.js.map +1 -1
- package/build/operations-v2/write/case-fields.d.ts +26 -215
- package/build/operations-v2/write/case-fields.d.ts.map +1 -1
- package/build/operations-v2/write/case-fields.js +28 -24
- package/build/operations-v2/write/case-fields.js.map +1 -1
- package/build/operations-v2/write/cases-bulk.js +2 -1
- package/build/operations-v2/write/cases-bulk.js.map +1 -1
- package/build/operations-v2/write/cases.js +4 -3
- package/build/operations-v2/write/cases.js.map +1 -1
- package/build/operations-v2/write/custom-fields.js +13 -10
- package/build/operations-v2/write/custom-fields.js.map +1 -1
- package/build/operations-v2/write/defects.js +7 -9
- package/build/operations-v2/write/defects.js.map +1 -1
- package/build/operations-v2/write/environments.js +5 -5
- package/build/operations-v2/write/environments.js.map +1 -1
- package/build/operations-v2/write/external-issues.js +2 -2
- package/build/operations-v2/write/external-issues.js.map +1 -1
- package/build/operations-v2/write/milestones.js +6 -6
- package/build/operations-v2/write/milestones.js.map +1 -1
- package/build/operations-v2/write/plans.js +5 -5
- package/build/operations-v2/write/plans.js.map +1 -1
- package/build/operations-v2/write/projects.js +9 -8
- package/build/operations-v2/write/projects.js.map +1 -1
- package/build/operations-v2/write/results.js +7 -12
- package/build/operations-v2/write/results.js.map +1 -1
- package/build/operations-v2/write/reviews.js +18 -18
- package/build/operations-v2/write/reviews.js.map +1 -1
- package/build/operations-v2/write/runs.js +8 -6
- package/build/operations-v2/write/runs.js.map +1 -1
- package/build/operations-v2/write/shared-steps.js +5 -8
- package/build/operations-v2/write/shared-steps.js.map +1 -1
- package/build/operations-v2/write/suites.js +4 -3
- package/build/operations-v2/write/suites.js.map +1 -1
- package/build/server-instructions.d.ts +1 -1
- package/build/server-instructions.d.ts.map +1 -1
- package/build/server-instructions.js +4 -4
- package/build/server.d.ts.map +1 -1
- package/build/server.js +154 -104
- package/build/server.js.map +1 -1
- package/build/transports/body-limit.d.ts +9 -17
- package/build/transports/body-limit.d.ts.map +1 -1
- package/build/transports/body-limit.js +18 -2
- package/build/transports/body-limit.js.map +1 -1
- package/build/transports/rate-limit.d.ts +1 -1
- package/build/transports/rate-limit.js +1 -1
- package/build/transports/sse.js +1 -1
- package/build/transports/sse.js.map +1 -1
- package/build/transports/streamableHttp.d.ts.map +1 -1
- package/build/transports/streamableHttp.js +83 -171
- package/build/transports/streamableHttp.js.map +1 -1
- package/build/utils/auth-context.d.ts +30 -0
- package/build/utils/auth-context.d.ts.map +1 -1
- package/build/utils/auth-context.js +33 -0
- package/build/utils/auth-context.js.map +1 -1
- package/build/utils/errors.js +3 -3
- package/build/utils/errors.js.map +1 -1
- package/build/utils/protocol-telemetry.d.ts +62 -0
- package/build/utils/protocol-telemetry.d.ts.map +1 -0
- package/build/utils/protocol-telemetry.js +123 -0
- package/build/utils/protocol-telemetry.js.map +1 -0
- package/build/utils/registry.d.ts +28 -34
- package/build/utils/registry.d.ts.map +1 -1
- package/build/utils/registry.js +107 -102
- package/build/utils/registry.js.map +1 -1
- package/build/utils/request-state.d.ts +71 -0
- package/build/utils/request-state.d.ts.map +1 -0
- package/build/utils/request-state.js +108 -0
- package/build/utils/request-state.js.map +1 -0
- package/build/utils/server-context.d.ts +53 -16
- package/build/utils/server-context.d.ts.map +1 -1
- package/build/utils/server-context.js +147 -39
- package/build/utils/server-context.js.map +1 -1
- package/build/utils/validation.d.ts +12 -25
- package/build/utils/validation.d.ts.map +1 -1
- package/build/utils/validation.js +2 -2
- package/build/utils/validation.js.map +1 -1
- package/build/version.d.ts +1 -1
- package/build/version.js +1 -1
- package/docs/connect.md +23 -7
- package/docs/migration.md +182 -10
- package/docs/self-run.md +50 -7
- package/docs/tools.md +54 -60
- package/docs/troubleshooting.md +43 -16
- package/package.json +11 -12
- package/server.json +2 -2
|
@@ -36,7 +36,7 @@ export const ProjectCodeSchema = z
|
|
|
36
36
|
.min(2, 'Project code must be at least 2 characters')
|
|
37
37
|
.max(10, 'Project code must be at most 10 characters')
|
|
38
38
|
.regex(/^[A-Z0-9_]+$/, 'Project code must contain only uppercase letters, numbers, or underscores')
|
|
39
|
-
.describe('Project code
|
|
39
|
+
.describe('Project code, e.g. DEMO');
|
|
40
40
|
/**
|
|
41
41
|
* Schema for search query strings
|
|
42
42
|
*/
|
|
@@ -44,7 +44,7 @@ export const SearchSchema = z.string().min(1).max(255).optional().describe('Sear
|
|
|
44
44
|
/**
|
|
45
45
|
* Schema for entity IDs (positive integers)
|
|
46
46
|
*/
|
|
47
|
-
export const IdSchema = z.number().int().positive().describe('Entity ID
|
|
47
|
+
export const IdSchema = z.number().int().positive().describe('Entity ID');
|
|
48
48
|
/**
|
|
49
49
|
* Schema for hash identifiers (used by some entities like shared steps)
|
|
50
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,EAAE;SACV,QAAQ,CAAC,qDAAqD,CAAC;CACnE,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,4CAA4C,CAAC;KACpD,GAAG,CAAC,EAAE,EAAE,4CAA4C,CAAC;KACrD,KAAK,CACJ,cAAc,EACd,2EAA2E,CAC5E;KACA,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,EAAE;SACV,QAAQ,CAAC,qDAAqD,CAAC;CACnE,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,4CAA4C,CAAC;KACpD,GAAG,CAAC,EAAE,EAAE,4CAA4C,CAAC;KACrD,KAAK,CACJ,cAAc,EACd,2EAA2E,CAC5E;KACA,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAElG;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAE1E;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;KACvC,QAAQ,EAAE;KACV,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAA0B,MAAS;IAC/D,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,eAAe,CAA0B,MAAS;IAChE,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,iBAAiB;QACvB,GAAG,MAAM;KACV,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAuC,MAAS;IACzE,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC;AAC1B,CAAC"}
|
package/build/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "3.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/version.js
CHANGED
package/docs/connect.md
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
# Connect to the hosted Qase MCP
|
|
2
2
|
|
|
3
|
-
The quickest way to use Qase — no install and no API token. Connect to the Qase-hosted MCP server
|
|
3
|
+
The quickest way to use Qase — no install and no API token. Connect to the Qase-hosted MCP server and sign in with your Qase account. Any MCP client that supports remote servers (OAuth 2.1) works; the client handles the OAuth flow for you — Claude, Cursor, Codex, and VS Code are shown below.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Pick your endpoint
|
|
6
|
+
|
|
7
|
+
Qase's cloud runs in two regions, each with its own hosted MCP server. **Use the one your workspace lives on** — they are separate deployments, each backed by its own data and its own accounts, so the wrong URL cannot reach your projects.
|
|
8
|
+
|
|
9
|
+
| Your Qase workspace | MCP server URL |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `app.qase.io` (main cloud) | `https://mcp.qase.io/mcp` |
|
|
12
|
+
| `app-eu.qase.io` (EU cluster) | `https://mcp-eu.qase.io/mcp` |
|
|
13
|
+
|
|
14
|
+
Every example below uses the main-cloud URL. On the EU cluster, substitute `https://mcp-eu.qase.io/mcp` and change nothing else: the setup, the OAuth flow and the tools are identical. Sign-in goes to that region's own identity provider — `auth.qase.io` or `auth-eu.qase.io` — so you authenticate against the region holding your data, and attachments you upload stay there too.
|
|
15
|
+
|
|
16
|
+
A **dedicated instance** is not a region and has no hosted endpoint; [run the server yourself](self-run.md) and point it at your own domain.
|
|
17
|
+
|
|
18
|
+
> **Availability:** The hosted Qase MCP is available on **every paid plan**, in either region. Two situations call for [running the server yourself](self-run.md) instead:
|
|
6
19
|
>
|
|
7
|
-
> - **
|
|
8
|
-
> - **A dedicated instance** — the hosted
|
|
20
|
+
> - **The Free plan** — you can sign in, but tool calls are rejected with a plan error.
|
|
21
|
+
> - **A dedicated instance** — the hosted servers talk to Qase's own clouds, so neither can reach a dedicated deployment whatever your plan. Self-run points at your own domain via `QASE_API_DOMAIN`.
|
|
9
22
|
>
|
|
10
|
-
> Running the server yourself works on every plan
|
|
23
|
+
> Running the server yourself works on every plan, in both regions, and on dedicated instances.
|
|
11
24
|
|
|
12
25
|
Prefer to run the server yourself with your own `QASE_API_TOKEN`? See [Self-Run Guide (Local / stdio)](self-run.md).
|
|
13
26
|
|
|
@@ -18,6 +31,8 @@ Qase publishes an official **Qase Test Management** connector in Claude's direct
|
|
|
18
31
|
1. In Claude, open **Settings → Connectors** and find **Qase Test Management**.
|
|
19
32
|
2. Click **Connect** and complete the Qase sign-in when prompted.
|
|
20
33
|
|
|
34
|
+
The directory connector points at the main cloud. On the EU cluster, add it by URL instead — **Settings → Connectors → Add custom connector** — with `https://mcp-eu.qase.io/mcp`.
|
|
35
|
+
|
|
21
36
|
## Cursor
|
|
22
37
|
|
|
23
38
|
Add the hosted server by URL in `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):
|
|
@@ -69,10 +84,11 @@ Or run **MCP: Add Server** from the Command Palette (`⇧⌘P` / `Ctrl+Shift+P`)
|
|
|
69
84
|
|
|
70
85
|
## Other remote clients
|
|
71
86
|
|
|
72
|
-
Any MCP client that supports remote (HTTP) servers with OAuth 2.1 can connect the same way — point it at:
|
|
87
|
+
Any MCP client that supports remote (HTTP) servers with OAuth 2.1 can connect the same way — point it at the URL for your region:
|
|
73
88
|
|
|
74
89
|
```
|
|
75
|
-
https://mcp.qase.io/mcp
|
|
90
|
+
https://mcp.qase.io/mcp # main cloud
|
|
91
|
+
https://mcp-eu.qase.io/mcp # EU cluster
|
|
76
92
|
```
|
|
77
93
|
|
|
78
94
|
In every case the hosted server authenticates via your Qase login (OAuth) — no local installation or `QASE_API_TOKEN` needed.
|
package/docs/migration.md
CHANGED
|
@@ -1,6 +1,178 @@
|
|
|
1
1
|
# Migration Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Three migrations are covered here: [2.x → 3.0.0](#2x--300) — the protocol, deployment and tool-API changes in the current release — the smaller [2.0.x → 2.1.0](#20x--210) change to `qase_triage_defect`, and the v1 → v2 tool rename (the bulk of this document).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 2.x → 3.0.0
|
|
8
|
+
|
|
9
|
+
3.0.0 changes the revision of MCP the server speaks and removes the sessions it used to keep. **No tool was renamed, and no tool argument changed** — prompts, workflows and automation that call tools by name keep working untouched. What changes is the protocol underneath, three response shapes, and one deployment requirement.
|
|
10
|
+
|
|
11
|
+
Start with the row that describes you:
|
|
12
|
+
|
|
13
|
+
| You | What you have to do |
|
|
14
|
+
|---|---|
|
|
15
|
+
| Use the hosted server at `mcp.qase.io` | Nothing. Read [What every user sees](#what-every-user-sees). |
|
|
16
|
+
| Run the server over stdio (`npx @qase/mcp-server`) | Update the package. Nothing to configure. |
|
|
17
|
+
| Self-host the HTTP server, one replica | Update the image. Nothing to configure. |
|
|
18
|
+
| Self-host the HTTP server, more than one replica | **Set `QASE_MCP_REQUEST_STATE_KEY`** before deploying — see [Required for multiple replicas](#required-for-multiple-replicas). |
|
|
19
|
+
| Build a product on top of the tool API | Read [Changes to the tool API](#changes-to-the-tool-api) — three shapes changed. |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### What every user sees
|
|
24
|
+
|
|
25
|
+
#### Every tool is in your list from the first request
|
|
26
|
+
|
|
27
|
+
Twenty-four tools used to stay out of the tool list until `qase_discover_tools` switched them on. That is gone: all 42 tools are listed immediately, and `qase_discover_tools` stays as a *search* over the catalogue for when the right tool's name is not known. There is no activation step and no `notifications/tools/list_changed` to wait for.
|
|
28
|
+
|
|
29
|
+
Nothing to change on your side. If you had instructions in a prompt telling the agent to "run discovery first", you can delete them — though leaving them in is harmless, the search still works.
|
|
30
|
+
|
|
31
|
+
Tool descriptions in the list are now deliberately short. The full documentation of a tool — argument semantics, limits, what cannot be undone — is served by the new **`qase_tool_help`** tool, which takes a single `tool` argument. Together with schemas generated natively by zod 4, this took the tool list from 19.9k to 14.3k tokens, so every request to the model carries about 28% less of it.
|
|
32
|
+
|
|
33
|
+
#### Deleting takes two round trips
|
|
34
|
+
|
|
35
|
+
A destructive tool (`qase_run_delete`, `qase_case_delete`, a `DELETE` through `qase_api`, and the rest) no longer waits inside the call for your answer. It returns a request for confirmation, your client shows the prompt, and the call is retried carrying the answer. Most MCP clients do this for you and you see only the prompt.
|
|
36
|
+
|
|
37
|
+
The window is **ten minutes**, and the confirmation is bound to the caller, the tool, and the exact arguments it was shown for — so a confirmation for one deletion cannot be replayed against another.
|
|
38
|
+
|
|
39
|
+
**If your client never shows you a prompt, it cannot delete.** This is not new in 3.0.0 — 2.x refused the same clients — but the explanation is now specific about which of the two requirements is missing:
|
|
40
|
+
|
|
41
|
+
- the client negotiates MCP 2026-07-28, **or**
|
|
42
|
+
- it declares the `elicitation` capability over a long-lived connection (stdio, SSE).
|
|
43
|
+
|
|
44
|
+
Measured on the wire, **Claude Desktop has neither**: it negotiates 2025-11-25 and declares no elicitation. Deletions from Claude Desktop are refused with an explanation; use the Qase UI or a client such as Claude Code. Everything that is not a deletion works normally there.
|
|
45
|
+
|
|
46
|
+
One message changed meaning. A client that receives the confirmation request and silently drops it is now reported as a **cancellation**, not a refusal. Saying "declined by the user" about a prompt nobody was ever shown sent testers looking for deletions they had never refused.
|
|
47
|
+
|
|
48
|
+
#### What a 2025-era client loses over HTTP
|
|
49
|
+
|
|
50
|
+
This is the one genuine regression. Confirming a deletion on the old revision needs the capabilities a client declares during `initialize`, and on the new stateless HTTP endpoint such a request never carried one. So:
|
|
51
|
+
|
|
52
|
+
- **2025-era client over Streamable HTTP or SSE-over-HTTP → cannot delete.** The call is refused with an explanation; nothing is deleted. Reads and writes are unaffected.
|
|
53
|
+
- **2025-era client over stdio or on an open SSE stream → unchanged.** The connection is long-lived, the client's capabilities are known, and confirmation works exactly as it did in 2.x.
|
|
54
|
+
- **A stdio client that itself negotiates 2026-07-28** gets the two-round-trip flow above rather than the old single push.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### Required for multiple replicas
|
|
59
|
+
|
|
60
|
+
**Set `QASE_MCP_REQUEST_STATE_KEY` before deploying more than one replica.**
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
QASE_MCP_REQUEST_STATE_KEY=<a shared random string of 32+ bytes>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
It is the HMAC key that signs a pending confirmation. There are no sessions any more, so the request that asks for confirmation and the request that carries the answer can land on different replicas; without a shared key the second replica cannot verify what the first one minted, and the deletion is refused.
|
|
67
|
+
|
|
68
|
+
- It must be **at least 32 bytes**, or the server refuses to start.
|
|
69
|
+
- It must be **identical on every replica**.
|
|
70
|
+
- **A single replica needs nothing** — one is generated at startup and logged as such.
|
|
71
|
+
|
|
72
|
+
Nothing is ever deleted unconfirmed if you forget it. Destructive tools simply stop working until it is set. Generate one with `openssl rand -hex 32`.
|
|
73
|
+
|
|
74
|
+
### The HTTP endpoint has no sessions
|
|
75
|
+
|
|
76
|
+
| | 2.x | 3.0.0 |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| `mcp-session-id` response header | issued on initialize | never issued |
|
|
79
|
+
| `mcp-session-id` request header | required on follow-ups | accepted and ignored |
|
|
80
|
+
| `GET` on the MCP endpoint | opened the SSE stream | `405` |
|
|
81
|
+
| `DELETE` on the MCP endpoint | ended the session | `405` |
|
|
82
|
+
| `Access-Control-Allow-Methods` | `GET, POST, DELETE, OPTIONS` | `GET, POST, OPTIONS` |
|
|
83
|
+
| Load-balancer session affinity | required | not needed |
|
|
84
|
+
|
|
85
|
+
`mcp-session-id` is still accepted as a *request* header on purpose, so a client that still sends one is not broken by a CORS preflight.
|
|
86
|
+
|
|
87
|
+
Two practical consequences:
|
|
88
|
+
|
|
89
|
+
- **Turn off sticky sessions / session affinity** in front of the server. They are no longer needed, and spreading requests evenly is now strictly better.
|
|
90
|
+
- **Check your health probes.** Anything that probed the MCP endpoint with `GET` now gets `405`. Use `/health` instead.
|
|
91
|
+
|
|
92
|
+
The SSE transport is unchanged and still stateful: it keeps a long-lived stream, and the integration marker it captured when the stream opened is still reused for that stream.
|
|
93
|
+
|
|
94
|
+
### Removed environment variable
|
|
95
|
+
|
|
96
|
+
**`QASE_MCP_SESSION_TTL_MINUTES`** tuned how long an idle HTTP session was kept in memory before eviction. There are no sessions left to evict, so it is read nowhere. Leaving it in a deployment is harmless — it is simply ignored — but you can drop it whenever convenient.
|
|
97
|
+
|
|
98
|
+
### Integration marker
|
|
99
|
+
|
|
100
|
+
On **Streamable HTTP**, `X-Qase-Integration` and `?integration=` are now read on the request that carries them, and never attributed to the next one. In 2.x the marker was captured once when a session opened and reused for the session's lifetime, which meant a marker from one caller could be attributed to another's calls on a shared connection.
|
|
101
|
+
|
|
102
|
+
Precedence is unchanged: request header → query parameter → `QASE_MCP_INTEGRATION`. On SSE, also unchanged: request header → the value captured when the stream opened → `QASE_MCP_INTEGRATION`.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Changes to the tool API
|
|
107
|
+
|
|
108
|
+
For anyone parsing `tools/list` or a tool's result rather than letting an agent read it.
|
|
109
|
+
|
|
110
|
+
#### `qase_discover_tools` dropped `activated`
|
|
111
|
+
|
|
112
|
+
Nothing is hidden any more, so there is nothing to activate.
|
|
113
|
+
|
|
114
|
+
```diff
|
|
115
|
+
{
|
|
116
|
+
"found": 5,
|
|
117
|
+
- "activated": 5,
|
|
118
|
+
"tools": [{ "name": "...", "description": "...", "destructive": false }]
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`found` and `tools` are unchanged. In 2.x the `activated` count was unreliable anyway — it counted tools that were already visible, so a search that turned nothing on could still report `activated: 5`.
|
|
123
|
+
|
|
124
|
+
#### `outputSchema` is no longer sent in `tools/list`
|
|
125
|
+
|
|
126
|
+
No client validated results against it, and its one internal job — deciding whether to attach `structuredContent` — is now done for every object result. So **`structuredContent` is attached more often than before**, not less. If you validated against the advertised `outputSchema`, that schema is gone; read the result instead.
|
|
127
|
+
|
|
128
|
+
#### Annotations omit hints equal to the spec default
|
|
129
|
+
|
|
130
|
+
The wire now carries only the annotation hints that *differ* from the MCP specification's defaults. The default for `destructiveHint` is **`true`**, so for a deletion tool the hint is now **absent**:
|
|
131
|
+
|
|
132
|
+
```diff
|
|
133
|
+
// qase_run_delete
|
|
134
|
+
-"annotations": { "readOnlyHint": false, "destructiveHint": true, "idempotentHint": true, "openWorldHint": true }
|
|
135
|
+
+"annotations": { "idempotentHint": true }
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Per the specification, an absent `destructiveHint` means destructive. Code that tested `annotations.destructiveHint === true` to flag a dangerous tool will now treat every deletion as safe.
|
|
139
|
+
|
|
140
|
+
```diff
|
|
141
|
+
-const destructive = tool.annotations?.destructiveHint === true;
|
|
142
|
+
+const destructive = tool.annotations?.destructiveHint !== false;
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The same applies to `openWorldHint` (default `true`, so absence means open-world) and, inverted, to `readOnlyHint` and `idempotentHint` (default `false`, so absence means not read-only / not idempotent).
|
|
146
|
+
|
|
147
|
+
#### New tool: `qase_tool_help`
|
|
148
|
+
|
|
149
|
+
```json
|
|
150
|
+
{ "tool": "qase_case_upsert" }
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Returns the full documentation of one tool. The text is the same documentation that used to live in the tool's `description`; it moved so that 28 KB of traps and field semantics stop being sent to the model on every single request.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### For client implementers
|
|
158
|
+
|
|
159
|
+
If you wrote your own MCP client rather than using the SDK, the deletion flow is the only thing that needs code:
|
|
160
|
+
|
|
161
|
+
1. Call the destructive tool as usual.
|
|
162
|
+
2. The server answers with an **input-required** result carrying one elicitation request and an opaque `requestState`.
|
|
163
|
+
3. Show the prompt. The message names the tool and every argument.
|
|
164
|
+
4. Retry the same `tools/call`, carrying the user's `accept` / `decline` / `cancel` and echoing `requestState` back unchanged.
|
|
165
|
+
|
|
166
|
+
The `requestState` is signed by the server and verified before the handler runs; it is opaque, and modifying it only gets the call refused. It expires ten minutes after it was minted.
|
|
167
|
+
|
|
168
|
+
Declare the `elicitation` capability. A client that does not is refused *before* the request is sent, by name, rather than failing with a protocol error from inside the SDK.
|
|
169
|
+
|
|
170
|
+
### New metrics
|
|
171
|
+
|
|
172
|
+
Two counters on `/metrics`, for anyone running the server themselves:
|
|
173
|
+
|
|
174
|
+
- `qase_mcp_tool_calls_total{tool}` — calls per tool.
|
|
175
|
+
- `qase_mcp_requests_total{protocol,client}` — requests per protocol revision and client name. A 2025-era request is counted as `protocol="legacy"`, with the client named only where an `initialize` established it. The client label is normalised and capped at 20 distinct values per process.
|
|
4
176
|
|
|
5
177
|
---
|
|
6
178
|
|
|
@@ -59,16 +231,16 @@ The API has always required both. They were optional in the tool schema, which m
|
|
|
59
231
|
|
|
60
232
|
## Tool mapping table
|
|
61
233
|
|
|
62
|
-
All 83 v1 tools mapped to their v2
|
|
234
|
+
All 83 v1 tools mapped to their equivalents in the **current** tool set, not the one v2.0.0 shipped with. Several rows that used to send you to the `qase_api` escape hatch now name a dedicated tool that has been added since — projects, external issue links and custom fields among them. Where a row still names `qase_api`, no dedicated tool covers that endpoint yet.
|
|
63
235
|
|
|
64
236
|
### Projects
|
|
65
237
|
|
|
66
238
|
| v1 tool | v2 equivalent | Notes |
|
|
67
239
|
|---|---|---|
|
|
68
240
|
| `list_projects` | `qase_project_context` | Returns project + suites + milestones + envs + custom fields + users in one call |
|
|
69
|
-
| `get_project` | `
|
|
70
|
-
| `create_project` | `
|
|
71
|
-
| `delete_project` | `
|
|
241
|
+
| `get_project` | `qase_project_context` | `qase_get` has no `project` entity. Context returns the project with its suites, milestones, environments, custom fields and users |
|
|
242
|
+
| `create_project` | `qase_project_create` | Code must be unique in the workspace; there is no update endpoint afterwards |
|
|
243
|
+
| `delete_project` | `qase_project_delete` | Takes everything in the project with it, with no trash to recover from |
|
|
72
244
|
| `grant_project_access` | `qase_api` | Use escape hatch: `POST /project/{code}/access` |
|
|
73
245
|
| `revoke_project_access` | `qase_api` | Use escape hatch: `DELETE /project/{code}/access` |
|
|
74
246
|
|
|
@@ -82,8 +254,8 @@ All 83 v1 tools mapped to their v2 equivalents.
|
|
|
82
254
|
| `update_case` | `qase_case_upsert` (include `id`) | Include `id` to update existing case |
|
|
83
255
|
| `delete_case` | `qase_case_delete` | — |
|
|
84
256
|
| `bulk_create_cases` | `qase_case_bulk_create` | Same shape: `cases` array, up to 100 per call |
|
|
85
|
-
| `attach_external_issue` | `
|
|
86
|
-
| `detach_external_issue` | `
|
|
257
|
+
| `attach_external_issue` | `qase_external_issue_link` with `action="link"` | Jira Cloud and Jira Server only; works on cases and runs |
|
|
258
|
+
| `detach_external_issue` | `qase_external_issue_link` with `action="unlink"` | Same tool, the other `action` |
|
|
87
259
|
|
|
88
260
|
### Test Suites
|
|
89
261
|
|
|
@@ -199,9 +371,9 @@ All 83 v1 tools mapped to their v2 equivalents.
|
|
|
199
371
|
|---|---|---|
|
|
200
372
|
| `list_custom_fields` | `qase_project_context` | Custom fields are included in context response |
|
|
201
373
|
| `get_custom_field` | `qase_get` with `entity="custom_field"` | — |
|
|
202
|
-
| `create_custom_field` | `
|
|
203
|
-
| `update_custom_field` | `
|
|
204
|
-
| `delete_custom_field` | `
|
|
374
|
+
| `create_custom_field` | `qase_custom_field_upsert` (omit `id`) | `entity` and `type` are required on create and fixed forever |
|
|
375
|
+
| `update_custom_field` | `qase_custom_field_upsert` (include `id`) | `entity` and `type` cannot be changed |
|
|
376
|
+
| `delete_custom_field` | `qase_custom_field_delete` | Workspace-wide: it disappears from every project, with the values entered for it |
|
|
205
377
|
|
|
206
378
|
### System Fields
|
|
207
379
|
|
package/docs/self-run.md
CHANGED
|
@@ -70,19 +70,52 @@ Rules:
|
|
|
70
70
|
- **The name must be on the allowlist** in [`src/utils/integration-marker.ts`](../src/utils/integration-marker.ts) (`ALLOWED_INTEGRATIONS`). This bounds the cardinality of the analytics dimension, so an unlisted name is ignored entirely and nothing is sent. To add your integration, open a PR adding it to that array.
|
|
71
71
|
- A malformed or unlisted marker is dropped silently; the API call itself still succeeds.
|
|
72
72
|
|
|
73
|
-
Over HTTP transports the marker can also travel per request instead of per process — send an `X-Qase-Integration: <name>/<version>` header, or add `?integration=<name>/<version>` to the MCP endpoint URL
|
|
73
|
+
Over HTTP transports the marker can also travel per request instead of per process — send an `X-Qase-Integration: <name>/<version>` header, or add `?integration=<name>/<version>` to the MCP endpoint URL. The query parameter is the fallback for clients that do not pass custom headers through.
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
On **Streamable HTTP**, the marker is read fresh on every single request: a marker on one call is never attributed to the next. Precedence: request header → query parameter → `QASE_MCP_INTEGRATION`.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
On the (deprecated) **SSE** transport, the marker is captured once, when the `/sse` stream opens, and reused for every message posted on that stream afterwards — a header sent on an individual `/messages` POST can still override it for that one call, but there is no per-request query-parameter fallback once the stream is open. Precedence there is: request header → the value captured when the stream opened → `QASE_MCP_INTEGRATION`.
|
|
78
|
+
|
|
79
|
+
### Running more than one replica
|
|
80
|
+
|
|
81
|
+
Two pieces of state used to live inside a single process. From 3.0.0 both can be shared, and on a
|
|
82
|
+
multi-replica deployment both **must** be, because there are no sessions any more — consecutive
|
|
83
|
+
requests from the same client land on whichever replica the load balancer picks.
|
|
78
84
|
|
|
79
85
|
```bash
|
|
86
|
+
# Required when running more than one replica: the HMAC key that signs a pending
|
|
87
|
+
# destructive-action confirmation. At least 32 bytes, identical on every replica.
|
|
88
|
+
QASE_MCP_REQUEST_STATE_KEY=<a shared random string of 32+ bytes>
|
|
89
|
+
|
|
90
|
+
# Optional: share the L2 cache across replicas.
|
|
91
|
+
QASE_MCP_REDIS_URL=redis://host:6379
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`QASE_MCP_REQUEST_STATE_KEY` is what makes a confirmation survive the trip through the client. The
|
|
95
|
+
server asks, the client answers, and the answer comes back carrying server-minted state that is
|
|
96
|
+
verified before anything is deleted. Without a shared key each replica generates its own at startup,
|
|
97
|
+
so a confirmation minted by one replica fails verification on another and the deletion is refused —
|
|
98
|
+
safe, but destructive tools stop working. A single replica needs nothing set.
|
|
99
|
+
|
|
100
|
+
`QASE_MCP_REDIS_URL` is optional: it shares the response cache between replicas so a repeated read is served from Valkey rather than from Qase again.
|
|
101
|
+
|
|
102
|
+
### Other Regions and Custom Domains
|
|
103
|
+
|
|
104
|
+
`QASE_API_DOMAIN` defaults to `api.qase.io`, which is Qase's main cloud. Point it elsewhere when your workspace is not there:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# EU cluster — workspaces on app-eu.qase.io
|
|
108
|
+
QASE_API_DOMAIN=api-eu.qase.io
|
|
109
|
+
|
|
110
|
+
# Enterprise dedicated instance
|
|
80
111
|
QASE_API_DOMAIN=api-yourcompany.qase.io
|
|
81
112
|
```
|
|
82
113
|
|
|
83
|
-
|
|
114
|
+
Issue the token from the workspace you are naming: a token is valid only in the region that minted it, and one from the main cloud will be rejected by the EU API. The EU token page is <https://app-eu.qase.io/user/api/token>.
|
|
115
|
+
|
|
116
|
+
`QASE_API_DOMAIN` takes the domain only — no scheme, no path. `https://api-eu.qase.io` or `api-eu.qase.io/v1` are rejected with an error.
|
|
84
117
|
|
|
85
|
-
|
|
118
|
+
Both Qase clouds also offer a hosted connector, so self-run is a choice there rather than a requirement — see [Pick your endpoint](connect.md#pick-your-endpoint). On a **dedicated instance** self-run is the only option: the hosted servers serve Qase's own clouds only, regardless of plan.
|
|
86
119
|
|
|
87
120
|
### Self-Hosted Deployments over Plain HTTP
|
|
88
121
|
|
|
@@ -293,7 +326,7 @@ npm run start:stdio
|
|
|
293
326
|
### SSE Transport
|
|
294
327
|
|
|
295
328
|
> **Deprecated.** The SSE transport was deprecated in the MCP specification on
|
|
296
|
-
> 2025-03-26 and will be removed in
|
|
329
|
+
> 2025-03-26 and will be removed in a future release. Use
|
|
297
330
|
> `--transport streamable-http` instead.
|
|
298
331
|
|
|
299
332
|
Server-Sent Events for web-based clients:
|
|
@@ -309,7 +342,7 @@ Clients must send a bearer token — see [Security of network transports](#secur
|
|
|
309
342
|
|
|
310
343
|
### Streamable HTTP Transport
|
|
311
344
|
|
|
312
|
-
Full HTTP-based transport
|
|
345
|
+
Full HTTP-based transport — there is no session; every request is served on its own:
|
|
313
346
|
|
|
314
347
|
```bash
|
|
315
348
|
npm run start:http
|
|
@@ -320,6 +353,8 @@ npm run start:http
|
|
|
320
353
|
|
|
321
354
|
Clients must send a bearer token — see [Security of network transports](#security-of-network-transports).
|
|
322
355
|
|
|
356
|
+
**Deleting anything requires a modern client.** Destructive tools (`qase_case_delete` and the rest) are confirmed through a multi-round-trip exchange: the first call returns a request for input instead of deleting anything, and the client must retry with the answer. That round trip needs capabilities a client declares during `initialize`, which only a client that negotiates the **2026-07-28** revision of MCP provides. A client still on the 2025-11-25 revision — the common case on a stateless HTTP connection — cannot complete it, so its deletion is refused with an explanation naming the two ways out: use a client that negotiates 2026-07-28, or delete in the Qase UI. This is specific to the HTTP transports; stdio and SSE are long-lived connections where confirmation always works, though a stdio client that itself negotiates 2026-07-28 goes through the same round trip rather than the old single-call flow.
|
|
357
|
+
|
|
323
358
|
### Custom Configuration
|
|
324
359
|
|
|
325
360
|
```bash
|
|
@@ -344,6 +379,14 @@ Metrics include:
|
|
|
344
379
|
- `qase_mcp_cache_hits_total` / `qase_mcp_cache_misses_total` - Cache hit/miss rates by tier (l1/l2)
|
|
345
380
|
- `qase_mcp_cache_errors_total` - Cache errors by tier
|
|
346
381
|
- `qase_mcp_circuit_breaker_state` - Redis circuit breaker state (0=closed, 1=half_open, 2=open)
|
|
382
|
+
- `qase_mcp_requests_total` - Requests served, labelled by `protocol` (the revision the client
|
|
383
|
+
negotiated, e.g. `2026-07-28`, or `legacy` for 2025-11-25) and `client` (the client's own name).
|
|
384
|
+
This is what tells you whether anyone still needs the older protocol revision before it is
|
|
385
|
+
dropped. A 2025-era client reaches a stateless HTTP request without ever identifying itself, so
|
|
386
|
+
it is counted as `client="unknown"`; on stdio and SSE the name comes from the connection's
|
|
387
|
+
`initialize`. The number of distinct client names is capped at 20 per process — the label comes
|
|
388
|
+
from the wire, and past the cap everything new is counted as `client="other"`.
|
|
389
|
+
- `qase_mcp_tool_calls_total` - Tool calls by tool name
|
|
347
390
|
|
|
348
391
|
> **Note:** This page covers running the server yourself with your own `QASE_API_TOKEN` (self-run). It does not cover operating the hosted OAuth proxy — that is internal operator documentation, not part of this guide.
|
|
349
392
|
|