mcp-scraper 0.2.15 → 0.2.16

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/README.md +4 -4
  2. package/dist/bin/api-server.cjs +11 -10
  3. package/dist/bin/api-server.cjs.map +1 -1
  4. package/dist/bin/api-server.js +1 -1
  5. package/dist/bin/browser-agent-stdio-server.cjs +1 -1
  6. package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
  7. package/dist/bin/browser-agent-stdio-server.js +2 -2
  8. package/dist/bin/mcp-scraper-cli.cjs +1 -1
  9. package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
  10. package/dist/bin/mcp-scraper-cli.js +1 -1
  11. package/dist/bin/mcp-scraper-combined-stdio-server.cjs +10 -9
  12. package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
  13. package/dist/bin/mcp-scraper-combined-stdio-server.js +3 -3
  14. package/dist/bin/mcp-scraper-install.cjs +3 -3
  15. package/dist/bin/mcp-scraper-install.cjs.map +1 -1
  16. package/dist/bin/mcp-scraper-install.js +3 -3
  17. package/dist/bin/mcp-scraper-install.js.map +1 -1
  18. package/dist/bin/mcp-stdio-server.cjs +10 -9
  19. package/dist/bin/mcp-stdio-server.cjs.map +1 -1
  20. package/dist/bin/mcp-stdio-server.js +2 -2
  21. package/dist/{chunk-TIPUIEJN.js → chunk-ATJAINML.js} +2 -2
  22. package/dist/{chunk-Q4DFONIK.js → chunk-FMC3V54I.js} +11 -10
  23. package/dist/chunk-FMC3V54I.js.map +1 -0
  24. package/dist/chunk-KE4JZDLV.js +7 -0
  25. package/dist/chunk-KE4JZDLV.js.map +1 -0
  26. package/dist/{server-VD2TD3AD.js → server-KSEQLZNP.js} +4 -4
  27. package/dist/server-KSEQLZNP.js.map +1 -0
  28. package/package.json +1 -1
  29. package/dist/chunk-2CQXHSWC.js +0 -7
  30. package/dist/chunk-2CQXHSWC.js.map +0 -1
  31. package/dist/chunk-Q4DFONIK.js.map +0 -1
  32. package/dist/server-VD2TD3AD.js.map +0 -1
  33. /package/dist/{chunk-TIPUIEJN.js.map → chunk-ATJAINML.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-F44RBOJ5.js";
10
10
  import {
11
11
  PACKAGE_VERSION
12
- } from "../chunk-2CQXHSWC.js";
12
+ } from "../chunk-KE4JZDLV.js";
13
13
 
14
14
  // src/cli/human-cli.ts
15
15
  import { Command } from "commander";
@@ -141,7 +141,7 @@ var import_node_os2 = require("os");
141
141
  var import_node_path2 = require("path");
142
142
 
143
143
  // src/version.ts
144
- var PACKAGE_VERSION = "0.2.15";
144
+ var PACKAGE_VERSION = "0.2.16";
145
145
 
146
146
  // src/mcp/browser-agent-tool-schemas.ts
147
147
  var import_zod = require("zod");
@@ -1471,7 +1471,8 @@ ${adBlocks}`,
1471
1471
  `
1472
1472
  ---
1473
1473
  \u{1F4A1} **Tips**
1474
- - Transcribe video ads: use \`facebook_ad_transcribe\` with the \`videoUrl\` above
1474
+ - Transcribe video ads: use \`facebook_ad_transcribe\` with the direct \`videoUrl\` above
1475
+ - Transcribe organic Facebook reels/posts: use \`facebook_video_transcribe\` with the public Facebook URL
1475
1476
  - Find other advertisers: use \`facebook_ad_search\``
1476
1477
  ].filter(Boolean).join("\n");
1477
1478
  return {
@@ -1917,7 +1918,7 @@ ${text}`,
1917
1918
  ${chunkRows}` : "",
1918
1919
  `
1919
1920
  ---
1920
- \u{1F4A1} Get more ads from this advertiser: use \`facebook_page_intel\``
1921
+ \u{1F4A1} Get more ads from this advertiser: use \`facebook_page_intel\`. For public Facebook reel/post URLs, use \`facebook_video_transcribe\`.`
1921
1922
  ].filter(Boolean).join("\n");
1922
1923
  return oneBlock(full);
1923
1924
  }
@@ -1953,7 +1954,7 @@ ${text}`,
1953
1954
  ${chunkRows}` : "",
1954
1955
  `
1955
1956
  ---
1956
- \u{1F4A1} To download the extracted MP4, call the Facebook media endpoint with the extracted MP4 URL.`
1957
+ \u{1F4A1} Use \`videoUrl\` as the extracted MP4 for download or follow-up processing. Use \`facebook_ad_transcribe\` only for Ad Library videoUrl values.`
1957
1958
  ].filter(Boolean).join("\n");
1958
1959
  return {
1959
1960
  ...oneBlock(full),
@@ -2030,10 +2031,10 @@ var FacebookAdSearchInputSchema = {
2030
2031
  maxResults: import_zod2.z.number().int().min(1).max(20).default(10)
2031
2032
  };
2032
2033
  var FacebookAdTranscribeInputSchema = {
2033
- videoUrl: import_zod2.z.string().url().describe("Facebook CDN video URL from a facebook_page_intel result")
2034
+ videoUrl: import_zod2.z.string().url().describe("Direct Facebook CDN video URL from a facebook_page_intel ad result. Do not pass a public Facebook reel/post/share URL here; use facebook_video_transcribe for organic Facebook URLs.")
2034
2035
  };
2035
2036
  var FacebookVideoTranscribeInputSchema = {
2036
- url: import_zod2.z.string().url().describe("Organic Facebook reel, video, watch, or share URL. The tool renders the page, extracts the best public Facebook CDN MP4 URL, then transcribes it."),
2037
+ url: import_zod2.z.string().url().describe("Organic Facebook reel, video, watch, post, or share URL from facebook.com, m.facebook.com, or fb.watch. The tool renders the page, extracts the best matching public Facebook CDN MP4 URL, then transcribes it. Use this when the user pastes a normal Facebook video page URL and asks for the transcript or downloadable MP4."),
2037
2038
  quality: import_zod2.z.enum(["best", "hd", "sd"]).default("best").describe("Preferred progressive MP4 quality. Use best by default; hd prefers the highest HD progressive URL; sd forces the SD URL.")
2038
2039
  };
2039
2040
  var MapsPlaceIntelInputSchema = {
@@ -2895,7 +2896,7 @@ function registerPaaExtractorMcpTools(server2, executor, options = {}) {
2895
2896
  }, async (input) => formatYoutubeTranscribe(await executor.youtubeTranscribe(input), input));
2896
2897
  server2.registerTool("facebook_page_intel", {
2897
2898
  title: "Facebook Advertiser Ad Intel",
2898
- description: withReportNote("Harvest ads from a Facebook advertiser. Returns ad copy, headlines, CTAs, creative type, status, landing URLs, and video URLs ready for transcription. Accepts pageId, libraryId, or a brand/advertiser name as query. Use after facebook_ad_search when possible."),
2899
+ description: withReportNote("Harvest ads from a Facebook advertiser. Returns ad copy, headlines, CTAs, creative type, status, landing URLs, and direct ad video URLs ready for facebook_ad_transcribe. Accepts pageId, libraryId, or a brand/advertiser name as query. Use after facebook_ad_search when possible. For normal public Facebook reels/posts/watch/share URLs, use facebook_video_transcribe instead."),
2899
2900
  inputSchema: FacebookPageIntelInputSchema,
2900
2901
  outputSchema: FacebookPageIntelOutputSchema,
2901
2902
  annotations: liveWebToolAnnotations("Facebook Advertiser Ad Intel")
@@ -2909,13 +2910,13 @@ function registerPaaExtractorMcpTools(server2, executor, options = {}) {
2909
2910
  }, async (input) => formatFacebookAdSearch(await executor.facebookAdSearch(input), input));
2910
2911
  server2.registerTool("facebook_ad_transcribe", {
2911
2912
  title: "Facebook Ad Transcription",
2912
- description: "Transcribe audio from a Facebook ad video. Returns full transcript and timestamped chunks. Use the videoUrl value from facebook_page_intel results.",
2913
+ description: "Transcribe audio from a Facebook ad video CDN URL. Returns full transcript and timestamped chunks. Use only with the direct videoUrl value from facebook_page_intel results, not public Facebook post/reel/share URLs.",
2913
2914
  inputSchema: FacebookAdTranscribeInputSchema,
2914
2915
  annotations: liveWebToolAnnotations("Facebook Ad Transcription")
2915
2916
  }, async (input) => formatFacebookAdTranscribe(await executor.facebookAdTranscribe(input), input));
2916
2917
  server2.registerTool("facebook_video_transcribe", {
2917
2918
  title: "Facebook Organic Video Transcription",
2918
- description: withReportNote("Transcribe audio from an organic Facebook reel, video, watch, or share URL. Renders the Facebook page, extracts the best public Facebook CDN MP4 URL from the page state, then returns the full transcript, timestamped chunks, and extracted MP4 URL."),
2919
+ description: withReportNote("Transcribe audio from an organic Facebook reel, video, watch, post, or share URL, including fb.watch links. Use this when the user pastes a normal Facebook video page URL and wants the transcript or downloadable MP4. Renders the Facebook page in a browser, selects the best matching public Facebook CDN MP4 URL from page state, then returns sourceUrl, resolved pageUrl, videoId, ownerName, selectedQuality, bitrate, videoDurationSec, extracted MP4 URL, full transcript, and timestamped chunks."),
2919
2920
  inputSchema: FacebookVideoTranscribeInputSchema,
2920
2921
  outputSchema: FacebookVideoTranscribeOutputSchema,
2921
2922
  annotations: liveWebToolAnnotations("Facebook Organic Video Transcription")