@qase/mcp-server 2.5.1 → 2.7.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.
- package/CHANGELOG.md +28 -0
- package/README.md +3 -3
- package/build/auth/jwks-verifier.d.ts +1 -1
- package/build/auth/jwks-verifier.d.ts.map +1 -1
- package/build/auth/jwks-verifier.js +0 -1
- package/build/auth/jwks-verifier.js.map +1 -1
- package/build/auth/proxy-provider.d.ts +2 -2
- package/build/auth/proxy-provider.d.ts.map +1 -1
- package/build/auth/proxy-provider.js +1 -2
- package/build/auth/proxy-provider.js.map +1 -1
- package/build/index.d.ts +0 -12
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/operations-v2/meta/discover.js +11 -7
- package/build/operations-v2/meta/discover.js.map +1 -1
- package/build/operations-v2/write/case-fields.d.ts +6 -6
- package/build/operations-v2/write/cases-bulk.js +3 -1
- package/build/operations-v2/write/cases-bulk.js.map +1 -1
- package/build/operations-v2/write/runs.js +2 -1
- package/build/operations-v2/write/runs.js.map +1 -1
- package/build/operations-v2/write/suites.js +10 -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 +3 -3
- package/build/server.d.ts +1 -1
- package/build/server.d.ts.map +1 -1
- package/build/server.js +21 -12
- package/build/server.js.map +1 -1
- package/build/transports/sse.d.ts +1 -1
- package/build/transports/sse.d.ts.map +1 -1
- package/build/transports/sse.js +1 -1
- package/build/transports/sse.js.map +1 -1
- package/build/transports/streamableHttp.d.ts +1 -1
- package/build/transports/streamableHttp.d.ts.map +1 -1
- package/build/transports/streamableHttp.js +3 -3
- package/build/transports/streamableHttp.js.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/index.js +0 -8
- package/build/types/index.js.map +1 -1
- package/build/utils/registry.d.ts +18 -4
- package/build/utils/registry.d.ts.map +1 -1
- package/build/utils/registry.js +34 -15
- package/build/utils/registry.js.map +1 -1
- package/build/utils/server-context.d.ts +2 -36
- package/build/utils/server-context.d.ts.map +1 -1
- package/build/utils/server-context.js.map +1 -1
- package/build/version.d.ts +1 -1
- package/build/version.js +1 -1
- package/docs/tools.md +10 -8
- package/docs/troubleshooting.md +12 -0
- package/package.json +7 -3
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ 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
|
+
## [2.7.0]
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **The server now runs on the v2 line of the MCP TypeScript SDK.** The monolithic `@modelcontextprotocol/sdk` package was replaced by `@modelcontextprotocol/server`, `@modelcontextprotocol/node`, `@modelcontextprotocol/server-legacy` and `@modelcontextprotocol/client`. Nothing changes on the wire: the protocol version served is still `2025-11-25`, every tool schema is byte-for-byte what it was, and all three transports behave as before. The v1 line stopped receiving releases when v2 shipped, so this is a move onto the line that is still maintained — and the prerequisite for adopting the 2026-07-28 revision later.
|
|
13
|
+
|
|
14
|
+
- **One error message lost a redundant prefix.** A request carrying an unknown pagination cursor is still refused with JSON-RPC code `-32602`, but its `message` is now `Unknown pagination cursor` where it used to read `MCP error -32602: Unknown pagination cursor`. The v1 SDK's error class pasted the numeric code into the human-readable text; v2's does not, and neither MCP nor JSON-RPC prescribes that text. The `code` field — the part a client is supposed to branch on — is unchanged. This is the only error in the server whose message came from that class.
|
|
15
|
+
|
|
16
|
+
- **The authorization server metadata document gained one field.** `/.well-known/oauth-authorization-server` now advertises `authorization_response_iss_parameter_supported: false`. The SDK adds this claim in v2 and the OAuth proxy sets it to `false` on purpose: the proxy forwards the browser to Qase's own authorization server, which issues the callback, so the proxy cannot add an `iss` of its own and does not claim to. Clients that follow RFC 9207 read this as "expect no `iss`", which is what actually happens.
|
|
17
|
+
|
|
18
|
+
- **`npm install` now prints a deprecation warning for `@modelcontextprotocol/server-legacy`.** That package is where the SSE transport and the OAuth proxy live, and upstream ships it flagged as deprecated on purpose: it is a frozen copy meant only to ease migration, and upstream's stated intent is that new deployments use Streamable HTTP from `@modelcontextprotocol/server` and a dedicated authorization server instead. The warning is upstream signaling that intent, not a sign that this release is broken — the SSE transport and the OAuth proxy both keep working exactly as before, and no removal date or migration timeline has been set.
|
|
19
|
+
|
|
20
|
+
## [2.6.0]
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **A discovered tool stayed uncallable in the client.** `qase_discover_tools` reported `qase_case_bulk_create` as found and activated, and the server was ready to run it, but the call died inside the client with `TypeError: tools.mcp__qase__qase_case_bulk_create is not a function` ([#93](https://github.com/qase-tms/qase-mcp-server/issues/93)). Activation only changes server-side state; the client learns about it from `notifications/tools/list_changed`, and a client that builds its tool table once at connect time never rebuilds it, so the tool is missing from its own dispatch table no matter how often discovery runs. Two changes: the tools the always-visible text recommends are no longer hidden (below), and the notification now reaches the sessions that need it (below).
|
|
25
|
+
|
|
26
|
+
- **Only the newest session was told that tools had been activated.** The tool registry is a process-wide singleton, but a `Server` is created per session on the SSE and Streamable HTTP transports, and the change notification was wired into a single callback slot that each new session silently overwrote. With two clients on one server process, discovery run by the first notified only the second: the first kept serving the `tools/list` it had cached at connect time, which is the reported symptom on a fully conformant client. Sessions now subscribe individually and unsubscribe when they close, and one dead transport no longer swallows the notification for the sessions behind it.
|
|
27
|
+
|
|
28
|
+
- **`qase_suite_upsert`'s `description` and `preconditions` had no documentation.** Both are now described, like every other listed tool input.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **Three tools moved from discoverable to core.** `qase_case_bulk_create`, `qase_suite_upsert` and `qase_run_complete` are listed from the start and no longer need discovery. Each was named in text the model always reads — the server instructions, or a core tool's own description — which pointed it at a tool its client had never been given: `qase_case_upsert` recommends the bulk form for more than one case, `qase_ci_report` names `qase_run_complete`, and a case needs a suite to live in. A test now enforces the rule in both directions: nothing in the server instructions or a core description may name a hidden tool unless the same sentence sends the agent to `qase_discover_tools` first. Core goes from 14 tools to 17; the catalog is unchanged at 41.
|
|
33
|
+
|
|
34
|
+
- **The server instructions no longer advertise tools the agent cannot call.** Test plans, milestones, environments, shared steps, projects and custom fields are now introduced as things `qase_discover_tools` activates on demand, instead of being named as if they were listed. The paragraph on hidden tools was also stale — it still described attachments and defect triage as hidden, though both became core in 2.2.0 — and it now tells the agent what to do when an activated tool is still missing from its list: reach the endpoint through `qase_api` rather than conclude the capability is absent.
|
|
35
|
+
|
|
8
36
|
## [2.5.1]
|
|
9
37
|
|
|
10
38
|
### Security
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ The Qase MCP Server lets AI assistants (Claude, Cursor, Codex, and any other MCP
|
|
|
28
28
|
|
|
29
29
|
**Features:**
|
|
30
30
|
|
|
31
|
-
- **
|
|
31
|
+
- **40 task-oriented tools** (41 total, including `qase_discover_tools`) — 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)
|
|
@@ -94,13 +94,13 @@ v2 consolidated 83 v1 tools into **29 task-oriented tools** (30 total, including
|
|
|
94
94
|
|
|
95
95
|
## Tools
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
41 tools across 6 groups (40 task-oriented tools plus `qase_discover_tools` for on-demand activation of secondary tools). 17 are listed from the start; the rest stay hidden until `qase_discover_tools` activates them:
|
|
98
98
|
|
|
99
99
|
| Group | Count | Description |
|
|
100
100
|
| --- | --- | --- |
|
|
101
101
|
| Read | 2 | Fetch any entity by type/ID, or bootstrap full project context in one call |
|
|
102
102
|
| QQL | 2 | Search across cases, runs, results, defects, and plans with Qase Query Language |
|
|
103
|
-
| Write |
|
|
103
|
+
| Write | 32 | Create, update, and delete cases (single or up to 100 at once), runs, results, defects, suites, milestones, plans, shared steps, environments, and attachments; link cases and runs to Jira issues; propose and manage test case reviews |
|
|
104
104
|
| Composite | 3 | Multi-step workflows in one call: CI reporting, defect triage, regression run setup |
|
|
105
105
|
| Escape hatch | 1 | Direct REST API access for any endpoint not covered by the tools above |
|
|
106
106
|
| Meta | 1 | `qase_discover_tools` — find and activate secondary tools on demand |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { AuthInfo } from '@modelcontextprotocol/server';
|
|
1
2
|
import { type JWTVerifyGetKey } from 'jose';
|
|
2
|
-
import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
3
3
|
import type { OAuthConfig } from './oauth-config.js';
|
|
4
4
|
export interface JwksVerifier {
|
|
5
5
|
verifyJwt(token: string): Promise<AuthInfo>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwks-verifier.d.ts","sourceRoot":"","sources":["../../src/auth/jwks-verifier.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"jwks-verifier.d.ts","sourceRoot":"","sources":["../../src/auth/jwks-verifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAiC,KAAK,eAAe,EAAE,MAAM,MAAM,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,WAAW,CAAC,EAAE,eAAe,GAC5B,YAAY,CAyBd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwks-verifier.js","sourceRoot":"","sources":["../../src/auth/jwks-verifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jwks-verifier.js","sourceRoot":"","sources":["../../src/auth/jwks-verifier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAwB,MAAM,MAAM,CAAC;AAO3E;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAmB,EACnB,WAA6B;IAE7B,MAAM,OAAO,GACX,WAAW,IAAI,kBAAkB,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;IAExF,OAAO;QACL,KAAK,CAAC,SAAS,CAAC,KAAa;YAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE;gBAClD,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,UAAU,EAAE,MAAM,CAAC,aAAa;aACjC,CAAC,CAAC;YAEH,MAAM,MAAM,GACV,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAEpF,OAAO;gBACL,KAAK;gBACL,QAAQ,EAAG,OAAO,CAAC,SAAoB,IAAK,OAAO,CAAC,GAAc,IAAI,EAAE;gBACxE,MAAM;gBACN,SAAS,EAAE,OAAO,CAAC,GAAG;gBACtB,QAAQ,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACrC,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;aAC5B,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { FetchLike } from '@modelcontextprotocol/server';
|
|
2
|
+
import { ProxyOAuthServerProvider } from '@modelcontextprotocol/server-legacy/auth';
|
|
3
3
|
import type { OAuthConfig } from './oauth-config.js';
|
|
4
4
|
import type { JwksVerifier } from './jwks-verifier.js';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-provider.d.ts","sourceRoot":"","sources":["../../src/auth/proxy-provider.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"proxy-provider.d.ts","sourceRoot":"","sources":["../../src/auth/proxy-provider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA8B,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iCAAiC,CAC/C,eAAe,EAAE,MAAM,EACvB,eAAe,GAAE,SAA4B,GAC5C,SAAS,CAwCX;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,YAAY,GACrB,wBAAwB,CAoB1B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ProxyOAuthServerProvider } from '@modelcontextprotocol/sdk/server/auth/providers/proxyProvider.js';
|
|
1
|
+
import { ProxyOAuthServerProvider } from '@modelcontextprotocol/server-legacy/auth';
|
|
3
2
|
import { authorizeRedirectUriStorage } from './client-context.js';
|
|
4
3
|
/**
|
|
5
4
|
* Wraps fetch to adapt both the outgoing DCR request and the incoming registration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-provider.js","sourceRoot":"","sources":["../../src/auth/proxy-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy-provider.js","sourceRoot":"","sources":["../../src/auth/proxy-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAIpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iCAAiC,CAC/C,eAAuB,EACvB,kBAA6B,UAAU,CAAC,KAAK;IAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QACzB,kFAAkF;QAClF,IAAI,aAAa,GAAG,IAAI,CAAC;QACzB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,eAAe,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;YAC1D,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAA4B,CAAC;gBACzE,IAAI,OAAO,CAAC,0BAA0B,KAAK,oBAAoB,EAAE,CAAC;oBAChE,OAAO,CAAC,0BAA0B,GAAG,MAAM,CAAC;oBAC5C,aAAa,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7D,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,qCAAqC;YACvC,CAAC;QACH,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACtD,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,eAAe,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YAC/C,OAAO,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AAC,CAAC,CAAC,CAAC,EAAE;aAChD,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Qase MCP Server - Main Entry Point
|
|
4
|
-
*
|
|
5
|
-
* This MCP server provides comprehensive integration with the Qase Test Management Platform.
|
|
6
|
-
* It exposes 90+ tools for managing projects, test cases, runs, results, defects, and more.
|
|
7
|
-
*
|
|
8
|
-
* Architecture:
|
|
9
|
-
* - Supports multiple transports: stdio, sse, streamable-http
|
|
10
|
-
* - Tools are registered via the global tool registry
|
|
11
|
-
* - Operation modules self-register their tools on import
|
|
12
|
-
* - All API errors are handled gracefully with user-friendly messages
|
|
13
|
-
*/
|
|
14
2
|
export {};
|
|
15
3
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/build/index.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Operation modules self-register their tools on import
|
|
12
12
|
* - All API errors are handled gracefully with user-friendly messages
|
|
13
13
|
*/
|
|
14
|
-
import { StdioServerTransport } from '@modelcontextprotocol/
|
|
14
|
+
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
|
|
15
15
|
import { createServer } from './server.js';
|
|
16
16
|
import { toolRegistry } from './utils/registry.js';
|
|
17
17
|
import { VERSION } from './version.js';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"index.js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
70
|
name: 'qase_discover_tools',
|
|
71
71
|
title: 'Discover more tools',
|
|
72
72
|
description: 'Find and switch on tools that are hidden by default. Only core tools appear in the tool ' +
|
|
73
|
-
'list; deletes, shared steps and parameters,
|
|
74
|
-
'
|
|
75
|
-
'discovered. Search by what you are trying to do — "delete", "milestone",
|
|
76
|
-
'"review", "custom field" — and matching tools are activated and become callable.
|
|
77
|
-
"in the query must appear in a tool's name or description, so prefer two or three
|
|
78
|
-
'a sentence.
|
|
79
|
-
'
|
|
73
|
+
'list; deletes, test plans, milestones, environments, shared steps and parameters, external ' +
|
|
74
|
+
'issue links, case reviews, and project and custom-field management all exist but stay ' +
|
|
75
|
+
'hidden until discovered. Search by what you are trying to do — "delete", "milestone", ' +
|
|
76
|
+
'"plan", "review", "custom field" — and matching tools are activated and become callable. ' +
|
|
77
|
+
"Every word in the query must appear in a tool's name or description, so prefer two or three " +
|
|
78
|
+
'words over a sentence. Activation is announced to your client with ' +
|
|
79
|
+
'notifications/tools/list_changed: if a tool listed as activated here is still absent from ' +
|
|
80
|
+
'your tool list, your client did not act on that notification — call the same endpoint ' +
|
|
81
|
+
'through qase_api rather than reporting the capability as missing. Never conclude a ' +
|
|
82
|
+
'capability is missing without searching here first. Cost: no API call, matching happens in ' +
|
|
83
|
+
'memory, about 3ms. Free to call as often as needed.',
|
|
80
84
|
schema: Schema,
|
|
81
85
|
handler,
|
|
82
86
|
annotations: ReadAnnotation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../../../src/operations-v2/meta/discover.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,K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ACP,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC"}
|
|
@@ -41,8 +41,8 @@ export declare const TestStepSchema: z.ZodObject<{
|
|
|
41
41
|
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
value?: string | undefined;
|
|
44
|
-
data?: string | undefined;
|
|
45
44
|
action?: string | undefined;
|
|
45
|
+
data?: string | undefined;
|
|
46
46
|
expected_result?: string | undefined;
|
|
47
47
|
attachments?: string[] | undefined;
|
|
48
48
|
shared?: string | undefined;
|
|
@@ -58,8 +58,8 @@ export declare const TestStepSchema: z.ZodObject<{
|
|
|
58
58
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
value?: string | undefined;
|
|
61
|
-
data?: string | undefined;
|
|
62
61
|
action?: string | undefined;
|
|
62
|
+
data?: string | undefined;
|
|
63
63
|
expected_result?: string | undefined;
|
|
64
64
|
attachments?: string[] | undefined;
|
|
65
65
|
shared?: string | undefined;
|
|
@@ -124,8 +124,8 @@ export declare const CaseFieldsSchema: z.ZodObject<{
|
|
|
124
124
|
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
value?: string | undefined;
|
|
127
|
-
data?: string | undefined;
|
|
128
127
|
action?: string | undefined;
|
|
128
|
+
data?: string | undefined;
|
|
129
129
|
expected_result?: string | undefined;
|
|
130
130
|
attachments?: string[] | undefined;
|
|
131
131
|
shared?: string | undefined;
|
|
@@ -141,8 +141,8 @@ export declare const CaseFieldsSchema: z.ZodObject<{
|
|
|
141
141
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
142
142
|
}, {
|
|
143
143
|
value?: string | undefined;
|
|
144
|
-
data?: string | undefined;
|
|
145
144
|
action?: string | undefined;
|
|
145
|
+
data?: string | undefined;
|
|
146
146
|
expected_result?: string | undefined;
|
|
147
147
|
attachments?: string[] | undefined;
|
|
148
148
|
shared?: string | undefined;
|
|
@@ -176,8 +176,8 @@ export declare const CaseFieldsSchema: z.ZodObject<{
|
|
|
176
176
|
attachments?: string[] | undefined;
|
|
177
177
|
steps?: {
|
|
178
178
|
value?: string | undefined;
|
|
179
|
-
data?: string | undefined;
|
|
180
179
|
action?: string | undefined;
|
|
180
|
+
data?: string | undefined;
|
|
181
181
|
expected_result?: string | undefined;
|
|
182
182
|
attachments?: string[] | undefined;
|
|
183
183
|
shared?: string | undefined;
|
|
@@ -213,8 +213,8 @@ export declare const CaseFieldsSchema: z.ZodObject<{
|
|
|
213
213
|
attachments?: string[] | undefined;
|
|
214
214
|
steps?: {
|
|
215
215
|
value?: string | undefined;
|
|
216
|
-
data?: string | undefined;
|
|
217
216
|
action?: string | undefined;
|
|
217
|
+
data?: string | undefined;
|
|
218
218
|
expected_result?: string | undefined;
|
|
219
219
|
attachments?: string[] | undefined;
|
|
220
220
|
shared?: string | undefined;
|
|
@@ -60,6 +60,8 @@ toolRegistry.register({
|
|
|
60
60
|
schema: Schema,
|
|
61
61
|
handler,
|
|
62
62
|
annotations: CreateAnnotation,
|
|
63
|
-
|
|
63
|
+
// Core, not discoverable: qase_case_upsert's own description sends the agent
|
|
64
|
+
// here for anything past a single case, and a tool the always-visible text
|
|
65
|
+
// recommends has to be in the tool list the client already holds.
|
|
64
66
|
});
|
|
65
67
|
//# sourceMappingURL=cases-bulk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cases-bulk.js","sourceRoot":"","sources":["../../../src/operations-v2/write/cases-bulk.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,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAA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T,gBAAgB,SAAS,mEAAmE;QAC5F,yFAAyF;QACzF,uFAAuF;QACvF,2FAA2F;QAC3F,uFAAuF;QACvF,wFAAwF;QACxF,2FAA2F;QAC3F,2FAA2F;QAC3F,0FAA0F;IAC5F,MAAM,EAAE,MAAM;IACd,OAAO;IACP,WAAW,EAAE,gBAAgB;IAC7B,6EAA6E;IAC7E,2EAA2E;IAC3E,kEAAkE;CACnE,CAAC,CAAC"}
|
|
@@ -101,7 +101,8 @@ toolRegistry.register({
|
|
|
101
101
|
schema: CompleteSchema,
|
|
102
102
|
handler: complete,
|
|
103
103
|
annotations: UpdateAnnotation,
|
|
104
|
-
|
|
104
|
+
// Core: it closes the run loop whose other two steps — qase_run_upsert and
|
|
105
|
+
// qase_result_record — are core, and qase_ci_report's description names it.
|
|
105
106
|
});
|
|
106
107
|
toolRegistry.register({
|
|
107
108
|
name: 'qase_run_delete',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../src/operations-v2/write/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAExE,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;IACvD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,Q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Q;IACjB,WAAW,EAAE,gBAAgB;IAC7B,2EAA2E;IAC3E,4EAA4E;CAC7E,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EACT,yFAAyF;QACzF,6FAA6F;QAC7F,sFAAsF;QACtF,2FAA2F;QAC3F,4FAA4F;QAC5F,OAAO;IACT,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,gBAAgB;IAC7B,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAC"}
|
|
@@ -7,8 +7,14 @@ const UpsertSchema = z.object({
|
|
|
7
7
|
code: ProjectCodeSchema,
|
|
8
8
|
id: IdSchema.optional().describe('Suite ID — if provided, updates; if omitted, creates'),
|
|
9
9
|
title: z.string().min(1).max(255).describe('Suite title'),
|
|
10
|
-
description: z
|
|
11
|
-
|
|
10
|
+
description: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('What this suite groups — shown under the suite title in the tree'),
|
|
14
|
+
preconditions: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Setup every case in this suite assumes, inherited by its child suites'),
|
|
12
18
|
parent_id: z.number().int().positive().optional().describe('Parent suite ID for nesting'),
|
|
13
19
|
});
|
|
14
20
|
const DeleteSchema = z.object({
|
|
@@ -54,7 +60,8 @@ toolRegistry.register({
|
|
|
54
60
|
schema: UpsertSchema,
|
|
55
61
|
handler: upsert,
|
|
56
62
|
annotations: CreateAnnotation,
|
|
57
|
-
|
|
63
|
+
// Core: a case needs a suite to live in, so this is part of the first write
|
|
64
|
+
// any project needs, not a secondary operation.
|
|
58
65
|
});
|
|
59
66
|
toolRegistry.register({
|
|
60
67
|
name: 'qase_suite_delete',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suites.js","sourceRoot":"","sources":["../../../src/operations-v2/write/suites.ts"],"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AC,QAAQ,CAAC;IACpB,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,+FAA+F;QAC/F,0FAA0F;QAC1F,+FAA+F;QAC/F,6FAA6F;QAC7F,+FAA+F;QAC/F,wFAAwF;QACxF,6FAA6F;QAC7F,qFAAqF;QACrF,6FAA6F;QAC7F,gBAAgB;IAClB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,gBAAgB;IAC7B,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAC"}
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* chosen. This is the cheapest place to answer "which tool for this job" —
|
|
6
6
|
* cheaper than the agent discovering it by making the wrong call first.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SERVER_INSTRUCTIONS = "Qase is a test management platform: test cases, suites, runs, results, defects, plans, milestones, environments, and reviews, organized by project code. This server reads and writes all of it, and reports CI results directly.\n\nStart any new project with qase_project_context: one call returns the suite tree, milestones, environments, custom fields, and users, instead of six separate list calls. For a single known record, use qase_get. For anything filtered, cross-project, or aggregated (\"failed results this week\", \"open blockers\"), use qql_search, backed by qql_help for syntax and field references per entity.\n\nReach for the batch call before the loop. One qql_search returns ten cases about four times faster than ten qase_get calls, and one qase_case_bulk_create writes ten cases about four times faster than ten qase_case_upsert calls. Every tool's description ends with what the call costs; read it before fetching or writing records one at a time.\n\nWriting follows one pattern throughout: qase_case_upsert, qase_run_upsert,
|
|
8
|
+
export declare const SERVER_INSTRUCTIONS = "Qase is a test management platform: test cases, suites, runs, results, defects, plans, milestones, environments, and reviews, organized by project code. This server reads and writes all of it, and reports CI results directly.\n\nStart any new project with qase_project_context: one call returns the suite tree, milestones, environments, custom fields, and users, instead of six separate list calls. For a single known record, use qase_get. For anything filtered, cross-project, or aggregated (\"failed results this week\", \"open blockers\"), use qql_search, backed by qql_help for syntax and field references per entity.\n\nReach for the batch call before the loop. One qql_search returns ten cases about four times faster than ten qase_get calls, and one qase_case_bulk_create writes ten cases about four times faster than ten qase_case_upsert calls. Every tool's description ends with what the call costs; read it before fetching or writing records one at a time.\n\nWriting follows one pattern throughout: qase_case_upsert, qase_run_upsert, qase_suite_upsert, qase_defect_upsert all create when `id` is omitted and update when it's given, as do the upsert tools that stay hidden until qase_discover_tools activates them. A case describes what to test; a result (qase_result_record) describes what happened when it ran, into an existing run. For CI, qase_ci_report collapses create-run, record-results, and complete-run into one call. qase_regression_run builds a run from a suite, plan, or explicit case list in one step. Attachments upload separately via qase_attachment_upload and are referenced by hash.\n\nTest plans, milestones, environments, shared steps, projects and workspace-wide custom fields are managed here too, by tools qase_discover_tools activates on demand \u2014 search \"plan\", \"milestone\", \"environment\", \"shared step\", \"project\" or \"custom field\". A project has no update endpoint, and a custom field's entity and type are fixed once it is created.\n\nOnly core tools are visible by default. Deletes, test plans, milestones, environments, shared steps and parameters, external issue links, case reviews, and project and custom-field management exist but start hidden: call qase_discover_tools with what you are trying to do to find and activate them, rather than assuming a capability does not exist. Activation is announced with notifications/tools/list_changed; if a tool you just activated is still missing from your tool list, your client did not act on that notification \u2014 reach the same endpoint through qase_api instead of concluding the capability is absent.\n\nEnum fields (priority, severity, status, type, automation) accept a label or the project's numeric ID, either works.";
|
|
9
9
|
//# sourceMappingURL=server-instructions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,6qFAYqF,CAAC"}
|
|
@@ -11,11 +11,11 @@ Start any new project with qase_project_context: one call returns the suite tree
|
|
|
11
11
|
|
|
12
12
|
Reach for the batch call before the loop. One qql_search returns ten cases about four times faster than ten qase_get calls, and one qase_case_bulk_create writes ten cases about four times faster than ten qase_case_upsert calls. Every tool's description ends with what the call costs; read it before fetching or writing records one at a time.
|
|
13
13
|
|
|
14
|
-
Writing follows one pattern throughout: qase_case_upsert, qase_run_upsert,
|
|
14
|
+
Writing follows one pattern throughout: qase_case_upsert, qase_run_upsert, qase_suite_upsert, qase_defect_upsert all create when \`id\` is omitted and update when it's given, as do the upsert tools that stay hidden until qase_discover_tools activates them. A case describes what to test; a result (qase_result_record) describes what happened when it ran, into an existing run. For CI, qase_ci_report collapses create-run, record-results, and complete-run into one call. qase_regression_run builds a run from a suite, plan, or explicit case list in one step. Attachments upload separately via qase_attachment_upload and are referenced by hash.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Test plans, milestones, environments, shared steps, projects and workspace-wide custom fields are managed here too, by tools qase_discover_tools activates on demand — search "plan", "milestone", "environment", "shared step", "project" or "custom field". A project has no update endpoint, and a custom field's entity and type are fixed once it is created.
|
|
17
17
|
|
|
18
|
-
Only core tools are visible by default. Deletes, shared steps and parameters,
|
|
18
|
+
Only core tools are visible by default. Deletes, test plans, milestones, environments, shared steps and parameters, external issue links, case reviews, and project and custom-field management exist but start hidden: call qase_discover_tools with what you are trying to do to find and activate them, rather than assuming a capability does not exist. Activation is announced with notifications/tools/list_changed; if a tool you just activated is still missing from your tool list, your client did not act on that notification — reach the same endpoint through qase_api instead of concluding the capability is absent.
|
|
19
19
|
|
|
20
20
|
Enum fields (priority, severity, status, type, automation) accept a label or the project's numeric ID, either works.`;
|
|
21
21
|
//# sourceMappingURL=server-instructions.js.map
|
package/build/server.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Kept out of index.ts so it can be exercised by tests — index.ts starts a
|
|
6
6
|
* transport on import.
|
|
7
7
|
*/
|
|
8
|
-
import { Server } from '@modelcontextprotocol/
|
|
8
|
+
import { Server } from '@modelcontextprotocol/server';
|
|
9
9
|
import './operations-v2/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* Create and configure a new MCP Server instance.
|
package/build/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAoC,MAAM,8BAA8B,CAAC;AAmBxF,OAAO,0BAA0B,CAAC;AAalC;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAiMrC"}
|
package/build/server.js
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Kept out of index.ts so it can be exercised by tests — index.ts starts a
|
|
6
6
|
* transport on import.
|
|
7
7
|
*/
|
|
8
|
-
import { Server } from '@modelcontextprotocol/
|
|
9
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, ErrorCode, McpError, } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
+
import { Server, ProtocolError, ProtocolErrorCode } from '@modelcontextprotocol/server';
|
|
10
9
|
import { toolRegistry } from './utils/registry.js';
|
|
11
10
|
import { formatApiError, ToolExecutionError } from './utils/errors.js';
|
|
12
11
|
import { compactResponse } from './utils/response-shape.js';
|
|
@@ -30,7 +29,7 @@ import './operations-v2/index.js';
|
|
|
30
29
|
function rejectUnknownCursor(cursor) {
|
|
31
30
|
if (cursor === undefined)
|
|
32
31
|
return;
|
|
33
|
-
throw new
|
|
32
|
+
throw new ProtocolError(ProtocolErrorCode.InvalidParams, 'Unknown pagination cursor');
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* Create and configure a new MCP Server instance.
|
|
@@ -67,7 +66,7 @@ export function createServer() {
|
|
|
67
66
|
* Returns all tools registered in the tool registry.
|
|
68
67
|
* Called when the MCP client wants to discover available tools.
|
|
69
68
|
*/
|
|
70
|
-
server.setRequestHandler(
|
|
69
|
+
server.setRequestHandler('tools/list', async (request) => {
|
|
71
70
|
rejectUnknownCursor(request.params?.cursor);
|
|
72
71
|
const tools = toolRegistry.getTools();
|
|
73
72
|
console.error(`[Server] Listing ${tools.length} tools`);
|
|
@@ -76,7 +75,7 @@ export function createServer() {
|
|
|
76
75
|
/**
|
|
77
76
|
* Handler: List available prompts (workflow templates)
|
|
78
77
|
*/
|
|
79
|
-
server.setRequestHandler(
|
|
78
|
+
server.setRequestHandler('prompts/list', async (request) => {
|
|
80
79
|
rejectUnknownCursor(request.params?.cursor);
|
|
81
80
|
const prompts = listPrompts();
|
|
82
81
|
console.error(`[Server] Listing ${prompts.length} prompts`);
|
|
@@ -85,7 +84,7 @@ export function createServer() {
|
|
|
85
84
|
/**
|
|
86
85
|
* Handler: Get a specific prompt with arguments
|
|
87
86
|
*/
|
|
88
|
-
server.setRequestHandler(
|
|
87
|
+
server.setRequestHandler('prompts/get', async (request) => {
|
|
89
88
|
const { name, arguments: args } = request.params;
|
|
90
89
|
console.error(`[Server] Getting prompt: ${name}`);
|
|
91
90
|
return getPrompt(name, args);
|
|
@@ -94,9 +93,8 @@ export function createServer() {
|
|
|
94
93
|
* Handler: Execute a tool
|
|
95
94
|
*
|
|
96
95
|
* Executes the specified tool with provided arguments.
|
|
97
|
-
* Arguments are validated against the tool's schema before execution.
|
|
98
96
|
*/
|
|
99
|
-
server.setRequestHandler(
|
|
97
|
+
server.setRequestHandler('tools/call', async (request, ctx) => {
|
|
100
98
|
return serverStorage.run(server, async () => {
|
|
101
99
|
const { name, arguments: rawArgs } = request.params;
|
|
102
100
|
// The two hidden attribution arguments never reach a tool handler — see
|
|
@@ -111,12 +109,12 @@ export function createServer() {
|
|
|
111
109
|
throw new Error(`Unknown tool: ${name}. Use list_tools to see available tools.`);
|
|
112
110
|
}
|
|
113
111
|
// Elicitation: confirm destructive actions before execution. The gate is
|
|
114
|
-
// fail-closed — an unconfirmed deletion does not happen.
|
|
112
|
+
// fail-closed — an unconfirmed deletion does not happen. ctx.mcpReq.id
|
|
115
113
|
// is what puts the prompt on the stream of this call, where the client
|
|
116
114
|
// is listening.
|
|
117
115
|
const toolDef = toolRegistry.getTool(name);
|
|
118
116
|
if (toolDef?.annotations?.destructiveHint === true) {
|
|
119
|
-
const confirmation = await confirmDestructiveAction(name, args || {},
|
|
117
|
+
const confirmation = await confirmDestructiveAction(name, args || {}, ctx.mcpReq.id);
|
|
120
118
|
if (!confirmation.allowed) {
|
|
121
119
|
console.error(`[Server] Refused destructive tool '${name}': ${confirmation.reason}`);
|
|
122
120
|
return {
|
|
@@ -194,11 +192,22 @@ export function createServer() {
|
|
|
194
192
|
});
|
|
195
193
|
});
|
|
196
194
|
// Wire tool discovery notifications: when tools are activated via qase_discover_tools,
|
|
197
|
-
// notify the client so it re-queries the tool list
|
|
198
|
-
|
|
195
|
+
// notify the client so it re-queries the tool list.
|
|
196
|
+
//
|
|
197
|
+
// Subscribe rather than assign: the registry is a process-wide singleton but
|
|
198
|
+
// createServer runs once per session on the HTTP transports, and a single
|
|
199
|
+
// callback slot meant each new session silently replaced the previous one's
|
|
200
|
+
// — every older session then went unnotified and its client kept calling a
|
|
201
|
+
// tools/list it had cached before discovery ran.
|
|
202
|
+
const unsubscribe = toolRegistry.subscribeToolsChanged(() => {
|
|
199
203
|
server.sendToolListChanged().catch((err) => {
|
|
200
204
|
console.error('[Server] Failed to send tool list changed notification:', err);
|
|
201
205
|
});
|
|
206
|
+
});
|
|
207
|
+
const closePrevious = server.onclose?.bind(server);
|
|
208
|
+
server.onclose = () => {
|
|
209
|
+
unsubscribe();
|
|
210
|
+
closePrevious?.();
|
|
202
211
|
};
|
|
203
212
|
return server;
|
|
204
213
|
}
|
package/build/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,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AC,CAAC;QAChF,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;QACpB,WAAW,EAAE,CAAC;QACd,aAAa,EAAE,EAAE,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/transports/sse.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/transports/sse.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAI3C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAOtD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAaD,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAqGjG"}
|