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 +6 -0
- package/README.md +1 -1
- package/dist/bin/api-server.cjs +21 -7
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +1 -1
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/{chunk-2KL4MSZP.js → chunk-67JUTUQD.js} +2 -2
- package/dist/chunk-QN4W5SX6.js +7 -0
- package/dist/chunk-QN4W5SX6.js.map +1 -0
- package/dist/{server-DSCKFM7K.js → server-OZJXK7AB.js} +22 -8
- package/dist/{server-DSCKFM7K.js.map → server-OZJXK7AB.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-VTBJVKBE.js +0 -7
- package/dist/chunk-VTBJVKBE.js.map +0 -1
- /package/dist/{chunk-2KL4MSZP.js.map → chunk-67JUTUQD.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
registerScheduledResultsMcpTools,
|
|
14
14
|
registerSerpIntelligenceCaptureTools,
|
|
15
15
|
resolveDeploymentProfile
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-67JUTUQD.js";
|
|
17
17
|
import "../chunk-2K74LVV7.js";
|
|
18
18
|
import "../chunk-4PNMJUSG.js";
|
|
19
19
|
import "../chunk-AK2NNIYA.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "../chunk-HU4R6BP2.js";
|
|
23
23
|
import {
|
|
24
24
|
PACKAGE_VERSION
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-QN4W5SX6.js";
|
|
26
26
|
import "../chunk-R6CO77BN.js";
|
|
27
27
|
import "../chunk-NDIAJIKQ.js";
|
|
28
28
|
import "../chunk-KSAXVGKC.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-AK2NNIYA.js";
|
|
22
22
|
import {
|
|
23
23
|
PACKAGE_VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QN4W5SX6.js";
|
|
25
25
|
import {
|
|
26
26
|
MC_PER_CREDIT,
|
|
27
27
|
PAA_BASE_CREDITS,
|
|
@@ -15972,4 +15972,4 @@ export {
|
|
|
15972
15972
|
ScheduledResultsMcpExecutor,
|
|
15973
15973
|
registerScheduledResultsMcpTools
|
|
15974
15974
|
};
|
|
15975
|
-
//# sourceMappingURL=chunk-
|
|
15975
|
+
//# sourceMappingURL=chunk-67JUTUQD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.57.2'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
resolveDeploymentProfile,
|
|
170
170
|
resolveLocalSourcebookSchemaType,
|
|
171
171
|
transcribeMediaUrl
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-67JUTUQD.js";
|
|
173
173
|
import {
|
|
174
174
|
auditImageUrls,
|
|
175
175
|
auditImages,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
} from "./chunk-FG6LJGJ7.js";
|
|
226
226
|
import {
|
|
227
227
|
PACKAGE_VERSION
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-QN4W5SX6.js";
|
|
229
229
|
import {
|
|
230
230
|
abandonExtractSettlement,
|
|
231
231
|
countSuccessfulPages,
|
|
@@ -20449,13 +20449,27 @@ function localBaseDir() {
|
|
|
20449
20449
|
return process.env.MCP_SCRAPER_OUTPUT_DIR?.trim() || join4(homedir(), "Downloads", "mcp-scraper");
|
|
20450
20450
|
}
|
|
20451
20451
|
var cached = null;
|
|
20452
|
+
var UnconfiguredBlobStore = class {
|
|
20453
|
+
kind = "unconfigured";
|
|
20454
|
+
async put() {
|
|
20455
|
+
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.");
|
|
20456
|
+
}
|
|
20457
|
+
async get() {
|
|
20458
|
+
return null;
|
|
20459
|
+
}
|
|
20460
|
+
};
|
|
20461
|
+
function runsWithoutLocalDisk(env = process.env) {
|
|
20462
|
+
return Boolean(env.VERCEL || env.AWS_LAMBDA_FUNCTION_NAME);
|
|
20463
|
+
}
|
|
20464
|
+
function resolveBlobStore(env = process.env) {
|
|
20465
|
+
const token6 = env.BLOB_READ_WRITE_TOKEN?.trim();
|
|
20466
|
+
if (token6) return new VercelBlobStore(token6);
|
|
20467
|
+
if (runsWithoutLocalDisk(env)) return new UnconfiguredBlobStore();
|
|
20468
|
+
return new LocalBlobStore(localBaseDir());
|
|
20469
|
+
}
|
|
20452
20470
|
function getBlobStore() {
|
|
20453
20471
|
if (cached) return cached;
|
|
20454
|
-
|
|
20455
|
-
cached = new VercelBlobStore(process.env.BLOB_READ_WRITE_TOKEN);
|
|
20456
|
-
} else {
|
|
20457
|
-
cached = new LocalBlobStore(localBaseDir());
|
|
20458
|
-
}
|
|
20472
|
+
cached = resolveBlobStore();
|
|
20459
20473
|
return cached;
|
|
20460
20474
|
}
|
|
20461
20475
|
var VercelBlobStore = class {
|
|
@@ -47448,4 +47462,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
47448
47462
|
export {
|
|
47449
47463
|
app
|
|
47450
47464
|
};
|
|
47451
|
-
//# sourceMappingURL=server-
|
|
47465
|
+
//# sourceMappingURL=server-OZJXK7AB.js.map
|