mcp-scraper 0.57.1 → 0.57.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 CHANGED
@@ -4,6 +4,12 @@ All notable changes to MCP Scraper are documented here. The format is based on [
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.57.2] - 2026-08-16
8
+
9
+ ### Fixed
10
+
11
+ - Blob storage no longer falls back to the local filesystem on a serverless deployment. `BLOB_READ_WRITE_TOKEN` was empty in production, so `getBlobStore()` returned a local store and every write through it — the scrape-vault fallback document and Instagram media downloads — was saved to an ephemeral path inside the function and handed back as a `file://` URL no request could read. Without a token a serverless deployment now returns a store that refuses to write and says why.
12
+
7
13
  ## [0.57.1] - 2026-08-16
8
14
 
9
15
  ### Fixed
package/README.md CHANGED
@@ -90,7 +90,7 @@ Build the branded one-click bundle:
90
90
  npm run build:mcpb
91
91
  ```
92
92
 
93
- The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.57.1`, SHA-256 `ea84195321a47e7550348be6f61ed3e6a293a679c20a6cd39e77cd37870bd636`). Install it by opening or dragging it into Claude Desktop. Claude displays the `MCP Scraper` install card, icon, and API-key configuration field from the bundle manifest.
93
+ The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.57.2`, SHA-256 `1c7ae1f1acf54fc91bc44a8dae29b1da20542a63b168f496ae91a67be9caaf33`). Install it by opening or dragging it into Claude Desktop. Claude displays the `MCP Scraper` install card, icon, and API-key configuration field from the bundle manifest.
94
94
 
95
95
  The MCPB install exposes every tool — web-intelligence plus all `browser_*` tools — through the one `mcp-scraper` server.
96
96
 
@@ -37303,16 +37303,21 @@ function byteLength(data) {
37303
37303
  function localBaseDir2() {
37304
37304
  return process.env.MCP_SCRAPER_OUTPUT_DIR?.trim() || (0, import_node_path11.join)((0, import_node_os7.homedir)(), "Downloads", "mcp-scraper");
37305
37305
  }
37306
+ function runsWithoutLocalDisk(env = process.env) {
37307
+ return Boolean(env.VERCEL || env.AWS_LAMBDA_FUNCTION_NAME);
37308
+ }
37309
+ function resolveBlobStore(env = process.env) {
37310
+ const token6 = env.BLOB_READ_WRITE_TOKEN?.trim();
37311
+ if (token6) return new VercelBlobStore(token6);
37312
+ if (runsWithoutLocalDisk(env)) return new UnconfiguredBlobStore();
37313
+ return new LocalBlobStore(localBaseDir2());
37314
+ }
37306
37315
  function getBlobStore() {
37307
37316
  if (cached) return cached;
37308
- if (process.env.BLOB_READ_WRITE_TOKEN) {
37309
- cached = new VercelBlobStore(process.env.BLOB_READ_WRITE_TOKEN);
37310
- } else {
37311
- cached = new LocalBlobStore(localBaseDir2());
37312
- }
37317
+ cached = resolveBlobStore();
37313
37318
  return cached;
37314
37319
  }
37315
- var import_node_fs7, import_node_os7, import_node_path11, LocalBlobStore, cached, VercelBlobStore;
37320
+ var import_node_fs7, import_node_os7, import_node_path11, LocalBlobStore, cached, UnconfiguredBlobStore, VercelBlobStore;
37316
37321
  var init_blob_store = __esm({
37317
37322
  "src/api/blob-store.ts"() {
37318
37323
  "use strict";
@@ -37342,6 +37347,15 @@ var init_blob_store = __esm({
37342
37347
  }
37343
37348
  };
37344
37349
  cached = null;
37350
+ UnconfiguredBlobStore = class {
37351
+ kind = "unconfigured";
37352
+ async put() {
37353
+ throw new Error("Blob storage is not configured on this deployment: set BLOB_READ_WRITE_TOKEN. Refusing to write to a local path that no request can read back.");
37354
+ }
37355
+ async get() {
37356
+ return null;
37357
+ }
37358
+ };
37345
37359
  VercelBlobStore = class {
37346
37360
  constructor(token6) {
37347
37361
  this.token = token6;
@@ -44624,7 +44638,7 @@ var PACKAGE_VERSION;
44624
44638
  var init_version = __esm({
44625
44639
  "src/version.ts"() {
44626
44640
  "use strict";
44627
- PACKAGE_VERSION = "0.57.1";
44641
+ PACKAGE_VERSION = "0.57.2";
44628
44642
  }
44629
44643
  });
44630
44644