mcp-scraper 0.67.0 → 0.68.0
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 +33 -1
- package/README.md +2 -2
- package/dist/{analytics-repository-RUXBFSFX.js → analytics-repository-DJCV6HCX.js} +38 -3
- package/dist/bin/api-server.cjs +12041 -7009
- package/dist/bin/api-server.js +3 -3
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +3 -3
- package/dist/bin/mcp-scraper-install.js +2 -2
- package/dist/bin/mcp-stdio-server.cjs +299 -15
- package/dist/bin/mcp-stdio-server.js +4 -4
- package/dist/{chunk-CNLLTD5B.js → chunk-SZEDXVJH.js} +2169 -83
- package/dist/{chunk-GT63KEUB.js → chunk-TV76V5OO.js} +1 -1
- package/dist/{chunk-XOOKZYZG.js → chunk-V6H7NGSV.js} +298 -14
- package/dist/{chunk-AYJHI2FK.js → chunk-WNL42AMC.js} +2 -2
- package/dist/{chunk-IHDTONZV.js → chunk-XKWTKQ7Y.js} +2 -2
- package/dist/{chunk-LCGTNWOT.js → chunk-YUGC5K35.js} +1 -1
- package/dist/{extract-bundle-QQIYJSBW.js → extract-bundle-TBETDXWP.js} +2 -2
- package/dist/{server-MFVYRB6I.js → server-PWHUIHZO.js} +9617 -7001
- package/dist/{site-extract-repository-7EP6UX6I.js → site-extract-repository-I5PHDLPQ.js} +2 -2
- package/dist/{worker-JGWV2LID.js → worker-HUEIDH6F.js} +1 -1
- package/package.json +2 -1
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-VXLU74YZ.js";
|
|
26
26
|
import {
|
|
27
27
|
PACKAGE_VERSION
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TV76V5OO.js";
|
|
29
29
|
import {
|
|
30
30
|
createPrivateArtifact,
|
|
31
31
|
privateArtifactOwnerId,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
PAA_QUESTION_CREDITS,
|
|
39
39
|
PAGE_SCRAPE_CREDITS,
|
|
40
40
|
SERP_SEARCH_CREDITS
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WNL42AMC.js";
|
|
42
42
|
import {
|
|
43
43
|
PUBLIC_ERROR_CODES,
|
|
44
44
|
buildPublicErrorEnvelope,
|
|
@@ -769,6 +769,7 @@ var FIELD_DESCRIPTIONS = {
|
|
|
769
769
|
artifactSelection: "Explicit HTML artifact choice; omit to preserve the current selection.",
|
|
770
770
|
assetId: "Opaque image asset identifier returned by an image asset tool.",
|
|
771
771
|
attributionModel: "Attribution model applied to the report; defaults to first touch.",
|
|
772
|
+
answered: "Optional call-answer state required for this conversion rule to match.",
|
|
772
773
|
authoringInstructions: "Presentation guidance for authors using this saved template; executable prompts or code are rejected.",
|
|
773
774
|
baseRevision: "Last revision read by the caller; supply it to reject an update if the record changed meanwhile.",
|
|
774
775
|
brand: "Validated visual-brand settings applied to the generated form.",
|
|
@@ -783,6 +784,7 @@ var FIELD_DESCRIPTIONS = {
|
|
|
783
784
|
consentText: "Optional consent disclosure displayed with the form submission control.",
|
|
784
785
|
content: "Complete content to route, validate, or store; do not substitute a partial excerpt when full content is required.",
|
|
785
786
|
conversionKind: "Optional normalized conversion event kind filter.",
|
|
787
|
+
condition: "Declarative event conditions that must match before X-Ray creates a conversion.",
|
|
786
788
|
countryCode: "Two-letter country code used to filter analytics rows.",
|
|
787
789
|
createdAfter: "Inclusive ISO 8601 lower bound for asset creation time.",
|
|
788
790
|
createdBefore: "Exclusive ISO 8601 upper bound for asset creation time.",
|
|
@@ -795,8 +797,37 @@ var FIELD_DESCRIPTIONS = {
|
|
|
795
797
|
deviceClass: "Optional normalized device-class filter.",
|
|
796
798
|
dimension: "Dimension used to group returned analytics rows.",
|
|
797
799
|
eventName: "Optional normalized analytics event-name filter.",
|
|
800
|
+
eventId: "Caller-owned canonical event identifier used for end-to-end deduplication.",
|
|
801
|
+
eventKind: "Canonical event family used for journey storage and conversion-rule evaluation.",
|
|
802
|
+
occurredAt: "ISO 8601 timestamp when the source event actually occurred.",
|
|
803
|
+
sourceEventId: "Stable identifier assigned by the source system for idempotent ingestion.",
|
|
804
|
+
sourceAccountRef: "Stable non-secret account identifier at the phone, CRM, or event source.",
|
|
805
|
+
serviceConnectionRef: "Optional MCP Scraper connected-service identifier used for governed provider actions.",
|
|
806
|
+
webhookSecret: "Provider webhook validation secret; it is encrypted at rest and never returned.",
|
|
807
|
+
provider: "Supported phone, CRM, or advertising provider for this governed connection.",
|
|
808
|
+
personId: "Opaque X-Ray person identifier returned by an attributed-people or journey result.",
|
|
809
|
+
visitorId: "Consented first-party visitor identifier used for deterministic journey linking.",
|
|
810
|
+
sessionId: "First-party session identifier used for deterministic journey linking.",
|
|
811
|
+
personRef: "Opaque source-system person reference; do not place raw contact data here.",
|
|
812
|
+
callId: "Stable call identifier assigned by the phone provider.",
|
|
813
|
+
dealId: "Stable CRM deal or opportunity identifier.",
|
|
814
|
+
orderId: "Stable order identifier used for conversion deduplication and reconciliation.",
|
|
815
|
+
stageId: "Exact CRM stage identifier required for the conversion rule to match.",
|
|
816
|
+
minimumCallDurationSeconds: "Minimum connected call duration required for the conversion rule to match.",
|
|
817
|
+
excludedTags: "Event tags that prevent this conversion rule from matching, such as spam.",
|
|
818
|
+
requiredTags: "Event tags that must all be present before this conversion rule matches.",
|
|
819
|
+
defaultValueMinor: "Optional default conversion value in the currency minor unit.",
|
|
820
|
+
defaultCurrency: "Three-letter default currency code used when a matched event has no value currency.",
|
|
821
|
+
enabled: "Whether the new rule should begin evaluating events immediately.",
|
|
822
|
+
schemaVersion: "Canonical X-Ray event schema version; use version 1.",
|
|
823
|
+
canonicalUrl: "Canonical public page URL associated with the event.",
|
|
824
|
+
sourceName: "Normalized acquisition-source name associated with the event.",
|
|
825
|
+
valueMinor: "Monetary event value in the smallest unit of the supplied currency.",
|
|
826
|
+
currency: "Three-letter ISO currency code for the event value.",
|
|
827
|
+
clickIds: "Native advertising click identifiers preserved for deterministic offline conversion matching.",
|
|
828
|
+
properties: "Bounded non-secret event properties used for reporting and declarative rule evaluation.",
|
|
798
829
|
expiresInDays: "Requested view-link lifetime in days; the server enforces its maximum.",
|
|
799
|
-
externalDatasetId: "
|
|
830
|
+
externalDatasetId: "Provider destination identifier already owned by the connected account.",
|
|
800
831
|
fields: "Ordered form-field definitions to render and validate for submissions.",
|
|
801
832
|
filename: "Original CSV filename retained for the import receipt; this is not a local path.",
|
|
802
833
|
folder: "Optional governed folder override inside the selected vault.",
|
|
@@ -804,6 +835,17 @@ var FIELD_DESCRIPTIONS = {
|
|
|
804
835
|
format: "Artifact serialization format to generate.",
|
|
805
836
|
from: "Inclusive ISO 8601 lower time bound.",
|
|
806
837
|
fromVault: "Vault containing the starting memory note; omit only when the note reference already resolves unambiguously.",
|
|
838
|
+
gclid: "Google Click ID captured from the attributed landing URL.",
|
|
839
|
+
gbraid: "Google app-to-web click identifier captured from the attributed landing URL.",
|
|
840
|
+
wbraid: "Google web-to-app click identifier captured from the attributed landing URL.",
|
|
841
|
+
fbclid: "Meta click identifier captured from the attributed landing URL.",
|
|
842
|
+
fbp: "Meta first-party browser identifier captured with consent.",
|
|
843
|
+
fbc: "Meta click cookie value captured or derived from fbclid with consent.",
|
|
844
|
+
ttclid: "TikTok click identifier captured from the attributed landing URL.",
|
|
845
|
+
rdt_cid: "Reddit click identifier captured from the attributed landing URL.",
|
|
846
|
+
msclkid: "Microsoft Advertising click identifier captured from the attributed landing URL.",
|
|
847
|
+
li_fat_id: "LinkedIn first-party attribution identifier captured from the landing URL.",
|
|
848
|
+
snapclid: "Snapchat click identifier captured from the attributed landing URL.",
|
|
807
849
|
idempotencyKey: "Caller-owned opaque key for this intended operation; reuse only when retrying the same operation.",
|
|
808
850
|
includePreview: "When true, mint a short-lived authorized preview URL with the metadata result.",
|
|
809
851
|
limit: "Maximum rows or records to return on this page; use the returned cursor for more.",
|
|
@@ -843,6 +885,10 @@ var FIELD_DESCRIPTIONS = {
|
|
|
843
885
|
sourceKind: "Provenance category used to filter or label governed image assets.",
|
|
844
886
|
sourceRef: "Original source URL or opaque artifact reference preserved as image provenance.",
|
|
845
887
|
sourceSystem: "CRM system represented by the uploaded CSV.",
|
|
888
|
+
triggerKind: "Browser trigger family: a page path, delegated element click, or delegated form submission.",
|
|
889
|
+
pathMatch: "Whether the page trigger matches the exact path or every path beneath the supplied prefix.",
|
|
890
|
+
selector: "Safe CSS selector used only to recognize a clicked element or submitted form; no DOM content is captured.",
|
|
891
|
+
oncePerSession: "When true, emit this named browser event at most once in the current browser session.",
|
|
846
892
|
state: "Two-letter US state for the Local Sourcebook listing market.",
|
|
847
893
|
status: "Lifecycle status used to filter or update the selected records.",
|
|
848
894
|
submitLabel: "Optional text displayed on the form submission button.",
|
|
@@ -10897,8 +10943,145 @@ var AnalyticsCreateActivationInputSchema = {
|
|
|
10897
10943
|
siteId: z8.string().uuid(),
|
|
10898
10944
|
platform: z8.enum(["meta", "google", "tiktok", "reddit"]),
|
|
10899
10945
|
name: z8.string().min(1).max(120),
|
|
10900
|
-
connectionRef: z8.string().
|
|
10901
|
-
externalDatasetId: z8.string().
|
|
10946
|
+
connectionRef: z8.string().trim().min(1).max(240),
|
|
10947
|
+
externalDatasetId: z8.string().trim().min(1).max(240)
|
|
10948
|
+
};
|
|
10949
|
+
var AnalyticsCreateConnectionInputSchema = {
|
|
10950
|
+
siteId: z8.string().uuid(),
|
|
10951
|
+
provider: z8.enum(["callrail", "calltrackingmetrics", "twilio", "hubspot", "highlevel", "generic_crm"]),
|
|
10952
|
+
name: z8.string().min(1).max(120),
|
|
10953
|
+
sourceAccountRef: z8.string().min(1).max(240),
|
|
10954
|
+
serviceConnectionRef: z8.string().max(240).optional(),
|
|
10955
|
+
webhookSecret: z8.string().min(8).max(1e3).optional(),
|
|
10956
|
+
config: z8.record(z8.string(), z8.unknown()).optional()
|
|
10957
|
+
};
|
|
10958
|
+
var AnalyticsCreateRuleInputSchema = {
|
|
10959
|
+
siteId: z8.string().uuid(),
|
|
10960
|
+
name: z8.string().min(1).max(120),
|
|
10961
|
+
conversionKind: z8.string().regex(/^[a-z][a-z0-9_]{1,79}$/),
|
|
10962
|
+
condition: z8.object({
|
|
10963
|
+
eventName: z8.string().regex(/^[a-z][a-z0-9_]{1,79}$/).optional(),
|
|
10964
|
+
eventKind: z8.enum(["browser", "form", "call", "crm", "transaction", "custom_server", "conversion", "delivery"]).optional(),
|
|
10965
|
+
source: z8.string().min(1).max(80).optional(),
|
|
10966
|
+
stageId: z8.string().max(240).optional(),
|
|
10967
|
+
status: z8.enum(["open", "won", "lost", "spam", "unknown"]).optional(),
|
|
10968
|
+
answered: z8.boolean().optional(),
|
|
10969
|
+
minimumCallDurationSeconds: z8.number().int().min(0).max(86400).optional(),
|
|
10970
|
+
excludedTags: z8.array(z8.string().max(80)).max(30).default([]),
|
|
10971
|
+
requiredTags: z8.array(z8.string().max(80)).max(30).default([])
|
|
10972
|
+
}),
|
|
10973
|
+
defaultValueMinor: z8.number().int().min(0).max(Number.MAX_SAFE_INTEGER).optional(),
|
|
10974
|
+
defaultCurrency: z8.string().length(3).default("USD"),
|
|
10975
|
+
enabled: z8.boolean().default(true)
|
|
10976
|
+
};
|
|
10977
|
+
var AnalyticsEventDefinitionFields = {
|
|
10978
|
+
name: z8.string().min(1).max(120).describe("Human-readable definition name unique within the Site."),
|
|
10979
|
+
eventName: z8.string().regex(/^[a-z][a-z0-9_]{1,79}$/).describe("Canonical event name emitted when this definition matches."),
|
|
10980
|
+
triggerKind: z8.enum(["page", "click", "form", "semantic"]).describe("Declarative browser trigger. Semantic uses a data-xray-event tag."),
|
|
10981
|
+
path: z8.string().startsWith("/").max(2e3).optional().describe("URL path required for page triggers."),
|
|
10982
|
+
pathMatch: z8.enum(["exact", "prefix"]).default("exact").describe("Whether the page path must equal or begin with path."),
|
|
10983
|
+
selector: z8.string().min(1).max(500).optional().describe("CSS selector evaluated only by the first-party Pixel for click or form triggers."),
|
|
10984
|
+
hostnames: z8.array(z8.string().min(1).max(253)).max(25).default([]).describe("Optional approved bare hostnames. Empty applies across the Site Pixel hosts."),
|
|
10985
|
+
metadata: z8.object({
|
|
10986
|
+
value: z8.number().finite().min(0).max(1e12).optional().describe("Optional non-negative conversion value in major currency units."),
|
|
10987
|
+
currency: z8.string().regex(/^[A-Za-z]{3}$/).optional().describe("ISO 4217 currency code for value."),
|
|
10988
|
+
orderId: z8.string().min(1).max(200).optional().describe("Optional stable order identifier."),
|
|
10989
|
+
contentId: z8.string().min(1).max(200).optional().describe("Optional product or content identifier."),
|
|
10990
|
+
contentType: z8.string().min(1).max(80).optional().describe("Optional bounded content category.")
|
|
10991
|
+
}).strict().optional().describe("Safe fixed event metadata; never form field values or arbitrary code."),
|
|
10992
|
+
oncePerSession: z8.boolean().default(false).describe("Emit at most once per browser session when true."),
|
|
10993
|
+
enabled: z8.boolean().default(true).describe("Whether the Pixel may emit this definition.")
|
|
10994
|
+
};
|
|
10995
|
+
var AnalyticsCreateEventDefinitionInputSchema = {
|
|
10996
|
+
siteId: z8.string().uuid(),
|
|
10997
|
+
...AnalyticsEventDefinitionFields
|
|
10998
|
+
};
|
|
10999
|
+
var AnalyticsUpdateEventDefinitionInputSchema = {
|
|
11000
|
+
siteId: z8.string().uuid(),
|
|
11001
|
+
definitionId: z8.string().uuid().describe("Event definition id returned by analytics_list_event_definitions."),
|
|
11002
|
+
name: AnalyticsEventDefinitionFields.name.optional(),
|
|
11003
|
+
eventName: AnalyticsEventDefinitionFields.eventName.optional(),
|
|
11004
|
+
triggerKind: AnalyticsEventDefinitionFields.triggerKind.optional(),
|
|
11005
|
+
path: z8.string().startsWith("/").max(2e3).nullable().optional().describe("Replacement page path; null clears it."),
|
|
11006
|
+
pathMatch: z8.enum(["exact", "prefix"]).optional().describe("Replacement page path match mode."),
|
|
11007
|
+
selector: z8.string().min(1).max(500).nullable().optional().describe("Replacement browser-only selector; null clears it."),
|
|
11008
|
+
hostnames: z8.array(z8.string().min(1).max(253)).max(25).optional().describe("Replacement approved bare-hostname scope."),
|
|
11009
|
+
metadata: AnalyticsEventDefinitionFields.metadata.unwrap().nullable().optional().describe("Replacement safe metadata; null clears it."),
|
|
11010
|
+
oncePerSession: z8.boolean().optional().describe("Replacement once-per-browser-session behavior."),
|
|
11011
|
+
enabled: z8.boolean().optional().describe("Replacement enabled state.")
|
|
11012
|
+
};
|
|
11013
|
+
var AnalyticsArchiveEventDefinitionInputSchema = {
|
|
11014
|
+
siteId: z8.string().uuid(),
|
|
11015
|
+
definitionId: z8.string().uuid().describe("Event definition id returned by analytics_list_event_definitions.")
|
|
11016
|
+
};
|
|
11017
|
+
var AnalyticsTestEventDefinitionInputSchema = {
|
|
11018
|
+
siteId: z8.string().uuid(),
|
|
11019
|
+
definitionId: z8.string().uuid().describe("Event definition id returned by analytics_list_event_definitions."),
|
|
11020
|
+
hostname: z8.string().min(1).max(253).describe("Bare hostname observed by the browser."),
|
|
11021
|
+
path: z8.string().startsWith("/").max(2e3).describe("URL path observed by the browser."),
|
|
11022
|
+
triggerKind: z8.enum(["page", "click", "form", "semantic"]).describe("Trigger interaction being previewed."),
|
|
11023
|
+
tagEventName: z8.string().regex(/^[a-z][a-z0-9_]{1,79}$/).optional().describe("Validated data-xray-event name observed by the browser."),
|
|
11024
|
+
selectorMatched: z8.boolean().optional().describe("The browser-reported match result. The server never receives HTML or evaluates a selector.")
|
|
11025
|
+
};
|
|
11026
|
+
var AnalyticsTestActivationDestinationInputSchema = {
|
|
11027
|
+
siteId: z8.string().uuid(),
|
|
11028
|
+
destinationId: z8.string().uuid().describe("Activation destination id returned by analytics_list_activation_destinations.")
|
|
11029
|
+
};
|
|
11030
|
+
var AnalyticsListActivationReceiptsInputSchema = {
|
|
11031
|
+
siteId: z8.string().uuid(),
|
|
11032
|
+
destinationId: z8.string().uuid().describe("Activation destination id returned by analytics_list_activation_destinations."),
|
|
11033
|
+
limit: z8.number().int().min(1).max(250).default(50).describe("Maximum receipt rows to return."),
|
|
11034
|
+
cursor: z8.string().max(1e3).optional().describe("Opaque pagination cursor from the prior receipt page.")
|
|
11035
|
+
};
|
|
11036
|
+
var AnalyticsRetryActivationDeliveryInputSchema = {
|
|
11037
|
+
siteId: z8.string().uuid(),
|
|
11038
|
+
jobId: z8.string().uuid().describe("Failed activation job id returned by analytics_list_activation_receipts.")
|
|
11039
|
+
};
|
|
11040
|
+
var AnalyticsReconcileConnectionInputSchema = {
|
|
11041
|
+
siteId: z8.string().uuid(),
|
|
11042
|
+
connectionId: z8.string().uuid().describe("Phone or CRM connection id returned by analytics_list_connections.")
|
|
11043
|
+
};
|
|
11044
|
+
var AnalyticsRecordExternalEventInputSchema = {
|
|
11045
|
+
siteId: z8.string().uuid(),
|
|
11046
|
+
schemaVersion: z8.literal(1).default(1),
|
|
11047
|
+
eventId: z8.string().min(8).max(200),
|
|
11048
|
+
source: z8.string().min(1).max(80),
|
|
11049
|
+
sourceAccountRef: z8.string().min(1).max(240),
|
|
11050
|
+
sourceEventId: z8.string().min(1).max(300),
|
|
11051
|
+
eventKind: z8.enum(["browser", "form", "call", "crm", "transaction", "custom_server", "conversion", "delivery"]),
|
|
11052
|
+
eventName: z8.string().regex(/^[a-z][a-z0-9_]{1,79}$/),
|
|
11053
|
+
occurredAt: z8.string().datetime(),
|
|
11054
|
+
visitorId: z8.string().max(160).optional(),
|
|
11055
|
+
sessionId: z8.string().max(160).optional(),
|
|
11056
|
+
callId: z8.string().max(240).optional(),
|
|
11057
|
+
dealId: z8.string().max(240).optional(),
|
|
11058
|
+
orderId: z8.string().max(240).optional(),
|
|
11059
|
+
personRef: z8.string().max(240).optional(),
|
|
11060
|
+
path: z8.string().max(2e3).optional(),
|
|
11061
|
+
canonicalUrl: z8.string().url().max(3e3).optional(),
|
|
11062
|
+
sourceName: z8.string().max(180).optional(),
|
|
11063
|
+
medium: z8.string().max(180).optional(),
|
|
11064
|
+
campaign: z8.string().max(240).optional(),
|
|
11065
|
+
valueMinor: z8.number().int().min(0).max(2147483647).optional(),
|
|
11066
|
+
currency: z8.string().length(3).optional(),
|
|
11067
|
+
clickIds: z8.object({
|
|
11068
|
+
gclid: z8.string().max(500).optional(),
|
|
11069
|
+
gbraid: z8.string().max(500).optional(),
|
|
11070
|
+
wbraid: z8.string().max(500).optional(),
|
|
11071
|
+
fbclid: z8.string().max(500).optional(),
|
|
11072
|
+
fbp: z8.string().max(500).optional(),
|
|
11073
|
+
fbc: z8.string().max(500).optional(),
|
|
11074
|
+
ttclid: z8.string().max(500).optional(),
|
|
11075
|
+
rdt_cid: z8.string().max(500).optional(),
|
|
11076
|
+
msclkid: z8.string().max(500).optional(),
|
|
11077
|
+
li_fat_id: z8.string().max(500).optional(),
|
|
11078
|
+
snapclid: z8.string().max(500).optional()
|
|
11079
|
+
}).optional(),
|
|
11080
|
+
properties: z8.record(z8.string(), z8.unknown()).optional()
|
|
11081
|
+
};
|
|
11082
|
+
var AnalyticsJourneyInputSchema = {
|
|
11083
|
+
siteId: z8.string().uuid(),
|
|
11084
|
+
personId: z8.string().uuid()
|
|
10902
11085
|
};
|
|
10903
11086
|
var AnalyticsCrmImportInputSchema = {
|
|
10904
11087
|
siteId: z8.string().uuid(),
|
|
@@ -11036,7 +11219,12 @@ function registerAnalyticsMcpTools(server, executor) {
|
|
|
11036
11219
|
["analytics_list_campaign_links", "List Campaign Links", "List paginated tracked links and canonical UTM and ad hierarchy fields.", AnalyticsSiteResourceInputSchema, "analyticsListCampaignLinks"],
|
|
11037
11220
|
["analytics_list_forms", "List Analytics Forms", "List paginated Pixel-linked forms, embed snippets, fields, versions, and submission counts.", AnalyticsSiteResourceInputSchema, "analyticsListForms"],
|
|
11038
11221
|
["analytics_list_crm_imports", "List CRM Imports", "List paginated encrypted CSV import receipts without exposing contact PII in analytics.", AnalyticsSiteResourceInputSchema, "analyticsListCrmImports"],
|
|
11039
|
-
["analytics_list_activation_destinations", "List Ad Activation Destinations", "List Meta, Google, TikTok, and Reddit destinations with pending, delivered, and failed conversion counts.", AnalyticsSiteResourceInputSchema, "analyticsListActivationDestinations"]
|
|
11222
|
+
["analytics_list_activation_destinations", "List Ad Activation Destinations", "List Meta, Google, TikTok, and Reddit destinations with pending, delivered, and failed conversion counts.", AnalyticsSiteResourceInputSchema, "analyticsListActivationDestinations"],
|
|
11223
|
+
["analytics_list_connections", "List X-Ray Connections", "List phone, CRM, and webhook connections with honest readiness, receipt, and error state.", AnalyticsSiteResourceInputSchema, "analyticsListConnections"],
|
|
11224
|
+
["analytics_list_conversion_rules", "List Conversion Rules", "List deterministic versioned rules that turn canonical phone, CRM, transaction, and server events into conversions.", AnalyticsSiteResourceInputSchema, "analyticsListConversionRules"],
|
|
11225
|
+
["analytics_list_event_definitions", "List Browser Event Definitions", "List declarative page, click, and form-submit tags applied by the first-party X-Ray Pixel.", AnalyticsSiteResourceInputSchema, "analyticsListEventDefinitions"],
|
|
11226
|
+
["analytics_get_coverage", "Get Attribution Coverage", "Measure click-ID coverage and call/CRM journey join rates. Null rates mean there is not yet a denominator.", AnalyticsSiteResourceInputSchema, "analyticsGetCoverage"],
|
|
11227
|
+
["analytics_get_person_journey", "Get Person Journey", "Read one identified person timeline across sessions, immutable touches, calls, CRM stages, conversions, and ad-delivery receipts.", AnalyticsJourneyInputSchema, "analyticsGetPersonJourney"]
|
|
11040
11228
|
];
|
|
11041
11229
|
for (const [name, title, description, inputSchema, handler] of reads) {
|
|
11042
11230
|
server.registerTool(name, {
|
|
@@ -11048,12 +11236,16 @@ function registerAnalyticsMcpTools(server, executor) {
|
|
|
11048
11236
|
}, async (input) => executor[handler](input));
|
|
11049
11237
|
}
|
|
11050
11238
|
const writes = [
|
|
11051
|
-
["analytics_create_campaign_link", "Create Campaign Link", "Create one tracked campaign URL with canonical UTMs and optional ad-group, ad, and creative identifiers.", AnalyticsCreateCampaignLinkInputSchema, "analyticsCreateCampaignLink"],
|
|
11052
|
-
["analytics_create_form", "Create Pixel-linked Form", "Create and optionally publish a branded form that inherits the parent Pixel identity and session.", AnalyticsCreateFormInputSchema, "analyticsCreateForm"],
|
|
11053
|
-
["analytics_create_activation_destination", "Create Ad Activation Destination", "Create a Meta, Google, TikTok, or Reddit conversion destination using an existing provider connection reference.", AnalyticsCreateActivationInputSchema, "analyticsCreateActivation"],
|
|
11054
|
-
["
|
|
11239
|
+
["analytics_create_campaign_link", "Create Campaign Link", "Create one tracked campaign URL with canonical UTMs and optional ad-group, ad, and creative identifiers.", AnalyticsCreateCampaignLinkInputSchema, "analyticsCreateCampaignLink", false],
|
|
11240
|
+
["analytics_create_form", "Create Pixel-linked Form", "Create and optionally publish a branded form that inherits the parent Pixel identity and session.", AnalyticsCreateFormInputSchema, "analyticsCreateForm", false],
|
|
11241
|
+
["analytics_create_activation_destination", "Create Ad Activation Destination", "Create a Meta, Google, TikTok, or Reddit conversion destination using an existing provider connection reference.", AnalyticsCreateActivationInputSchema, "analyticsCreateActivation", false],
|
|
11242
|
+
["analytics_create_connection", "Create X-Ray Connection", "Create a CallRail, CallTrackingMetrics, Twilio, HubSpot, HighLevel, or generic CRM connection. Creation is configured-unverified until a signed receipt succeeds.", AnalyticsCreateConnectionInputSchema, "analyticsCreateConnection", false],
|
|
11243
|
+
["analytics_create_conversion_rule", "Create Conversion Rule", "Create a versioned declarative conversion rule. This is a safe event-routing layer, not arbitrary JavaScript like Google Tag Manager.", AnalyticsCreateRuleInputSchema, "analyticsCreateConversionRule", false],
|
|
11244
|
+
["analytics_create_event_definition", "Create Browser Event Definition", "Create a declarative page, click, or third-party form-submit event tag without injecting arbitrary JavaScript or capturing form fields.", AnalyticsCreateEventDefinitionInputSchema, "analyticsCreateEventDefinition", false],
|
|
11245
|
+
["analytics_record_external_event", "Record Server Event", "Idempotently record a canonical server-side call, CRM, transaction, or custom event and evaluate conversion rules.", AnalyticsRecordExternalEventInputSchema, "analyticsRecordExternalEvent", true],
|
|
11246
|
+
["analytics_import_crm_csv", "Import CRM CSV", "Map and stage a bounded CRM CSV import. Contact fields are encrypted and analytics retains only opaque person references and identity signals.", AnalyticsCrmImportInputSchema, "analyticsImportCrmCsv", false]
|
|
11055
11247
|
];
|
|
11056
|
-
for (const [name, title, description, inputSchema, handler] of writes) {
|
|
11248
|
+
for (const [name, title, description, inputSchema, handler, idempotent] of writes) {
|
|
11057
11249
|
server.registerTool(name, {
|
|
11058
11250
|
title,
|
|
11059
11251
|
description,
|
|
@@ -11063,11 +11255,35 @@ function registerAnalyticsMcpTools(server, executor) {
|
|
|
11063
11255
|
title,
|
|
11064
11256
|
readOnlyHint: false,
|
|
11065
11257
|
destructiveHint: false,
|
|
11066
|
-
idempotentHint:
|
|
11258
|
+
idempotentHint: idempotent,
|
|
11067
11259
|
openWorldHint: false
|
|
11068
11260
|
}
|
|
11069
11261
|
}, async (input) => executor[handler](input));
|
|
11070
11262
|
}
|
|
11263
|
+
const operations = [
|
|
11264
|
+
["analytics_update_event_definition", "Update Browser Event Definition", "Update a versioned declarative browser event definition. Null path, selector, or metadata clears that optional field.", AnalyticsUpdateEventDefinitionInputSchema, "analyticsUpdateEventDefinition", false, false, false, false],
|
|
11265
|
+
["analytics_archive_event_definition", "Archive Browser Event Definition", "Idempotently archive a browser event definition so the Pixel no longer receives it.", AnalyticsArchiveEventDefinitionInputSchema, "analyticsArchiveEventDefinition", false, true, true, false],
|
|
11266
|
+
["analytics_test_event_definition", "Test Browser Event Definition", "Preview a definition against validated hostname, path, trigger, tag, and browser-reported selector-match facts. This never accepts HTML or executes selectors server-side.", AnalyticsTestEventDefinitionInputSchema, "analyticsTestEventDefinition", true, true, false, false],
|
|
11267
|
+
["analytics_test_activation_destination", "Test Ad Activation Destination", "Send the provider-specific verification test for a configured activation destination and return its safe receipt.", AnalyticsTestActivationDestinationInputSchema, "analyticsTestActivationDestination", false, false, false, true],
|
|
11268
|
+
["analytics_list_activation_receipts", "List Ad Activation Receipts", "List bounded provider delivery receipts for one activation destination.", AnalyticsListActivationReceiptsInputSchema, "analyticsListActivationReceipts", true, true, false, false],
|
|
11269
|
+
["analytics_retry_activation_delivery", "Retry Ad Activation Delivery", "Requeue one failed or dead-lettered activation job. This may cause an external provider delivery.", AnalyticsRetryActivationDeliveryInputSchema, "analyticsRetryActivationDelivery", false, false, false, true],
|
|
11270
|
+
["analytics_reconcile_connection", "Reconcile X-Ray Connection", "Reconcile one phone or CRM connection through its configured provider API and return readiness and checkpoint evidence.", AnalyticsReconcileConnectionInputSchema, "analyticsReconcileConnection", false, true, false, true]
|
|
11271
|
+
];
|
|
11272
|
+
for (const [name, title, description, inputSchema, handler, readOnly, idempotent, destructive, openWorld] of operations) {
|
|
11273
|
+
server.registerTool(name, {
|
|
11274
|
+
title,
|
|
11275
|
+
description,
|
|
11276
|
+
inputSchema,
|
|
11277
|
+
outputSchema: recordOutputSchema(name, AnalyticsGenericOutputSchema),
|
|
11278
|
+
annotations: {
|
|
11279
|
+
title,
|
|
11280
|
+
readOnlyHint: readOnly,
|
|
11281
|
+
destructiveHint: destructive,
|
|
11282
|
+
idempotentHint: idempotent,
|
|
11283
|
+
openWorldHint: openWorld
|
|
11284
|
+
}
|
|
11285
|
+
}, async (input) => executor[handler](input));
|
|
11286
|
+
}
|
|
11071
11287
|
server.registerTool("analytics_get_health", {
|
|
11072
11288
|
title: "Analytics Pixel Health",
|
|
11073
11289
|
description: "Read ingestion health for one analytics Business, including Pixel activity, last event and conversion timestamps, rollup state, and rejection signals.",
|
|
@@ -12136,6 +12352,18 @@ async function readResponseData(res) {
|
|
|
12136
12352
|
return text;
|
|
12137
12353
|
}
|
|
12138
12354
|
}
|
|
12355
|
+
function attachJsonStructuredContent(result) {
|
|
12356
|
+
if (result.isError || result.structuredContent) return result;
|
|
12357
|
+
const text = result.content.find((part) => part.type === "text");
|
|
12358
|
+
if (!text || text.type !== "text") return result;
|
|
12359
|
+
try {
|
|
12360
|
+
const parsed = JSON.parse(text.text);
|
|
12361
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return result;
|
|
12362
|
+
return { ...result, structuredContent: parsed };
|
|
12363
|
+
} catch {
|
|
12364
|
+
return result;
|
|
12365
|
+
}
|
|
12366
|
+
}
|
|
12139
12367
|
function httpErrorPayload(path, res, data) {
|
|
12140
12368
|
const objectData = data && typeof data === "object" && !Array.isArray(data) ? data : null;
|
|
12141
12369
|
const rawCode = objectData?.code ?? objectData?.errorCode ?? objectData?.error_code;
|
|
@@ -12673,6 +12901,21 @@ var HttpMcpToolExecutor = class {
|
|
|
12673
12901
|
analyticsListActivationDestinations(input) {
|
|
12674
12902
|
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/activation-destinations`);
|
|
12675
12903
|
}
|
|
12904
|
+
analyticsListConnections(input) {
|
|
12905
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/connections`);
|
|
12906
|
+
}
|
|
12907
|
+
analyticsListConversionRules(input) {
|
|
12908
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/conversion-rules`);
|
|
12909
|
+
}
|
|
12910
|
+
analyticsListEventDefinitions(input) {
|
|
12911
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/event-definitions`);
|
|
12912
|
+
}
|
|
12913
|
+
analyticsGetCoverage(input) {
|
|
12914
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/coverage`);
|
|
12915
|
+
}
|
|
12916
|
+
analyticsGetPersonJourney(input) {
|
|
12917
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/people/${encodeURIComponent(input.personId)}/journey`);
|
|
12918
|
+
}
|
|
12676
12919
|
analyticsCreateCampaignLink(input) {
|
|
12677
12920
|
const { siteId, ...body } = input;
|
|
12678
12921
|
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/campaign-links`, body, this.timeoutMs, "POST");
|
|
@@ -12685,6 +12928,47 @@ var HttpMcpToolExecutor = class {
|
|
|
12685
12928
|
const { siteId, ...body } = input;
|
|
12686
12929
|
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/activation-destinations`, body, this.timeoutMs, "POST");
|
|
12687
12930
|
}
|
|
12931
|
+
analyticsCreateConnection(input) {
|
|
12932
|
+
const { siteId, ...body } = input;
|
|
12933
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/connections`, body, this.timeoutMs, "POST");
|
|
12934
|
+
}
|
|
12935
|
+
analyticsCreateConversionRule(input) {
|
|
12936
|
+
const { siteId, ...body } = input;
|
|
12937
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/conversion-rules`, body, this.timeoutMs, "POST");
|
|
12938
|
+
}
|
|
12939
|
+
analyticsCreateEventDefinition(input) {
|
|
12940
|
+
const { siteId, ...body } = input;
|
|
12941
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/event-definitions`, body, this.timeoutMs, "POST");
|
|
12942
|
+
}
|
|
12943
|
+
analyticsUpdateEventDefinition(input) {
|
|
12944
|
+
const { siteId, definitionId, ...body } = input;
|
|
12945
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/event-definitions/${encodeURIComponent(definitionId)}`, body, this.timeoutMs, "PATCH");
|
|
12946
|
+
}
|
|
12947
|
+
analyticsArchiveEventDefinition(input) {
|
|
12948
|
+
return this.call(`/analytics/sites/${encodeURIComponent(input.siteId)}/event-definitions/${encodeURIComponent(input.definitionId)}`, {}, this.timeoutMs, "DELETE");
|
|
12949
|
+
}
|
|
12950
|
+
analyticsTestEventDefinition(input) {
|
|
12951
|
+
const { siteId, definitionId, ...body } = input;
|
|
12952
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/event-definitions/${encodeURIComponent(definitionId)}/test`, body, this.timeoutMs, "POST");
|
|
12953
|
+
}
|
|
12954
|
+
analyticsTestActivationDestination(input) {
|
|
12955
|
+
return this.call(`/analytics/sites/${encodeURIComponent(input.siteId)}/activation-destinations/${encodeURIComponent(input.destinationId)}/test`, {}, this.timeoutMs, "POST");
|
|
12956
|
+
}
|
|
12957
|
+
analyticsListActivationReceipts(input) {
|
|
12958
|
+
const query = new URLSearchParams({ limit: String(input.limit) });
|
|
12959
|
+
if (input.cursor) query.set("cursor", input.cursor);
|
|
12960
|
+
return this.getJson(`/analytics/sites/${encodeURIComponent(input.siteId)}/activation-destinations/${encodeURIComponent(input.destinationId)}/receipts?${query}`);
|
|
12961
|
+
}
|
|
12962
|
+
analyticsRetryActivationDelivery(input) {
|
|
12963
|
+
return this.call(`/analytics/sites/${encodeURIComponent(input.siteId)}/activation-jobs/${encodeURIComponent(input.jobId)}/retry`, {}, this.timeoutMs, "POST");
|
|
12964
|
+
}
|
|
12965
|
+
analyticsReconcileConnection(input) {
|
|
12966
|
+
return this.call(`/analytics/sites/${encodeURIComponent(input.siteId)}/connections/${encodeURIComponent(input.connectionId)}/reconcile`, {}, this.timeoutMs, "POST");
|
|
12967
|
+
}
|
|
12968
|
+
analyticsRecordExternalEvent(input) {
|
|
12969
|
+
const { siteId, ...body } = input;
|
|
12970
|
+
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/external-events`, body, this.timeoutMs, "POST");
|
|
12971
|
+
}
|
|
12688
12972
|
analyticsImportCrmCsv(input) {
|
|
12689
12973
|
const { siteId, ...body } = input;
|
|
12690
12974
|
return this.call(`/analytics/sites/${encodeURIComponent(siteId)}/crm-imports`, body, this.timeoutMs, "POST");
|
|
@@ -12746,8 +13030,8 @@ var HttpMcpToolExecutor = class {
|
|
|
12746
13030
|
commonsGetProposal(input) {
|
|
12747
13031
|
return this.getJson(`/commons/proposals/${encodeURIComponent(input.proposalId)}`);
|
|
12748
13032
|
}
|
|
12749
|
-
commonsHostImage(input) {
|
|
12750
|
-
return this.call("/commons/images", input);
|
|
13033
|
+
async commonsHostImage(input) {
|
|
13034
|
+
return attachJsonStructuredContent(await this.call("/commons/images", input));
|
|
12751
13035
|
}
|
|
12752
13036
|
commonsUpdateEditorialArticle(input) {
|
|
12753
13037
|
const { idempotencyKey, ...body } = input;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// release-message.json
|
|
2
2
|
var release_message_default = {
|
|
3
|
-
message: "
|
|
3
|
+
message: "X-Ray now unifies browser, phone, CRM, and checkout conversions and delivers eligible events through verified advertising destinations with durable receipts."
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
// src/install-terminal.ts
|
|
@@ -55,7 +55,7 @@ function renderInstallTerminal(options) {
|
|
|
55
55
|
"1/1 install surfaces ready",
|
|
56
56
|
colorize(`Newest in v${options.version}: ${release_message_default.message}`, "lime", color),
|
|
57
57
|
"",
|
|
58
|
-
`${colorize("Tools", "cyan", color)} ${colorize("(
|
|
58
|
+
`${colorize("Tools", "cyan", color)} ${colorize("(275 MCP tools)", "muted", color)}`,
|
|
59
59
|
toolRow("search", ["harvest_paa", "search_serp", "maps_search", "maps_place_intel"], color),
|
|
60
60
|
toolRow("extract", ["extract_url", "map_site_urls", "extract_site", "audit_site", "directory_workflow"], color),
|
|
61
61
|
toolRow("build", ["create_editorial_reading_room", "rank_tracker_workflow", "portable HTML"], color),
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
createSiteExtractContentReader,
|
|
19
19
|
createSiteExtractImageArtifact,
|
|
20
20
|
extractJobLimitInfo
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YUGC5K35.js";
|
|
22
22
|
import "./chunk-DNM65UCK.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-WNL42AMC.js";
|
|
24
24
|
import {
|
|
25
25
|
getDb
|
|
26
26
|
} from "./chunk-65FTMB7G.js";
|