@qase/mcp-server 2.7.3 → 2.7.4

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 CHANGED
@@ -5,6 +5,20 @@ 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.4]
9
+
10
+ ### Added
11
+
12
+ - **`qase_attachment_upload` uploads several files in one request.** A new `files` argument takes one entry per file — each with its own `filename` and either `file_base64` or `file_path` — and sends them as a single `multipart/form-data` request, returning the hashes in the same order. Uploading the screenshot, the log and the HAR of one failure used to cost three round trips; it now costs one. The single-file arguments (`file_base64`, `file_path`, the deprecated `file`) keep working unchanged, so existing callers need no edit. `filename` is consequently no longer on the schema's top-level `required` list — it is required inside every `files` entry, and the handler still refuses a single-file upload that arrives without one.
13
+
14
+ - **Qase's upload limits are enforced before anything is sent.** Qase accepts at most 20 files, 32 MB per file and 128 MB per request. A request breaking any of those is now refused locally, with the offending file named and its size given, instead of being read, base64-decoded, uploaded and rejected by the API. An oversized `file_base64` is measured from the string's length, so a 45 MB payload is turned away before it is decoded into memory.
15
+
16
+ - **HTTP 507 is explained rather than passed through.** An upload that exhausts the team account's storage now comes back as `Insufficient storage: … The Qase team account has no free space left for attachments.` with the suggestion to free space or upgrade the plan, so an agent stops retrying a request that cannot succeed until someone acts.
17
+
18
+ ### Security
19
+
20
+ - **`js-yaml` moves onto its patched releases.** GHSA-2883-xcg3-v3hh: `maxTotalMergeKeys` does not count empty mappings, so a document can merge a long sequence of them repeatedly and spend `O(N*K)` CPU without ever reaching the configured limit. `js-yaml` reaches this project through dev dependencies only — eslint on the 4.x line, ts-jest's coverage tooling on 3.x — and both were already pinned by an override, so the pins move to 4.3.2 and 3.15.2. No production dependency is affected, and nothing in the published package changes.
21
+
8
22
  ## [2.7.3]
9
23
 
10
24
  ### Fixed
@@ -1,27 +1,59 @@
1
1
  import { z } from 'zod';
2
- import { createReadStream, existsSync } from 'fs';
2
+ import { createReadStream, existsSync, statSync } from 'fs';
3
3
  import { getApiClient } from '../../client/index.js';
4
4
  import { toolRegistry, CreateAnnotation, DeleteAnnotation } from '../../utils/registry.js';
5
5
  import { toResultAsync, createToolError, ToolExecutionError } from '../../utils/errors.js';
6
6
  import { ProjectCodeSchema, HashSchema } from '../../utils/validation.js';
7
+ /**
8
+ * Qase caps a single upload request. Checked here rather than left to the API
9
+ * so an oversized request fails before its bytes are read, decoded and sent.
10
+ */
11
+ const MAX_FILES_PER_REQUEST = 20;
12
+ const MAX_FILE_BYTES = 32 * 1024 * 1024;
13
+ const MAX_REQUEST_BYTES = 128 * 1024 * 1024;
14
+ const FileEntrySchema = z.object({
15
+ filename: z.string().describe('Original filename with extension'),
16
+ file_base64: z
17
+ .string()
18
+ .optional()
19
+ .describe('File content, base64 encoded. The only option on a remote server.'),
20
+ file_path: z
21
+ .string()
22
+ .optional()
23
+ .describe('Absolute path to a file on the machine running THIS server.'),
24
+ });
7
25
  const UploadSchema = z.object({
8
26
  code: ProjectCodeSchema,
27
+ files: z
28
+ .array(FileEntrySchema)
29
+ .min(1)
30
+ .max(MAX_FILES_PER_REQUEST)
31
+ .optional()
32
+ .describe('Several files in one request — each entry carries its own filename and either ' +
33
+ 'file_base64 or file_path. Qase accepts at most 20 files, 32 MB per file and 128 MB ' +
34
+ 'in total per request. Prefer this over one call per file: it is a single round trip ' +
35
+ 'and returns the hashes in the same order.'),
9
36
  file_base64: z
10
37
  .string()
11
38
  .optional()
12
- .describe('File content, base64 encoded. Use this whenever the server is not on the same machine ' +
13
- 'as the file — including the hosted connector, where it is the only option.'),
39
+ .describe('Single-file form. File content, base64 encoded. Use this whenever the server is not ' +
40
+ 'on the same machine as the file — including the hosted connector, where it is the ' +
41
+ 'only option.'),
14
42
  file_path: z
15
43
  .string()
16
44
  .optional()
17
- .describe('Absolute path to a file on the machine running THIS server. Only usable for a local ' +
18
- 'stdio server; a remote server cannot see your filesystem — send file_base64 instead.'),
45
+ .describe('Single-file form. Absolute path to a file on the machine running THIS server. Only ' +
46
+ 'usable for a local stdio server; a remote server cannot see your filesystem — send ' +
47
+ 'file_base64 instead.'),
19
48
  file: z
20
49
  .string()
21
50
  .optional()
22
51
  .describe('Deprecated: prefer file_base64 or file_path, which say which one you mean. Accepts ' +
23
52
  'either an absolute path to an existing file or base64 content.'),
24
- filename: z.string().describe('Original filename with extension'),
53
+ filename: z
54
+ .string()
55
+ .optional()
56
+ .describe('Original filename with extension. Required for the single-file form.'),
25
57
  });
26
58
  const DeleteSchema = z.object({
27
59
  hash: HashSchema.describe('Attachment hash identifier'),
@@ -43,41 +75,99 @@ function isBase64(value) {
43
75
  return false;
44
76
  return Buffer.from(compact, 'base64').toString('base64') === compact;
45
77
  }
78
+ /** Decoded size of a base64 string, without decoding it. */
79
+ function base64Bytes(value) {
80
+ const compact = value.replace(/\s/g, '');
81
+ const padding = compact.endsWith('==') ? 2 : compact.endsWith('=') ? 1 : 0;
82
+ return Math.max(0, Math.floor((compact.length * 3) / 4) - padding);
83
+ }
84
+ function formatSize(bytes) {
85
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
86
+ }
87
+ function assertFileFits(bytes, filename) {
88
+ if (bytes <= MAX_FILE_BYTES)
89
+ return;
90
+ throw new ToolExecutionError(`"${filename}" is ${formatSize(bytes)}; Qase accepts at most 32 MB per file.`, 'Attach a smaller excerpt — a trimmed log or a screenshot instead of a video — or host ' +
91
+ 'the file elsewhere and link to it from the comment.');
92
+ }
46
93
  function readLocalFile(path, filename) {
47
94
  if (!existsSync(path)) {
48
95
  throw new ToolExecutionError(`No file at "${path}" on the machine running this server.`, 'If the server is remote (for example the hosted connector) it cannot read your local ' +
49
96
  'filesystem — read the file yourself and pass its bytes as file_base64.');
50
97
  }
51
- return { name: filename, value: createReadStream(path) };
98
+ const bytes = statSync(path).size;
99
+ assertFileFits(bytes, filename);
100
+ return { name: filename, bytes, path };
52
101
  }
53
- function prepareFileData(args) {
54
- const { file_base64, file_path, file, filename } = args;
102
+ /**
103
+ * Turn one entry into a measured source. Nothing is opened here: a request that
104
+ * breaks a limit must not leave read streams behind for files it never sends.
105
+ */
106
+ function resolveSource(entry) {
107
+ const { file_base64, file_path, file, filename } = entry;
108
+ if (!filename) {
109
+ throw new ToolExecutionError('filename is required for every file.', 'Pass filename with its extension — per entry when using `files`, alongside ' +
110
+ 'file_base64 or file_path for a single file.');
111
+ }
55
112
  if (file_path)
56
113
  return readLocalFile(file_path, filename);
57
114
  if (file_base64) {
115
+ // Size first: a 45 MB string should be refused before it is decoded into memory.
116
+ assertFileFits(base64Bytes(file_base64), filename);
58
117
  if (!isBase64(file_base64)) {
59
- throw new ToolExecutionError('file_base64 is not valid base64.', 'Base64-encode the file bytes, or use file_path for a file local to this server. ' +
118
+ throw new ToolExecutionError(`file_base64 for "${filename}" is not valid base64.`, 'Base64-encode the file bytes, or use file_path for a file local to this server. ' +
60
119
  'To send text as-is, encode it first.');
61
120
  }
62
- return { name: filename, value: Buffer.from(file_base64, 'base64') };
121
+ const buffer = Buffer.from(file_base64, 'base64');
122
+ return { name: filename, bytes: buffer.length, buffer };
63
123
  }
64
124
  if (file) {
65
125
  // Legacy single-argument form: decide by what the value actually is.
66
- if (file.startsWith('/') && existsSync(file)) {
67
- return { name: filename, value: createReadStream(file) };
68
- }
69
- return {
70
- name: filename,
71
- // Not base64 → treat as literal content rather than decoding it into noise.
72
- value: Buffer.from(file, isBase64(file) ? 'base64' : 'utf8'),
73
- };
126
+ if (file.startsWith('/') && existsSync(file))
127
+ return readLocalFile(file, filename);
128
+ // Not base64 → treat as literal content rather than decoding it into noise.
129
+ const buffer = Buffer.from(file, isBase64(file) ? 'base64' : 'utf8');
130
+ assertFileFits(buffer.length, filename);
131
+ return { name: filename, bytes: buffer.length, buffer };
132
+ }
133
+ throw new ToolExecutionError(`No file content provided for "${filename}".`, 'Pass file_base64 (base64 encoded content) or file_path (a path local to this server).');
134
+ }
135
+ /** The files to upload, whether they arrived as a list or as a single file. */
136
+ function toEntries(args) {
137
+ if (args.files)
138
+ return args.files;
139
+ if (args.file_base64 || args.file_path || args.file) {
140
+ const { file_base64, file_path, file, filename } = args;
141
+ return [{ file_base64, file_path, file, filename }];
142
+ }
143
+ return [];
144
+ }
145
+ function prepareFiles(args) {
146
+ const entries = toEntries(args);
147
+ if (entries.length === 0) {
148
+ throw new ToolExecutionError('No file content provided.', 'Pass file_base64 (base64 encoded content) or file_path (a path local to this server), ' +
149
+ 'or `files` with one entry per file.');
150
+ }
151
+ if (entries.length > MAX_FILES_PER_REQUEST) {
152
+ throw new ToolExecutionError(`${entries.length} files in one request; Qase accepts at most 20 files per request.`, 'Split them across consecutive qase_attachment_upload calls — each returns its own hashes.');
153
+ }
154
+ const sources = entries.map(resolveSource);
155
+ const total = sources.reduce((sum, source) => sum + source.bytes, 0);
156
+ if (total > MAX_REQUEST_BYTES) {
157
+ throw new ToolExecutionError(`These ${sources.length} files total ${formatSize(total)}; Qase accepts at most 128 MB ` +
158
+ 'per request.', 'Split them across consecutive qase_attachment_upload calls, keeping each request under ' +
159
+ '128 MB.');
74
160
  }
75
- throw new ToolExecutionError('No file content provided.', 'Pass file_base64 (base64 encoded content) or file_path (a path local to this server).');
161
+ // Streams are opened last, once the whole request is known to be sendable.
162
+ return sources.map((source) => ({
163
+ name: source.name,
164
+ value: source.path ? createReadStream(source.path) : source.buffer,
165
+ }));
76
166
  }
77
167
  async function upload(args) {
78
168
  const client = getApiClient();
79
- const fileData = prepareFileData(args);
80
- const result = await toResultAsync(client.attachments.uploadAttachment(args.code, [fileData]));
169
+ const files = prepareFiles(args);
170
+ const result = await toResultAsync(client.attachments.uploadAttachment(args.code, files));
81
171
  return result.match((r) => r.data.result, (e) => {
82
172
  throw createToolError(e, 'attachment operation');
83
173
  });
@@ -92,17 +182,21 @@ async function del(args) {
92
182
  toolRegistry.register({
93
183
  name: 'qase_attachment_upload',
94
184
  title: 'Upload attachment',
95
- description: 'Upload a file and get back the hash that other tools reference it by — screenshots, logs, ' +
96
- 'HAR files, videos. Pass `file_base64` with the base64-encoded bytes, or `file_path` with an ' +
97
- 'absolute path; `filename` with its extension is always required. Use `file_base64` unless ' +
98
- 'the server runs on the same machine as the file: a remote server, the hosted connector ' +
99
- 'included, cannot see your filesystem, and `file_path` will simply not find the file. The ' +
100
- 'returned hash is what goes in the `attachments` field of qase_case_upsert, ' +
101
- 'qase_result_record, qase_defect_upsert or qase_triage_defect — uploading alone attaches ' +
102
- 'nothing, the hash has to be passed on. This is the only tool that sends ' +
103
- 'multipart/form-data, which is why qase_api cannot send them. Upload once and reuse the ' +
104
- 'hash rather than re-uploading the same evidence per case. Cost: one API call per file, ' +
105
- 'dominated by file size rather than round trip — well under a second for a screenshot, ' +
185
+ description: 'Upload files and get back the hashes that other tools reference them by — screenshots, ' +
186
+ 'logs, HAR files, videos. For one file pass `file_base64` with the base64-encoded bytes, ' +
187
+ 'or `file_path` with an absolute path, plus `filename` with its extension. For several, ' +
188
+ 'pass `files` — one entry per file, each with its own filename — and they go up in a ' +
189
+ 'single request, hashes returned in the same order. Use `file_base64` unless the server ' +
190
+ 'runs on the same machine as the file: a remote server, the hosted connector included, ' +
191
+ 'cannot see your filesystem, and `file_path` will simply not find the file. Qase accepts ' +
192
+ 'at most 20 files, 32 MB per file and 128 MB per request; a request over any of those is ' +
193
+ 'refused here before anything is sent, so split it across calls. The returned hash is what ' +
194
+ 'goes in the `attachments` field of qase_case_upsert, qase_result_record, ' +
195
+ 'qase_defect_upsert or qase_triage_defect — uploading alone attaches nothing, the hash has ' +
196
+ 'to be passed on. This is the only tool that sends multipart/form-data, which is why ' +
197
+ 'qase_api cannot send them. Upload once and reuse the hash rather than re-uploading the ' +
198
+ 'same evidence per case. Cost: one API call per request whatever the number of files, ' +
199
+ 'dominated by total size rather than round trip — well under a second for a screenshot, ' +
106
200
  'seconds for a video. Base64 inflates the payload by about a third.',
107
201
  schema: UploadSchema,
108
202
  handler: upload,
@@ -1 +1 @@
1
- {"version":3,"file":"attachments.js","sourceRoot":"","sources":["../../../src/operations-v2/write/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAClD,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,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE1E,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,wFAAwF;QACtF,4EAA4E,CAC/E;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sFAAsF;QACpF,sFAAsF,CACzF;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,qFAAqF;QACnF,gEAAgE,CACnE;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,4BAA4B,CAAC;CACxD,CAAC,CAAC;AAIH;;;;;;;;GAQG;AACH,SAAS,QAAQ,CAAC,KAAa;IAC7B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,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AAuF;QACvF,yFAAyF;QACzF,oEAAoE;IACtE,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,gBAAgB;IAC7B,4EAA4E;IAC5E,gFAAgF;IAChF,UAAU,EAAE,MAAM;CACnB,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,2FAA2F;QAC3F,0FAA0F;QAC1F,+FAA+F;QAC/F,8FAA8F;QAC9F,+EAA+E;IACjF,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, 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.";
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 \u2014 its `files` argument sends up to 20 in one request \u2014 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,6qFAYqF,CAAC"}
1
+ {"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,8uFAYqF,CAAC"}
@@ -11,7 +11,7 @@ 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, 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.
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 — its \`files\` argument sends up to 20 in one request — 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
 
@@ -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;AAEzC;;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;AAuCD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiDrD;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,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,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"}
@@ -114,6 +114,8 @@ export function formatApiError(error) {
114
114
  return `Validation error: ${message}`;
115
115
  case 429:
116
116
  return `Rate limit exceeded: ${message}. Please try again later.`;
117
+ case 507:
118
+ return `Insufficient storage: ${message}. The Qase team account has no free space left for attachments.`;
117
119
  case 500:
118
120
  case 502:
119
121
  case 503:
@@ -224,6 +226,10 @@ function getSuggestionForError(error, context) {
224
226
  if (lowerError.includes('forbidden') || lowerError.includes('403')) {
225
227
  return 'Verify you have the required permissions for this operation.';
226
228
  }
229
+ // Storage exhausted (507) — retrying changes nothing until space is freed.
230
+ if (lowerError.includes('insufficient storage') || lowerError.includes('507')) {
231
+ return 'Free up space by deleting attachments you no longer need, or upgrade the plan, then retry.';
232
+ }
227
233
  // Not found errors
228
234
  if (lowerError.includes('not found') || lowerError.includes('404')) {
229
235
  return 'Verify the resource exists. Use the appropriate list or get tool to check.';
@@ -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;AAEzC;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAG5B;IACA;IACA;IAJT,YACE,OAAe,EACR,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A2D,CAAC;IACrE,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.7.3";
1
+ export declare const VERSION = "2.7.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/build/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by prebuild script — do not edit manually
2
- export const VERSION = '2.7.3';
2
+ export const VERSION = '2.7.4';
3
3
  //# sourceMappingURL=version.js.map
package/docs/tools.md CHANGED
@@ -56,7 +56,7 @@ Every tool's schema uses "label or numeric ID" strings for Qase's configurable e
56
56
  | `qase_shared_step_delete` | Delete a shared step by project code and hash. | `code`, `hash` | discoverable |
57
57
  | `qase_environment_upsert` | Create or update a test environment. If `id` is provided, updates the existing environment; if omitted, creates a new one. | `code`, `id` (optional), `title` (1-255 chars), `description`, `slug`, `host` | discoverable |
58
58
  | `qase_environment_delete` | Delete a test environment by project code and environment ID. | `code`, `id` | discoverable |
59
- | `qase_attachment_upload` | Upload a file and get back its hash, which every `attachments` field accepts. This is the only way to obtain such a hash — the endpoint needs `multipart/form-data`, which `qase_api` cannot send. Use `file_base64` whenever the server is not on the same machine as the file, including the hosted connector, where it is the only option. | `code`, `filename`, `file_base64` (base64 content), `file_path` (absolute path, local servers only), `file` (deprecated alias accepting either) | **core** |
59
+ | `qase_attachment_upload` | Upload one or more files and get back their hashes, which every `attachments` field accepts. This is the only way to obtain such a hash — the endpoint needs `multipart/form-data`, which `qase_api` cannot send. Pass `files` to send several in a single request; hashes come back in the same order. Use `file_base64` whenever the server is not on the same machine as the file, including the hosted connector, where it is the only option. **Qase accepts at most 20 files, 32 MB per file and 128 MB per request** — a request over any of those is refused before anything is uploaded, so split it across calls. A 507 from the API means the team account is out of attachment storage. | `code`, `files` (array, 1-20 — each: `filename`, `file_base64`, `file_path`); or the single-file form: `filename`, `file_base64` (base64 content), `file_path` (absolute path, local servers only), `file` (deprecated alias accepting either) | **core** |
60
60
  | `qase_attachment_delete` | Delete an attachment by its hash. | `hash` | discoverable |
61
61
  | `qase_external_issue_link` | Link or unlink test cases and test runs to issues in an external tracker (Jira Cloud or Jira Server). A case can be linked to several issues; a run can have only one link, and attaching a new issue replaces the previous one. Detaching a run clears its link. Read linked issues back with `qase_get`. | `code`, `entity` (enum: case, run), `action` (enum: attach, detach), `type` (enum: jira-cloud, jira-server), `links` (array: `id`, `issues` — issue keys such as `PROJ-1234`) | discoverable |
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qase/mcp-server",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "mcpName": "io.qase/mcp-server",
5
5
  "description": "Official MCP server for Qase Test Management Platform",
6
6
  "type": "module",
@@ -104,8 +104,8 @@
104
104
  "typescript": "^5.3.3"
105
105
  },
106
106
  "overrides": {
107
- "js-yaml@3": "3.15.1",
108
- "js-yaml@4": "4.3.1",
107
+ "js-yaml@3": "3.15.2",
108
+ "js-yaml@4": "4.3.2",
109
109
  "@babel/core": "^7.29.6",
110
110
  "yaml": "^2.8.3"
111
111
  },
package/server.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "url": "https://github.com/qase-tms/qase-mcp-server",
9
9
  "source": "github"
10
10
  },
11
- "version": "2.7.3",
11
+ "version": "2.7.4",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@qase/mcp-server",
16
- "version": "2.7.3",
16
+ "version": "2.7.4",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },