mcp-scraper 0.3.12 → 0.3.13
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/dist/bin/api-server.cjs +13 -3
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/browser-agent-stdio-server.cjs +1 -1
- package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
- package/dist/bin/browser-agent-stdio-server.js +2 -2
- 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-combined-stdio-server.cjs +25 -16
- package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.js +3 -3
- 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 +25 -3
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +3 -2
- package/dist/bin/mcp-stdio-server.js.map +1 -1
- package/dist/chunk-BEZJ4G32.js +7 -0
- package/dist/chunk-BEZJ4G32.js.map +1 -0
- package/dist/{chunk-BW3DGFNQ.js → chunk-QAOIH5U2.js} +2 -2
- package/dist/{chunk-7R7VBQRV.js → chunk-YGV2XZDT.js} +17 -4
- package/dist/{chunk-7R7VBQRV.js.map → chunk-YGV2XZDT.js.map} +1 -1
- package/dist/{server-CUPDJLWM.js → server-LX65PB7D.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-FB5ZJGFN.js +0 -7
- package/dist/chunk-FB5ZJGFN.js.map +0 -1
- /package/dist/{chunk-BW3DGFNQ.js.map → chunk-QAOIH5U2.js.map} +0 -0
- /package/dist/{server-CUPDJLWM.js.map → server-LX65PB7D.js.map} +0 -0
package/dist/bin/api-server.cjs
CHANGED
|
@@ -21958,7 +21958,7 @@ var PACKAGE_VERSION;
|
|
|
21958
21958
|
var init_version = __esm({
|
|
21959
21959
|
"src/version.ts"() {
|
|
21960
21960
|
"use strict";
|
|
21961
|
-
PACKAGE_VERSION = "0.3.
|
|
21961
|
+
PACKAGE_VERSION = "0.3.13";
|
|
21962
21962
|
}
|
|
21963
21963
|
});
|
|
21964
21964
|
|
|
@@ -23352,11 +23352,21 @@ function httpErrorPayload(path6, res, data) {
|
|
|
23352
23352
|
message: typeof bodyMessage === "string" && bodyMessage.trim() ? bodyMessage : `MCP Scraper HTTP ${res.status}${res.statusText ? ` ${res.statusText}` : ""} for ${path6}`
|
|
23353
23353
|
};
|
|
23354
23354
|
}
|
|
23355
|
+
function withDefaultHostedProfile(input) {
|
|
23356
|
+
const profile = input.profile?.trim() || browserServiceProfileName();
|
|
23357
|
+
const saveProfileChanges = input.saveProfileChanges ?? browserServiceProfileSaveChanges();
|
|
23358
|
+
return {
|
|
23359
|
+
...input,
|
|
23360
|
+
...profile ? { profile } : {},
|
|
23361
|
+
...typeof saveProfileChanges === "boolean" ? { saveProfileChanges } : {}
|
|
23362
|
+
};
|
|
23363
|
+
}
|
|
23355
23364
|
var HttpMcpToolExecutor;
|
|
23356
23365
|
var init_http_mcp_tool_executor = __esm({
|
|
23357
23366
|
"src/mcp/http-mcp-tool-executor.ts"() {
|
|
23358
23367
|
"use strict";
|
|
23359
23368
|
init_harvest_timeout();
|
|
23369
|
+
init_browser_service_env();
|
|
23360
23370
|
HttpMcpToolExecutor = class {
|
|
23361
23371
|
baseUrl;
|
|
23362
23372
|
apiKey;
|
|
@@ -23511,10 +23521,10 @@ var init_http_mcp_tool_executor = __esm({
|
|
|
23511
23521
|
return this.call("/facebook/video-transcribe", input, this.httpTimeoutOverrideMs ?? 24e4);
|
|
23512
23522
|
}
|
|
23513
23523
|
instagramProfileContent(input) {
|
|
23514
|
-
return this.call("/instagram/profile-content", input, this.httpTimeoutOverrideMs ?? 24e4);
|
|
23524
|
+
return this.call("/instagram/profile-content", withDefaultHostedProfile(input), this.httpTimeoutOverrideMs ?? 24e4);
|
|
23515
23525
|
}
|
|
23516
23526
|
instagramMediaDownload(input) {
|
|
23517
|
-
return this.call("/instagram/media-download", input, this.httpTimeoutOverrideMs ?? 3e5);
|
|
23527
|
+
return this.call("/instagram/media-download", withDefaultHostedProfile(input), this.httpTimeoutOverrideMs ?? 3e5);
|
|
23518
23528
|
}
|
|
23519
23529
|
mapsPlaceIntel(input) {
|
|
23520
23530
|
return this.call("/maps/place", input);
|