@qase/mcp-server 3.0.0 → 3.0.2
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 +12 -0
- package/README.md +13 -7
- package/build/operations-v2/write/projects.js +5 -4
- package/build/operations-v2/write/projects.js.map +1 -1
- package/build/utils/auth-context.d.ts +5 -0
- package/build/utils/auth-context.d.ts.map +1 -1
- package/build/utils/auth-context.js +7 -0
- package/build/utils/auth-context.js.map +1 -1
- package/build/utils/errors.d.ts.map +1 -1
- package/build/utils/errors.js +25 -5
- package/build/utils/errors.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 +10 -4
- package/docs/troubleshooting.md +14 -8
- package/package.json +4 -4
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.0.2]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **A rejected OAuth token now tells the user to reconnect, not to check `QASE_API_TOKEN`.** When the hosted connector or an MCP gateway calls a tool with a per-request Bearer token that the Qase API rejects with 401 (the token expired or was revoked), the error and its suggestion now say to reconnect or re-authorize the Qase connector in the MCP client or gateway. A self-run server using `QASE_API_TOKEN` keeps the existing advice.
|
|
13
|
+
|
|
14
|
+
## [3.0.1]
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **The hosted connector is open to every paid plan, not Enterprise only.** When a workspace on the Free plan calls a tool through `https://mcp.qase.io/mcp` or `https://mcp-eu.qase.io/mcp`, the plan refusal now tells the model the connector needs a paid plan, rather than claiming it is Enterprise-only — which after the rollout would send paying customers off to buy an upgrade they do not need. The README, the connect guide and the troubleshooting entry say the same. Running the server yourself with `QASE_API_TOKEN` still works on every plan, Free included.
|
|
19
|
+
|
|
8
20
|
## [3.0.0]
|
|
9
21
|
|
|
10
22
|
### Required deployment step
|
package/README.md
CHANGED
|
@@ -28,13 +28,13 @@ The Qase MCP Server lets AI assistants (Claude, Cursor, Codex, and any other MCP
|
|
|
28
28
|
|
|
29
29
|
**Features:**
|
|
30
30
|
|
|
31
|
-
- **40 task-oriented tools** (
|
|
31
|
+
- **40 task-oriented tools** (42 total, with `qase_discover_tools` and `qase_tool_help`) — consolidated from 83 v1 tools for lower token usage and better LLM accuracy
|
|
32
32
|
- **Composite tools** — multi-step workflows in a single call: CI reporting, defect triage, regression run setup
|
|
33
33
|
- **QQL support** — Qase Query Language for advanced searches across cases, runs, results, defects, and plans
|
|
34
34
|
- **Project context bootstrap** — one call returns full project structure (suites, milestones, environments, users, custom fields)
|
|
35
35
|
- **Test case review** — propose new cases or changes for review, assign reviewers, and track status (approving and merging remain UI-only)
|
|
36
36
|
- **Short descriptions, documentation on demand** — every tool is listed from the first request; `qase_tool_help` returns a tool's full documentation when the agent first reaches for it, and `qase_discover_tools` searches the catalogue by task
|
|
37
|
-
- **Hosted or self-run** — connect to `https://mcp.qase.io/mcp` with just your Qase login, or run the server locally with your own API token
|
|
37
|
+
- **Hosted or self-run** — connect to `https://mcp.qase.io/mcp` (or `https://mcp-eu.qase.io/mcp` on the EU cluster) with just your Qase login, or run the server locally with your own API token
|
|
38
38
|
- **Tenant-safe caching & HTTP resilience** — two-tier cache (in-memory + optional Redis), connection pooling, retry with backoff
|
|
39
39
|
- **Escape hatch** — direct REST API access for any endpoint via `qase_api`
|
|
40
40
|
|
|
@@ -56,9 +56,11 @@ See [Tools](#tools) and [docs/tools.md](docs/tools.md) for the full reference.
|
|
|
56
56
|
|
|
57
57
|
No install, no API token — connect to the Qase-hosted server and sign in with your Qase account.
|
|
58
58
|
|
|
59
|
-
> **Note:** The hosted Qase MCP
|
|
59
|
+
> **Note:** The hosted Qase MCP is available on **every paid plan**. On the Free plan, or on a dedicated instance, [run the server yourself](#run-it-yourself) with your own API token — that works everywhere.
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
> **Pick the URL for your region:** `https://mcp.qase.io/mcp` for the main cloud (`app.qase.io`), `https://mcp-eu.qase.io/mcp` for the EU cluster (`app-eu.qase.io`). The examples below use the main cloud; on the EU cluster substitute the EU URL and change nothing else.
|
|
62
|
+
|
|
63
|
+
- **Claude** — open **Settings → Connectors**, find **Qase Test Management**, click **Connect**. (The directory connector is main-cloud; on the EU cluster add `https://mcp-eu.qase.io/mcp` as a custom connector.)
|
|
62
64
|
- **Cursor** — add `{"mcpServers": {"qase": {"url": "https://mcp.qase.io/mcp"}}}` to `.cursor/mcp.json`.
|
|
63
65
|
- **Codex** — add the URL `https://mcp.qase.io/mcp` in **Settings → MCPs → Add server**, or configure `~/.codex/config.toml` for the CLI.
|
|
64
66
|
- **VS Code** — add `{"servers": {"qase": {"type": "http", "url": "https://mcp.qase.io/mcp"}}}` to `.vscode/mcp.json`, or run **MCP: Add Server**.
|
|
@@ -88,9 +90,13 @@ QASE_MCP_INTEGRATION=quality-supervisor/1.4.0 # <name>/<version>, version opti
|
|
|
88
90
|
|
|
89
91
|
The name must be on the allowlist in [`src/utils/integration-marker.ts`](src/utils/integration-marker.ts) — add yours in a PR. Anything unlisted or malformed is ignored, and the API call still succeeds. HTTP transports also accept the marker per request (`X-Qase-Integration` header or `?integration=`). Details: **[docs/self-run.md](docs/self-run.md#integration-marker-for-integration-authors)**.
|
|
90
92
|
|
|
91
|
-
## Upgrading
|
|
93
|
+
## Upgrading
|
|
94
|
+
|
|
95
|
+
**From 2.x to 3.0.0:** no tool was renamed and no argument changed, so prompts and automation keep working. What changed is the protocol underneath — the server speaks MCP 2026-07-28, sessions are gone, every tool is listed from the first request, and deleting takes two round trips. Self-hosting more than one replica now requires `QASE_MCP_REQUEST_STATE_KEY`.
|
|
96
|
+
|
|
97
|
+
**From v1 to v2:** v2 consolidated 83 v1 tools into **29 task-oriented tools** (30 total, including a discovery tool), and has since grown to 40 (42 total). Tool names and response shapes have changed.
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
Both upgrades, with the complete v1 → v2 tool mapping table and before/after examples: **[docs/migration.md](docs/migration.md)**.
|
|
94
100
|
|
|
95
101
|
## Tools
|
|
96
102
|
|
|
@@ -113,7 +119,7 @@ Full tool-by-tool reference with parameters: **[docs/tools.md](docs/tools.md)**.
|
|
|
113
119
|
- **[docs/self-run.md](docs/self-run.md)** — install and run the server yourself (config, clients, transports)
|
|
114
120
|
- **[docs/tools.md](docs/tools.md)** — full tool reference, groups, and the discovery model
|
|
115
121
|
- **[docs/troubleshooting.md](docs/troubleshooting.md)** — auth, OAuth/connector, and SSL issues
|
|
116
|
-
- **[docs/migration.md](docs/migration.md)** — v1 → v2 tool mapping
|
|
122
|
+
- **[docs/migration.md](docs/migration.md)** — upgrade guides: 2.x → 3.0.0, and the v1 → v2 tool mapping
|
|
117
123
|
|
|
118
124
|
## Contributing
|
|
119
125
|
|
|
@@ -6,7 +6,7 @@ import { ProjectCodeSchema } from '../../utils/validation.js';
|
|
|
6
6
|
const CreateSchema = z
|
|
7
7
|
.object({
|
|
8
8
|
title: z.string().min(1).max(255).describe('Project title'),
|
|
9
|
-
code: ProjectCodeSchema.describe('Project code — unique per workspace,
|
|
9
|
+
code: ProjectCodeSchema.describe('Project code — unique per workspace, 2 to 10 characters of uppercase letters, digits or underscores'),
|
|
10
10
|
description: z.string().optional().describe('Free-form description of the project'),
|
|
11
11
|
access: z
|
|
12
12
|
.enum(['all', 'group', 'none'])
|
|
@@ -48,9 +48,10 @@ async function del(args) {
|
|
|
48
48
|
toolRegistry.register({
|
|
49
49
|
name: 'qase_project_create',
|
|
50
50
|
title: 'Create project',
|
|
51
|
-
description: 'Create a project. The code must be unique
|
|
52
|
-
help: 'Create a new project. The code
|
|
53
|
-
'
|
|
51
|
+
description: 'Create a project. The code must be unique in the workspace, and there is no update endpoint afterwards — title, code and access cannot be changed through the API, so choose them deliberately. Read an existing project with qase_project_context. Cost: one API call, about 1.5s.',
|
|
52
|
+
help: 'Create a new project. The code is what every other tool takes as `code`: 2 to 10 characters ' +
|
|
53
|
+
'of uppercase letters, digits or underscores, unique in the workspace. A date or counter ' +
|
|
54
|
+
'suffix is fine — "RELEASE24" and "SMOKE_01" are both valid. ' +
|
|
54
55
|
'Optional: description, access level ("all", "group" with a group hash, or "none"), and ' +
|
|
55
56
|
'settings. There is no update endpoint for a project: the title, code and access cannot be ' +
|
|
56
57
|
'changed through the API afterwards, so choose them deliberately. Read an existing project ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations-v2/write/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC3D,IAAI,EAAE,iBAAiB,CAAC,QAAQ,CAC9B,
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations-v2/write/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,C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AAC,CAAC,EAAE,EAAE;QACJ,MAAM,eAAe,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAChD,CAAC,CACF,CAAC;AACJ,CAAC;AAED,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,qRAAqR;IACvR,IAAI,EACF,8FAA8F;QAC9F,0FAA0F;QAC1F,8DAA8D;QAC9D,yFAAyF;QACzF,4FAA4F;QAC5F,4FAA4F;QAC5F,6FAA6F;QAC7F,kDAAkD;IACpD,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,8UAA8U;IAChV,IAAI,EACF,0FAA0F;QAC1F,+FAA+F;QAC/F,+FAA+F;QAC/F,6FAA6F;QAC7F,6FAA6F;QAC7F,wFAAwF;QACxF,6FAA6F;QAC7F,4BAA4B;IAC9B,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC"}
|
|
@@ -5,6 +5,11 @@ import { AsyncLocalStorage } from 'async_hooks';
|
|
|
5
5
|
* Empty string means no user token — fall back to shared QASE_API_TOKEN.
|
|
6
6
|
*/
|
|
7
7
|
export declare const requestTokenStorage: AsyncLocalStorage<string>;
|
|
8
|
+
/**
|
|
9
|
+
* True when the current request authenticates with its own Bearer token
|
|
10
|
+
* (hosted connector, gateway) rather than the shared QASE_API_TOKEN.
|
|
11
|
+
*/
|
|
12
|
+
export declare function hasRequestToken(): boolean;
|
|
8
13
|
/**
|
|
9
14
|
* Read the effective token for the current async context: request-scoped
|
|
10
15
|
* token first, then QASE_API_TOKEN env var.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-context.d.ts","sourceRoot":"","sources":["../../src/utils/auth-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2BAAkC,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAW1C;AAED,+EAA+E;AAC/E,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE;IACtC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAA;KAAE,CAAC;CAC3D,GAAG,MAAM,CAQT"}
|
|
1
|
+
{"version":3,"file":"auth-context.d.ts","sourceRoot":"","sources":["../../src/utils/auth-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2BAAkC,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAW1C;AAED,+EAA+E;AAC/E,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE;IACtC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAA;KAAE,CAAC;CAC3D,GAAG,MAAM,CAQT"}
|
|
@@ -6,6 +6,13 @@ import { createHash } from 'node:crypto';
|
|
|
6
6
|
* Empty string means no user token — fall back to shared QASE_API_TOKEN.
|
|
7
7
|
*/
|
|
8
8
|
export const requestTokenStorage = new AsyncLocalStorage();
|
|
9
|
+
/**
|
|
10
|
+
* True when the current request authenticates with its own Bearer token
|
|
11
|
+
* (hosted connector, gateway) rather than the shared QASE_API_TOKEN.
|
|
12
|
+
*/
|
|
13
|
+
export function hasRequestToken() {
|
|
14
|
+
return Boolean(requestTokenStorage.getStore());
|
|
15
|
+
}
|
|
9
16
|
/**
|
|
10
17
|
* Read the effective token for the current async context: request-scoped
|
|
11
18
|
* token first, then QASE_API_TOKEN env var.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-context.js","sourceRoot":"","sources":["../../src/utils/auth-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,iBAAiB,EAAU,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,YAAY,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IACpD,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAC5C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,kGAAkG;YAChG,6DAA6D,CAChE,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAElC;IACC,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC;IAC3C,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,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GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAE1D,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IAC7C,IAAI,KAAK;QAAE,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnE,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC;;GAEG;AACH,qBAAa,YAAa,SAAQ,KAAK;IAG5B,UAAU,CAAC,EAAE,MAAM;IACnB,SAAS,CAAC,EAAE,MAAM;IAClB,OAAO,CAAC,EAAE,OAAO;gBAHxB,OAAO,EAAE,MAAM,EACR,UAAU,CAAC,EAAE,MAAM,YAAA,EACnB,SAAS,CAAC,EAAE,MAAM,YAAA,EAClB,OAAO,CAAC,EAAE,OAAO,YAAA;CAM3B;AAED;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAGlC,UAAU,CAAC,EAAE,MAAM;gBAD1B,OAAO,EAAE,MAAM,EACR,UAAU,CAAC,EAAE,MAAM,YAAA;IAO5B;;OAEG;IACH,aAAa,IAAI,MAAM;CAMxB;AA6DD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAmDrD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK7D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKvD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKxD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,CAE5E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAGnF"}
|
package/build/utils/errors.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { AxiosError } from 'axios';
|
|
11
11
|
import { ResultAsync } from 'neverthrow';
|
|
12
|
+
import { hasRequestToken } from './auth-context.js';
|
|
12
13
|
/**
|
|
13
14
|
* Custom error class for Qase API errors
|
|
14
15
|
*/
|
|
@@ -58,7 +59,7 @@ export class ToolExecutionError extends Error {
|
|
|
58
59
|
const SELF_RUN_DOCS = 'https://github.com/qase-tms/qase-mcp-server/blob/main/docs/self-run.md';
|
|
59
60
|
/**
|
|
60
61
|
* A 403 from Qase means one of two unrelated things: the workspace's plan does not
|
|
61
|
-
* include the feature (the hosted connector requires
|
|
62
|
+
* include the feature (the hosted connector requires a paid plan), or the user really
|
|
62
63
|
* lacks permission. Only the first is a plan problem, and describing it as a missing
|
|
63
64
|
* permission sends people hunting for a role or license that is already correct.
|
|
64
65
|
*/
|
|
@@ -69,11 +70,30 @@ const PLAN_RESTRICTION_PATTERN = /\b(?:current|your)\s+plan\b|\bupgrade\b|\bplan
|
|
|
69
70
|
*/
|
|
70
71
|
const PLAN_RESTRICTION_CODES = new Set(['plan_required']);
|
|
71
72
|
function planRestrictionMessage(message) {
|
|
72
|
-
return (`Plan restriction: ${message} The hosted Qase MCP connector is available on
|
|
73
|
-
`
|
|
73
|
+
return (`Plan restriction: ${message} The hosted Qase MCP connector is available on every ` +
|
|
74
|
+
`paid plan, not on Free — this is a workspace plan limit, not an account or role ` +
|
|
74
75
|
`misconfiguration. Run the server yourself with your own QASE_API_TOKEN instead: ` +
|
|
75
76
|
`Qase MCP works on every plan that way.`);
|
|
76
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* A 401 means different things per token source: a per-request Bearer token was
|
|
80
|
+
* revoked or expired and only re-authorizing the connector helps, while for a
|
|
81
|
+
* self-run server the operator's QASE_API_TOKEN is wrong. The 401 message and its
|
|
82
|
+
* suggestion both come from here so they cannot disagree.
|
|
83
|
+
*/
|
|
84
|
+
function authFailureAdvice() {
|
|
85
|
+
if (hasRequestToken()) {
|
|
86
|
+
return {
|
|
87
|
+
message: 'The access token was rejected: it has expired or was revoked. ' +
|
|
88
|
+
'Reconnect or re-authorize the Qase connector in your MCP client or gateway.',
|
|
89
|
+
suggestion: 'Reconnect or re-authorize the Qase connector in your MCP client or gateway, then retry.',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
message: 'Please check your QASE_API_TOKEN environment variable.',
|
|
94
|
+
suggestion: 'Check that QASE_API_TOKEN environment variable is set correctly.',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
77
97
|
function isPlanRestriction(data, message) {
|
|
78
98
|
const body = data;
|
|
79
99
|
const code = body?.code ?? body?.errorCode;
|
|
@@ -98,7 +118,7 @@ export function formatApiError(error) {
|
|
|
98
118
|
// Format based on HTTP status code
|
|
99
119
|
switch (status) {
|
|
100
120
|
case 401:
|
|
101
|
-
return `Authentication failed: ${message}.
|
|
121
|
+
return `Authentication failed: ${message}. ${authFailureAdvice().message}`;
|
|
102
122
|
case 402:
|
|
103
123
|
return planRestrictionMessage(String(message ?? ''));
|
|
104
124
|
case 403:
|
|
@@ -215,7 +235,7 @@ function getSuggestionForError(error, context) {
|
|
|
215
235
|
const lowerError = error.toLowerCase();
|
|
216
236
|
// Authentication errors
|
|
217
237
|
if (lowerError.includes('authentication failed') || lowerError.includes('401')) {
|
|
218
|
-
return
|
|
238
|
+
return authFailureAdvice().suggestion;
|
|
219
239
|
}
|
|
220
240
|
// Plan restrictions — a 403 no change of role or permission can fix
|
|
221
241
|
if (lowerError.includes('plan restriction')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAG5B;IACA;IACA;IAJT,YACE,OAAe,EACR,UAAmB,EACnB,SAAkB,EAClB,OAAiB;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,eAAU,GAAV,UAAU,CAAS;QACnB,cAAS,GAAT,SAAS,CAAS;QAClB,YAAO,GAAP,OAAO,CAAU;QAGxB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAGlC;IAFT,YACE,OAAe,EAC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VERSION = "3.0.
|
|
1
|
+
export declare const VERSION = "3.0.2";
|
|
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
|
@@ -99,17 +99,23 @@ safe, but destructive tools stop working. A single replica needs nothing set.
|
|
|
99
99
|
|
|
100
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
101
|
|
|
102
|
-
### Custom Domains
|
|
102
|
+
### Other Regions and Custom Domains
|
|
103
103
|
|
|
104
|
-
|
|
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
105
|
|
|
106
106
|
```bash
|
|
107
|
+
# EU cluster — workspaces on app-eu.qase.io
|
|
108
|
+
QASE_API_DOMAIN=api-eu.qase.io
|
|
109
|
+
|
|
110
|
+
# Enterprise dedicated instance
|
|
107
111
|
QASE_API_DOMAIN=api-yourcompany.qase.io
|
|
108
112
|
```
|
|
109
113
|
|
|
110
|
-
|
|
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.
|
|
111
117
|
|
|
112
|
-
|
|
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.
|
|
113
119
|
|
|
114
120
|
### Self-Hosted Deployments over Plain HTTP
|
|
115
121
|
|
package/docs/troubleshooting.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Troubleshooting
|
|
2
2
|
|
|
3
|
-
Issues are grouped by how you're connecting: the [hosted connector](connect.md) (OAuth, no local install) or a [self-run](self-run.md) server (your own `QASE_API_TOKEN`). If you're not sure which applies, most people
|
|
3
|
+
Issues are grouped by how you're connecting: the [hosted connector](connect.md) (OAuth, no local install) or a [self-run](self-run.md) server (your own `QASE_API_TOKEN`). If you're not sure which applies, most people connecting to a hosted URL (`mcp.qase.io` or `mcp-eu.qase.io`) should look at the **Hosted Connector / OAuth** section first.
|
|
4
4
|
|
|
5
5
|
## Authentication Errors (Self-Run)
|
|
6
6
|
|
|
@@ -17,17 +17,23 @@ This means the server is running locally (self-run) and rejected the token it wa
|
|
|
17
17
|
|
|
18
18
|
## Hosted Connector / OAuth
|
|
19
19
|
|
|
20
|
-
These apply when connecting to
|
|
20
|
+
These apply when connecting to a Qase-hosted server — `https://mcp.qase.io/mcp` on the main cloud, `https://mcp-eu.qase.io/mcp` on the EU cluster; see [Connect to the hosted Qase MCP](connect.md). There's no `QASE_API_TOKEN` here; authentication is a browser-based OAuth sign-in to your Qase account.
|
|
21
21
|
|
|
22
|
-
### Access denied /
|
|
22
|
+
### Access denied / paid plan required
|
|
23
23
|
|
|
24
|
-
The hosted Qase MCP
|
|
24
|
+
The hosted Qase MCP is available on **every paid plan**, in either region. If your workspace is on the Free plan, requests are rejected with a plan error — the connector may sign in but tool calls fail with a plan-related message.
|
|
25
25
|
|
|
26
|
-
**Solution**: upgrade to
|
|
26
|
+
**Solution**: upgrade to any paid plan, or [run the server yourself](self-run.md) with your own `QASE_API_TOKEN` (works on any plan, Free included).
|
|
27
|
+
|
|
28
|
+
### Connected to the wrong region
|
|
29
|
+
|
|
30
|
+
Qase's cloud runs in two regions, each with its own hosted server: `https://mcp.qase.io/mcp` for the main cloud (`app.qase.io`) and `https://mcp-eu.qase.io/mcp` for the EU cluster (`app-eu.qase.io`). They are separate deployments with separate data and separate accounts, so a workspace on one is not reachable from the other.
|
|
31
|
+
|
|
32
|
+
**Solution**: check which domain you sign in to Qase on, and point the client at that region's URL — see [Pick your endpoint](connect.md#pick-your-endpoint). Remove the server entry and re-add it with the right URL rather than editing it in place, so the stored OAuth grant for the old region is discarded.
|
|
27
33
|
|
|
28
34
|
### Dedicated instance can't use the hosted connector
|
|
29
35
|
|
|
30
|
-
The hosted
|
|
36
|
+
The hosted servers serve Qase's own clouds only. If your workspace lives on a dedicated instance, neither connector can reach your data — no plan changes this, and the symptom is usually a sign-in that succeeds against the wrong place, or projects that simply aren't there.
|
|
31
37
|
|
|
32
38
|
**Solution**: [run the server yourself](self-run.md) and point it at your instance:
|
|
33
39
|
|
|
@@ -42,10 +48,10 @@ If that instance is served without TLS, also set `QASE_API_PROTOCOL=http` — se
|
|
|
42
48
|
|
|
43
49
|
**Solution**:
|
|
44
50
|
|
|
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)
|
|
51
|
+
1. Confirm the server URL is exactly `https://mcp.qase.io/mcp`, or `https://mcp-eu.qase.io/mcp` on the EU cluster — no trailing slash variations, no surrounding quotes (see the clean-URL footgun below)
|
|
46
52
|
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
|
|
47
53
|
3. Restart your MCP client completely (close and reopen) after adding the server
|
|
48
|
-
4. Check that your network/firewall allows outbound HTTPS to `mcp.qase.io`
|
|
54
|
+
4. Check that your network/firewall allows outbound HTTPS to the server's host (`mcp.qase.io` or `mcp-eu.qase.io`) and to its sign-in host (`auth.qase.io` or `auth-eu.qase.io`)
|
|
49
55
|
|
|
50
56
|
### "Auth required" or empty tool list after connecting
|
|
51
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qase/mcp-server",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"mcpName": "io.qase/mcp-server",
|
|
5
5
|
"description": "Official MCP server for Qase Test Management Platform",
|
|
6
6
|
"type": "module",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@modelcontextprotocol/client": "^2.3.1",
|
|
86
86
|
"@modelcontextprotocol/core": "^2.3.1",
|
|
87
87
|
"@types/express": "^4.17.21",
|
|
88
|
-
"@types/jest": "^
|
|
88
|
+
"@types/jest": "^30.0.0",
|
|
89
89
|
"@types/node": "^20.11.24",
|
|
90
90
|
"@types/supertest": "^6.0.3",
|
|
91
91
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
"eslint-config-prettier": "^10.1.1",
|
|
96
96
|
"eslint-plugin-prettier": "^5.2.3",
|
|
97
97
|
"husky": "^9.1.7",
|
|
98
|
-
"jest": "^
|
|
98
|
+
"jest": "^30.5.2",
|
|
99
99
|
"lint-staged": "^16.2.3",
|
|
100
100
|
"prettier": "^3.4.2",
|
|
101
101
|
"supertest": "^7.2.2",
|
|
102
|
-
"ts-jest": "^29.
|
|
102
|
+
"ts-jest": "^29.4.14",
|
|
103
103
|
"typescript": "^5.3.3"
|
|
104
104
|
},
|
|
105
105
|
"overrides": {
|
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": "3.0.
|
|
11
|
+
"version": "3.0.2",
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "@qase/mcp-server",
|
|
16
|
-
"version": "3.0.
|
|
16
|
+
"version": "3.0.2",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|