@gaffer-sh/mcp 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -370,7 +370,8 @@ var getReportOutputSchema = {
370
370
  size: z3.number(),
371
371
  contentType: z3.string(),
372
372
  downloadUrl: z3.string()
373
- }))
373
+ })),
374
+ urlExpiresInSeconds: z3.number().optional()
374
375
  };
375
376
  async function executeGetReport(client, input) {
376
377
  const response = await client.getReport(input.testRunId);
@@ -384,7 +385,8 @@ async function executeGetReport(client, input) {
384
385
  size: file.size,
385
386
  contentType: file.contentType,
386
387
  downloadUrl: file.downloadUrl
387
- }))
388
+ })),
389
+ urlExpiresInSeconds: response.urlExpiresInSeconds
388
390
  };
389
391
  }
390
392
  var getReportMetadata = {
@@ -396,7 +398,8 @@ Returns a list of files uploaded with the test run, including:
396
398
  - filename: The file name (e.g., "report.html", "coverage/index.html")
397
399
  - size: File size in bytes
398
400
  - contentType: MIME type (e.g., "text/html", "application/json")
399
- - downloadUrl: URL to download the file (requires authentication)
401
+ - downloadUrl: Presigned URL to download the file directly (no authentication required)
402
+ - urlExpiresInSeconds: How long the download URLs are valid (typically 5 minutes)
400
403
 
401
404
  Common report types:
402
405
  - HTML reports (Playwright, pytest-html, Vitest UI)
@@ -409,7 +412,7 @@ Use cases:
409
412
  - "Download the coverage report"
410
413
  - "What files were uploaded with this test run?"
411
414
 
412
- Note: Download URLs require the same API key authentication used for this request.`
415
+ Note: Download URLs are presigned and expire after a few minutes. Request fresh URLs if needed.`
413
416
  };
414
417
 
415
418
  // src/tools/get-slowest-tests.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gaffer-sh/mcp",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "description": "MCP server for Gaffer test history - give your AI assistant memory of your tests",
6
6
  "license": "MIT",
7
7
  "author": "Gaffer <hello@gaffer.sh>",