mcp-scraper 0.3.12 → 0.3.14

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 (33) hide show
  1. package/dist/bin/api-server.cjs +13 -3
  2. package/dist/bin/api-server.cjs.map +1 -1
  3. package/dist/bin/api-server.js +1 -1
  4. package/dist/bin/browser-agent-stdio-server.cjs +4 -4
  5. package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
  6. package/dist/bin/browser-agent-stdio-server.js +2 -2
  7. package/dist/bin/mcp-scraper-cli.cjs +1 -1
  8. package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
  9. package/dist/bin/mcp-scraper-cli.js +1 -1
  10. package/dist/bin/mcp-scraper-combined-stdio-server.cjs +28 -19
  11. package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
  12. package/dist/bin/mcp-scraper-combined-stdio-server.js +3 -3
  13. package/dist/bin/mcp-scraper-install.cjs +1 -1
  14. package/dist/bin/mcp-scraper-install.cjs.map +1 -1
  15. package/dist/bin/mcp-scraper-install.js +1 -1
  16. package/dist/bin/mcp-stdio-server.cjs +25 -3
  17. package/dist/bin/mcp-stdio-server.cjs.map +1 -1
  18. package/dist/bin/mcp-stdio-server.js +3 -2
  19. package/dist/bin/mcp-stdio-server.js.map +1 -1
  20. package/dist/chunk-3QHZPR4U.js +7 -0
  21. package/dist/chunk-3QHZPR4U.js.map +1 -0
  22. package/dist/{chunk-BW3DGFNQ.js → chunk-AX7UBYLG.js} +5 -5
  23. package/dist/chunk-AX7UBYLG.js.map +1 -0
  24. package/dist/{chunk-7R7VBQRV.js → chunk-HM6FHV5U.js} +17 -4
  25. package/dist/{chunk-7R7VBQRV.js.map → chunk-HM6FHV5U.js.map} +1 -1
  26. package/dist/{server-CUPDJLWM.js → server-ILIVSPNY.js} +3 -3
  27. package/docs/mcp-tool-craft-lint.generated.md +1 -1
  28. package/docs/mcp-tool-manifest.generated.json +1 -1
  29. package/package.json +1 -1
  30. package/dist/chunk-BW3DGFNQ.js.map +0 -1
  31. package/dist/chunk-FB5ZJGFN.js +0 -7
  32. package/dist/chunk-FB5ZJGFN.js.map +0 -1
  33. /package/dist/{server-CUPDJLWM.js.map → server-ILIVSPNY.js.map} +0 -0
@@ -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.12";
21961
+ PACKAGE_VERSION = "0.3.14";
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);