mcp-scraper 0.31.0 → 0.32.1

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/api-server.cjs +101 -38
  3. package/dist/bin/api-server.cjs.map +1 -1
  4. package/dist/bin/api-server.js +2 -2
  5. package/dist/bin/mcp-scraper-cli.cjs +4 -1
  6. package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
  7. package/dist/bin/mcp-scraper-cli.js +3 -3
  8. package/dist/bin/mcp-scraper-install.cjs +1 -1
  9. package/dist/bin/mcp-scraper-install.cjs.map +1 -1
  10. package/dist/bin/mcp-scraper-install.js +1 -1
  11. package/dist/bin/mcp-stdio-server.cjs +9 -6
  12. package/dist/bin/mcp-stdio-server.cjs.map +1 -1
  13. package/dist/bin/mcp-stdio-server.js +3 -3
  14. package/dist/bin/paa-harvest.cjs +26 -4
  15. package/dist/bin/paa-harvest.cjs.map +1 -1
  16. package/dist/bin/paa-harvest.js +2 -2
  17. package/dist/{chunk-ZOXL3VWO.js → chunk-2FY4VBAY.js} +8 -8
  18. package/dist/chunk-2FY4VBAY.js.map +1 -0
  19. package/dist/{chunk-KAMKTSJQ.js → chunk-55M5CE5L.js} +2 -2
  20. package/dist/{chunk-ZQSHKWV4.js → chunk-PTHY7NYD.js} +4 -1
  21. package/dist/chunk-PTHY7NYD.js.map +1 -0
  22. package/dist/{chunk-YH5DRFWQ.js → chunk-RDCCU7CQ.js} +25 -6
  23. package/dist/chunk-RDCCU7CQ.js.map +1 -0
  24. package/dist/chunk-VJBS6RPB.js +7 -0
  25. package/dist/chunk-VJBS6RPB.js.map +1 -0
  26. package/dist/index.cjs +26 -4
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +9 -0
  29. package/dist/index.d.ts +9 -0
  30. package/dist/index.js +2 -2
  31. package/dist/{server-DS3ZSNNO.js → server-GXTYKIAX.js} +77 -35
  32. package/dist/{server-DS3ZSNNO.js.map → server-GXTYKIAX.js.map} +1 -1
  33. package/dist/{worker-RYP5EOV5.js → worker-7DJYUACV.js} +3 -3
  34. package/docs/mcp-tool-manifest.generated.json +7 -7
  35. package/package.json +1 -1
  36. package/dist/chunk-W3GYPHFL.js +0 -7
  37. package/dist/chunk-W3GYPHFL.js.map +0 -1
  38. package/dist/chunk-YH5DRFWQ.js.map +0 -1
  39. package/dist/chunk-ZOXL3VWO.js.map +0 -1
  40. package/dist/chunk-ZQSHKWV4.js.map +0 -1
  41. /package/dist/{chunk-KAMKTSJQ.js.map → chunk-55M5CE5L.js.map} +0 -0
  42. /package/dist/{worker-RYP5EOV5.js.map → worker-7DJYUACV.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  harvest
4
- } from "../chunk-YH5DRFWQ.js";
4
+ } from "../chunk-RDCCU7CQ.js";
5
5
  import {
6
6
  browserServiceApiKey
7
7
  } from "../chunk-MTSBI7ZH.js";
8
8
  import "../chunk-K443GQY5.js";
9
- import "../chunk-ZQSHKWV4.js";
9
+ import "../chunk-PTHY7NYD.js";
10
10
  import "../chunk-M2S27J6Z.js";
11
11
  import "../chunk-ICT7DDHL.js";
12
12
 
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_MAPS_PROXY_MODE,
18
18
  DEFAULT_PROXY_MODE
19
- } from "./chunk-ZQSHKWV4.js";
19
+ } from "./chunk-PTHY7NYD.js";
20
20
  import {
21
21
  PACKAGE_VERSION
22
- } from "./chunk-W3GYPHFL.js";
22
+ } from "./chunk-VJBS6RPB.js";
23
23
  import {
24
24
  MC_PER_CREDIT
25
25
  } from "./chunk-4767BA2O.js";
@@ -3649,9 +3649,9 @@ var MapsSearchInputSchema = {
3649
3649
  gl: z.string().length(2).default("us").describe("Google country code inferred from location."),
3650
3650
  hl: z.string().length(2).default("en").describe("Language inferred from user request."),
3651
3651
  maxResults: z.number().int().min(1).max(50).default(10).describe("Number of candidates to return. Default 10, maximum 50."),
3652
- includeServices: z.boolean().default(false).describe("Open each returned Google Business Profile and include configured services and areas served when available. Does not collect review cards."),
3653
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Leave unset for the default direct browser route. Google localization comes from the city in the query plus UULE, gl, and hl. location is an explicit residential-proxy override."),
3654
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override when proxyMode is location."),
3652
+ includeServices: z.boolean().default(false).describe("Open each returned business profile to include its configured services and areas served when available. Adds a page visit per business; does not collect review cards."),
3653
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Leave unset for the default route (stealth browser on the managed ISP proxy, retried on a fresh session when Google blocks). Localization comes from the city in the query plus gl/hl. location forces an explicit residential proxy \u2014 not recommended for Google."),
3654
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override, only used when proxyMode is location."),
3655
3655
  debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
3656
3656
  };
3657
3657
  var DirectoryWorkflowInputSchema = {
@@ -3665,7 +3665,7 @@ var DirectoryWorkflowInputSchema = {
3665
3665
  includeZipGroups: z.boolean().default(true).describe("Attach ZIP groups from a configured US ZIPS CSV when available (MCP_SCRAPER_USZIPS_CSV_PATH or usZipsCsvPath)."),
3666
3666
  usZipsCsvPath: z.string().optional().describe("Local/test-only path to a US ZIPS CSV (state_abbr, zipcode, county, city columns). Deployed APIs should use MCP_SCRAPER_USZIPS_CSV_PATH instead. For ZIP enrichment, set MCP_SCRAPER_USZIPS_CSV_PATH on the server, or pass this in local/test mode."),
3667
3667
  saveCsv: z.boolean().default(true).describe("Save a directory-ready CSV of results to the MCP Scraper output directory and return its path."),
3668
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy behavior per city search. Leave unset for the direct localized Google route; location is an explicit residential-proxy override."),
3668
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy behavior per city search. Leave unset for the default route (stealth browser on the managed ISP proxy, retried fresh on a Google block). location forces an explicit residential proxy \u2014 not recommended for Google."),
3669
3669
  proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional ZIP override for proxy targeting; normally omitted."),
3670
3670
  debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
3671
3671
  };
@@ -5477,7 +5477,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
5477
5477
  }, async (input) => formatMapsPlaceIntel(await executor.mapsPlaceIntel(input), input));
5478
5478
  server.registerTool("maps_search", {
5479
5479
  title: "Google Maps Business Search",
5480
- description: "Search Google local results for multiple businesses by category, niche, or local market \u2014 leads, prospects, competitors, or beyond the 3-pack. It paginates the rendered local-results list, opens each exact business card, then closes the profile dialog before continuing. Set includeServices for services and areas served; review cards are never collected by this tool.",
5480
+ description: "Search Google local results for multiple businesses by category, niche, or local market \u2014 leads, prospects, competitors, or beyond the 3-pack. Reaches the local-results list from the organic page and paginates it, returning up to 50 candidates (default 10) with names, place URLs, CIDs, and ratings. Leave proxyMode unset. Set includeServices to also open each business profile for its services and areas served; review cards are never collected by this tool.",
5481
5481
  inputSchema: MapsSearchInputSchema,
5482
5482
  outputSchema: recordOutputSchema("maps_search", MapsSearchOutputSchema),
5483
5483
  annotations: liveWebToolAnnotations("Google Maps Business Search")
@@ -10110,4 +10110,4 @@ export {
10110
10110
  MEMORY_TOOL_SCHEMAS,
10111
10111
  registerMemoryMcpTools
10112
10112
  };
10113
- //# sourceMappingURL=chunk-ZOXL3VWO.js.map
10113
+ //# sourceMappingURL=chunk-2FY4VBAY.js.map