mcp-scraper 0.83.3 → 0.83.4

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 CHANGED
@@ -4,6 +4,13 @@ All notable changes to MCP Scraper are documented here. The format is based on [
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.83.4] - 2026-09-01
8
+
9
+ ### Fixed
10
+
11
+ - Collapsed repeated route-and-selector setup candidates into one runtime rule, preventing one semantic CTA interaction from emitting duplicate events.
12
+ - Published `data-xray-event` selectors as semantic rules so the Pixel records the element's live CTA placement, component, action, destination, plan, value, currency, and content dimensions.
13
+
7
14
  ## [0.83.3] - 2026-09-01
8
15
 
9
16
  ### Fixed
@@ -1600,6 +1607,7 @@ All notable changes to MCP Scraper are documented here. The format is based on [
1600
1607
  - Provider-specific connection data is normalized into one agent-facing contract.
1601
1608
 
1602
1609
  [Unreleased]: https://github.com/VilovietaSEO/mcp-scraper/compare/v0.83.3...HEAD
1610
+ [0.83.4]: https://github.com/VilovietaSEO/mcp-scraper/compare/v0.83.3...v0.83.4
1603
1611
  [0.83.3]: https://github.com/VilovietaSEO/mcp-scraper/compare/v0.83.2...v0.83.3
1604
1612
  [0.83.2]: https://github.com/VilovietaSEO/mcp-scraper/compare/v0.83.1...v0.83.2
1605
1613
  [0.83.1]: https://github.com/VilovietaSEO/mcp-scraper/compare/v0.83.0...v0.83.1
package/README.md CHANGED
@@ -175,7 +175,7 @@ Build the branded one-click bundle:
175
175
  npm run build:mcpb
176
176
  ```
177
177
 
178
- The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.83.3`, SHA-256 `7b13fa6fea7f37a4ae1c546a329323b956cfef823352541d966952c015d817dc`). Install it by opening or dragging it into Claude Desktop. Claude displays the `MCP Scraper` install card, icon, API-key configuration field, and manually curated current-release message from the bundle manifest.
178
+ The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.83.4`, SHA-256 `6c28dbd3fc92912da0965efe80e093d47de4ed209e5b7646b4a97d4cdb23fb1b`). Install it by opening or dragging it into Claude Desktop. Claude displays the `MCP Scraper` install card, icon, API-key configuration field, and manually curated current-release message from the bundle manifest.
179
179
 
180
180
  The MCPB install exposes every tool — web-intelligence plus all `browser_*` tools — through the one `mcp-scraper` server.
181
181
 
@@ -17,7 +17,7 @@ loadDotEnv();
17
17
  async function main() {
18
18
  const [{ serve }, { app, personalAssistantProductionStartup }, { startWorker }, { migrate }] = await Promise.all([
19
19
  import("@hono/node-server"),
20
- import("../server-3WEFWWTX.js"),
20
+ import("../server-DMQDHAEC.js"),
21
21
  import("../worker-FM3ZRDY4.js"),
22
22
  import("../db-Z34LPZNR.js")
23
23
  ]);
@@ -19,7 +19,7 @@ import {
19
19
  import "../chunk-GGZEC22A.js";
20
20
  import {
21
21
  PACKAGE_VERSION
22
- } from "../chunk-T5IM6BDD.js";
22
+ } from "../chunk-GMOXDXON.js";
23
23
 
24
24
  // src/cli/human-cli.ts
25
25
  import { Command } from "commander";
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runMcpScraperStdio
4
- } from "../chunk-PUSG46S2.js";
5
- import "../chunk-RHP6AZOJ.js";
4
+ } from "../chunk-52TSKUQQ.js";
5
+ import "../chunk-VP4FGTTS.js";
6
6
  import "../chunk-PGJQDMC2.js";
7
7
  import "../chunk-DNM65UCK.js";
8
8
  import "../chunk-T3MZISOF.js";
@@ -13,7 +13,7 @@ import "../chunk-OPQIGAFB.js";
13
13
  import "../chunk-UXVT7FWW.js";
14
14
  import "../chunk-BGD7U3AE.js";
15
15
  import "../chunk-GGZEC22A.js";
16
- import "../chunk-T5IM6BDD.js";
16
+ import "../chunk-GMOXDXON.js";
17
17
  import "../chunk-YXNDOQXN.js";
18
18
 
19
19
  // src/mcp/thorbit-restricted-tool-surface.ts
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-UXVT7FWW.js";
5
5
  import {
6
6
  PACKAGE_VERSION
7
- } from "../chunk-T5IM6BDD.js";
7
+ } from "../chunk-GMOXDXON.js";
8
8
 
9
9
  // bin/mcp-scraper-install.ts
10
10
  var noColor = process.argv.includes("--no-color") || process.env.NO_COLOR !== void 0 || process.env.FORCE_COLOR === "0" || !process.stdout.isTTY;
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runMcpScraperStdio
4
- } from "../chunk-PUSG46S2.js";
5
- import "../chunk-RHP6AZOJ.js";
4
+ } from "../chunk-52TSKUQQ.js";
5
+ import "../chunk-VP4FGTTS.js";
6
6
  import "../chunk-PGJQDMC2.js";
7
7
  import "../chunk-DNM65UCK.js";
8
8
  import "../chunk-T3MZISOF.js";
@@ -13,7 +13,7 @@ import "../chunk-OPQIGAFB.js";
13
13
  import "../chunk-UXVT7FWW.js";
14
14
  import "../chunk-BGD7U3AE.js";
15
15
  import "../chunk-GGZEC22A.js";
16
- import "../chunk-T5IM6BDD.js";
16
+ import "../chunk-GMOXDXON.js";
17
17
  import "../chunk-YXNDOQXN.js";
18
18
 
19
19
  // bin/mcp-stdio-server.ts
@@ -12,13 +12,13 @@ import {
12
12
  registerScheduledResultsMcpTools,
13
13
  registerSerpIntelligenceCaptureTools,
14
14
  resolveDeploymentProfile
15
- } from "./chunk-RHP6AZOJ.js";
15
+ } from "./chunk-VP4FGTTS.js";
16
16
  import {
17
17
  renderInstallTerminal
18
18
  } from "./chunk-UXVT7FWW.js";
19
19
  import {
20
20
  PACKAGE_VERSION
21
- } from "./chunk-T5IM6BDD.js";
21
+ } from "./chunk-GMOXDXON.js";
22
22
 
23
23
  // src/mcp/stdio-runtime.ts
24
24
  import { readFileSync } from "fs";
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var PACKAGE_VERSION = "0.83.3";
2
+ var PACKAGE_VERSION = "0.83.4";
3
3
 
4
4
  export {
5
5
  PACKAGE_VERSION
@@ -50,7 +50,7 @@ import {
50
50
  } from "./chunk-BGD7U3AE.js";
51
51
  import {
52
52
  PACKAGE_VERSION
53
- } from "./chunk-T5IM6BDD.js";
53
+ } from "./chunk-GMOXDXON.js";
54
54
  import {
55
55
  PUBLIC_ERROR_CODES,
56
56
  buildPublicErrorEnvelope,
@@ -373,7 +373,7 @@ import {
373
373
  resolveLocalSourcebookSchemaType,
374
374
  transcribeMediaUrl,
375
375
  transitionAnalyticsExperiment
376
- } from "./chunk-RHP6AZOJ.js";
376
+ } from "./chunk-VP4FGTTS.js";
377
377
  import {
378
378
  auditImageUrls,
379
379
  auditImages,
@@ -494,7 +494,7 @@ import {
494
494
  } from "./chunk-GGZEC22A.js";
495
495
  import {
496
496
  PACKAGE_VERSION
497
- } from "./chunk-T5IM6BDD.js";
497
+ } from "./chunk-GMOXDXON.js";
498
498
  import {
499
499
  CaptchaError,
500
500
  MapsSearchIncompletePageError,
@@ -53283,6 +53283,9 @@ async function requireSetupEntitlement(userId) {
53283
53283
  throw new AnalyticsRepositoryError("analytics_entitlement_required", "A current X-Ray entitlement is required for site setup.", 403);
53284
53284
  }
53285
53285
  }
53286
+ function analyticsSemanticEventName(selector) {
53287
+ return /^\[data-xray-event=(["'])([a-z][a-z0-9_]{1,79})\1\]$/.exec(selector)?.[2] ?? null;
53288
+ }
53286
53289
  function analyticsSiteSetupService() {
53287
53290
  const db = getAnalyticsPool();
53288
53291
  return new AnalyticsSiteSetupService({
@@ -53295,20 +53298,30 @@ function analyticsSiteSetupService() {
53295
53298
  hex[16] = ["8", "9", "a", "b"][Number.parseInt(hex[16], 16) % 4];
53296
53299
  return `${hex.slice(0, 8).join("")}-${hex.slice(8, 12).join("")}-${hex.slice(12, 16).join("")}-${hex.slice(16, 20).join("")}-${hex.slice(20).join("")}`;
53297
53300
  };
53298
- const eventRules = record7.candidates.filter((candidate) => candidate.disposition === "recommended" && Boolean(candidate.selector)).slice(0, 250).map((candidate) => ({
53299
- id: uuidFor(candidate.candidateId),
53300
- version: 1,
53301
- name: `xray_${candidate.candidateId}`.slice(0, 120),
53302
- eventName: candidate.eventName,
53303
- triggerKind: candidate.action === "submit" ? "form" : "click",
53304
- selector: candidate.selector,
53305
- path: candidate.routePath,
53306
- pathMatch: "exact",
53307
- hostnames: [hostname],
53308
- metadata: candidate.context,
53309
- oncePerSession: false,
53310
- expectedMatches: { min: 1, max: Math.max(1, Math.min(100, candidate.occurrenceCount || 20)) }
53311
- }));
53301
+ const groupedCandidates = /* @__PURE__ */ new Map();
53302
+ for (const candidate of record7.candidates.filter((item) => item.disposition === "recommended" && Boolean(item.selector)).slice(0, 250)) {
53303
+ const key3 = `${candidate.routePath}\0${candidate.selector}`;
53304
+ const existing = groupedCandidates.get(key3);
53305
+ if (existing) existing.expectedMatches = Math.min(100, existing.expectedMatches + Math.max(1, candidate.occurrenceCount || 1));
53306
+ else groupedCandidates.set(key3, { candidate, expectedMatches: Math.max(1, Math.min(100, candidate.occurrenceCount || 1)) });
53307
+ }
53308
+ const eventRules = [...groupedCandidates.entries()].map(([groupKey, { candidate, expectedMatches }]) => {
53309
+ const semanticEventName = analyticsSemanticEventName(candidate.selector);
53310
+ return {
53311
+ id: uuidFor(groupKey),
53312
+ version: 1,
53313
+ name: `xray_${candidate.candidateId}`.slice(0, 120),
53314
+ eventName: semanticEventName ?? candidate.eventName,
53315
+ triggerKind: semanticEventName ? "semantic" : candidate.action === "submit" ? "form" : "click",
53316
+ selector: candidate.selector,
53317
+ path: candidate.routePath,
53318
+ pathMatch: "exact",
53319
+ hostnames: [hostname],
53320
+ metadata: candidate.context,
53321
+ oncePerSession: false,
53322
+ expectedMatches: { min: 1, max: expectedMatches }
53323
+ };
53324
+ });
53312
53325
  const manifest = await publishAnalyticsRuntimeManifest({
53313
53326
  pool: db,
53314
53327
  ownerUserId: Number(record7.ownerId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-scraper",
3
- "version": "0.83.3",
3
+ "version": "0.83.4",
4
4
  "description": "MCP server for MCP Scraper web intelligence tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",