mcp-scraper 0.44.1 → 0.44.3

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.
@@ -12,7 +12,7 @@ import {
12
12
  registerScheduledResultsMcpTools,
13
13
  registerSerpIntelligenceCaptureTools,
14
14
  resolveDeploymentProfile
15
- } from "../chunk-TMJVCYDL.js";
15
+ } from "../chunk-2SE4GYCS.js";
16
16
  import "../chunk-2K74LVV7.js";
17
17
  import "../chunk-BBI7RGOT.js";
18
18
  import "../chunk-T5AFM4G5.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "../chunk-GRODXRUY.js";
22
22
  import {
23
23
  PACKAGE_VERSION
24
- } from "../chunk-2XGU5GVB.js";
24
+ } from "../chunk-32Z52OE4.js";
25
25
  import "../chunk-X5WDJ7D7.js";
26
26
  import "../chunk-5UN33CGU.js";
27
27
  import "../chunk-5X7CJEK3.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-T5AFM4G5.js";
22
22
  import {
23
23
  PACKAGE_VERSION
24
- } from "./chunk-2XGU5GVB.js";
24
+ } from "./chunk-32Z52OE4.js";
25
25
  import {
26
26
  MC_PER_CREDIT
27
27
  } from "./chunk-X5WDJ7D7.js";
@@ -468,13 +468,15 @@ Multi-step orchestrations \u2014 prefer these over hand-chaining primitives when
468
468
  **get-local-sourcebook-contract**, then **prepare-local-sourcebook-write**, inspect every tag resolution,
469
469
  and call **validate-local-sourcebook-write**. Call **local-sourcebook-capture** only when validation returns
470
470
  \`valid:true\`.
471
- - A new capture creates an owner-scoped private draft and queues paid broad website, exact Maps place,
472
- maximum-accessible review, service-area, staff, and genuine-media acquisition. It does not publish.
473
- - Read progress and the compiled draft with **local_sourcebook_submission_status**. Revise an existing draft
474
- through **validate-local-sourcebook-write** and **local-sourcebook-capture** with its current \`baseRevision\`.
475
- Use **local_sourcebook_refresh** only when the owner intentionally wants to pay for a new acquisition pass.
476
- - The last approved revision remains public during refresh. Only an administrator can publish, reject, or
477
- unpublish a listing.
471
+ - A new capture queues paid broad website, exact Maps place, maximum-accessible review, service-area, staff,
472
+ and genuine-media acquisition. When compilation succeeds, that exact system-authored evidence revision
473
+ publishes automatically. Never supply owner-authored services, reviews, images, or other public claims.
474
+ - Read progress and the compiled record with **local_sourcebook_submission_status**. Use
475
+ **local_sourcebook_refresh** only when the owner intentionally wants to pay for a new acquisition pass.
476
+ - Capture and status responses return \`publicUrls.profileUrl\` and \`publicUrls.reviewsUrl\`. Always give those
477
+ exact links to the user; do not report a listing as live without including its clickable profile URL.
478
+ - The last published revision remains public during refresh. Administrators can reject or unpublish an
479
+ exceptional record, but routine subscriber publication does not require administrator review.
478
480
 
479
481
  ## Notes
480
482
  - For current prices, balances, or limits, call \`credits_info\`. The public machine-readable rate contract is
@@ -5054,24 +5056,17 @@ var PrepareLocalSourcebookWriteInputSchema = {
5054
5056
  tagCandidates: z3.array(LocalSourcebookTagCandidateObjectSchema).max(20).optional()
5055
5057
  };
5056
5058
  var ValidateLocalSourcebookWriteInputSchema = {
5057
- identity: LocalSourcebookIdentityObjectSchema.optional().describe("New-listing identity returned by prepare-local-sourcebook-write."),
5058
- listing: z3.record(z3.string(), z3.unknown()).optional().describe("Complete replacement listing draft for an existing owner-scoped submission."),
5059
- submissionId: z3.string().trim().min(1).optional().describe("Existing owner-scoped submission being revised. Omit for a new capture."),
5060
- baseRevision: z3.number().int().min(1).optional().describe("Required current draft revision for an edit, preventing silent overwrites."),
5059
+ identity: LocalSourcebookIdentityObjectSchema.describe("New-listing identity returned by prepare-local-sourcebook-write. Evidence-bearing public fields are compiled by MCP Scraper and cannot be supplied here."),
5061
5060
  tagCandidates: z3.array(LocalSourcebookTagCandidateObjectSchema).max(20).optional(),
5062
5061
  tagDecisions: z3.array(LocalSourcebookTagDecisionObjectSchema).max(20).optional()
5063
5062
  };
5064
5063
  var LocalSourcebookCaptureInputSchema = {
5065
5064
  ...ValidateLocalSourcebookWriteInputSchema,
5066
- idempotencyKey: z3.string().trim().min(8).max(200).optional().describe("Stable retry key for a new capture. Required for new listings; omit only when revising an existing submissionId.")
5065
+ idempotencyKey: z3.string().trim().min(8).max(200).optional().describe("Stable retry key for a new capture. Required either here or in identity.")
5067
5066
  };
5068
5067
  var LocalSourcebookSubmissionStatusInputSchema = {
5069
5068
  submissionId: z3.string().trim().min(1).describe("The owner-scoped submission ID returned by local-sourcebook-capture.")
5070
5069
  };
5071
- var LocalSourcebookUpdateDraftInputSchema = {
5072
- submissionId: z3.string().trim().min(1),
5073
- payload: z3.record(z3.string(), z3.unknown()).describe("Complete replacement draft. The previous revision remains immutable in the audit history.")
5074
- };
5075
5070
  var LocalSourcebookRefreshInputSchema = {
5076
5071
  submissionId: z3.string().trim().min(1).describe("Owner-scoped listing submission to re-crawl and refresh.")
5077
5072
  };
@@ -7950,7 +7945,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
7950
7945
  }, async (input) => formatDirectoryWorkflow(await executor.directoryWorkflowStatus(input), input, ctx));
7951
7946
  server.registerTool("get-local-sourcebook-contract", {
7952
7947
  title: "Get Local Sourcebook Contract",
7953
- description: "Read the governed listing purpose, supported categories, canonical profile/review routes, required sections, acquisition limits, tag policy, ownership boundary, and admin-only publication rule. Call this before composing a listing when its required shape is uncertain.",
7948
+ description: "Read the governed listing purpose, supported categories, exact LocalSourcebook.com profile/review URLs, nationwide directory URL, required sections, acquisition limits, tag policy, ownership boundary, and automatic evidence-publication rule. Call this before composing a listing when its required shape is uncertain.",
7954
7949
  inputSchema: GetLocalSourcebookContractInputSchema,
7955
7950
  outputSchema: recordOutputSchema("get-local-sourcebook-contract", LocalSourcebookOutputSchema),
7956
7951
  annotations: localPlanningToolAnnotations("Get Local Sourcebook Contract")
@@ -7978,28 +7973,28 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
7978
7973
  }, async (input) => executor.prepareLocalSourcebookWrite(input));
7979
7974
  server.registerTool("validate-local-sourcebook-write", {
7980
7975
  title: "Validate Local Sourcebook Write",
7981
- description: "Validate a proposed new listing or complete owner draft revision without writing it. Checks identity or listing completeness, canonical tags, tag decisions, and baseRevision requirements. Capture only when valid is true.",
7976
+ description: "Validate a proposed new listing identity without writing it. Checks business identity, canonical tags, and explicit tag decisions. Public facts are compiled from MCP Scraper evidence rather than accepted from the owner. Capture only when valid is true.",
7982
7977
  inputSchema: ValidateLocalSourcebookWriteInputSchema,
7983
7978
  outputSchema: recordOutputSchema("validate-local-sourcebook-write", LocalSourcebookOutputSchema),
7984
7979
  annotations: localPlanningToolAnnotations("Validate Local Sourcebook Write")
7985
7980
  }, async (input) => executor.validateLocalSourcebookWrite(input));
7986
7981
  server.registerTool("local-sourcebook-capture", {
7987
7982
  title: "Capture Governed Local Sourcebook Listing",
7988
- description: "Strict owner-scoped write path after list, contract, prepare, and validate. A new capture registers canonical tags and queues paid website, exact-place, review, service-area, staff, and genuine-media acquisition. An edit requires the current baseRevision. Capture never publishes; admin review remains required.",
7983
+ description: "Strict owner-scoped write path after list, contract, prepare, and validate. Capture registers canonical tags, returns the exact LocalSourcebook.com profile and reviews URLs, and queues paid website, exact-place, review, service-area, staff, and genuine-media acquisition. A successful system-compiled evidence revision publishes automatically; owner-authored public claims are not accepted.",
7989
7984
  inputSchema: LocalSourcebookCaptureInputSchema,
7990
7985
  outputSchema: recordOutputSchema("local-sourcebook-capture", LocalSourcebookOutputSchema),
7991
7986
  annotations: liveWebToolAnnotations("Capture Governed Local Sourcebook Listing")
7992
7987
  }, async (input) => executor.localSourcebookCapture(input));
7993
7988
  server.registerTool("local_sourcebook_submission_status", {
7994
7989
  title: "Local Sourcebook Submission Status",
7995
- description: "Read the authenticated caller\u2019s listing draft, enrichment coverage, immutable revision number, and publication state.",
7990
+ description: "Read the authenticated caller\u2019s listing draft, enrichment coverage, immutable revision number, publication state, and exact live LocalSourcebook.com profile and reviews URLs.",
7996
7991
  inputSchema: LocalSourcebookSubmissionStatusInputSchema,
7997
7992
  outputSchema: recordOutputSchema("local_sourcebook_submission_status", LocalSourcebookOutputSchema),
7998
7993
  annotations: localPlanningToolAnnotations("Local Sourcebook Submission Status")
7999
7994
  }, async (input) => executor.localSourcebookSubmissionStatus(input));
8000
7995
  server.registerTool("local_sourcebook_refresh", {
8001
7996
  title: "Refresh a Local Sourcebook Listing",
8002
- description: "Queue a new broad crawl and review/media acquisition pass for a listing owned by the authenticated MCP Scraper account.",
7997
+ description: "Queue a new broad crawl and review/media acquisition pass for a listing owned by the authenticated MCP Scraper account. The last published revision remains public until the refreshed evidence revision completes and auto-publishes.",
8003
7998
  inputSchema: LocalSourcebookRefreshInputSchema,
8004
7999
  outputSchema: recordOutputSchema("local_sourcebook_refresh", LocalSourcebookOutputSchema),
8005
8000
  annotations: liveWebToolAnnotations("Refresh a Local Sourcebook Listing")
@@ -8592,9 +8587,6 @@ var HttpMcpToolExecutor = class {
8592
8587
  localSourcebookSubmissionStatus(input) {
8593
8588
  return this.getJson(`/local-sourcebook/submissions/${encodeURIComponent(input.submissionId)}`);
8594
8589
  }
8595
- localSourcebookUpdateDraft(input) {
8596
- return this.call(`/local-sourcebook/submissions/${encodeURIComponent(input.submissionId)}/draft`, { payload: input.payload });
8597
- }
8598
8590
  localSourcebookRefresh(input) {
8599
8591
  return this.call(`/local-sourcebook/submissions/${encodeURIComponent(input.submissionId)}/refresh`, {});
8600
8592
  }
@@ -13246,4 +13238,4 @@ export {
13246
13238
  ScheduledResultsMcpExecutor,
13247
13239
  registerScheduledResultsMcpTools
13248
13240
  };
13249
- //# sourceMappingURL=chunk-TMJVCYDL.js.map
13241
+ //# sourceMappingURL=chunk-2SE4GYCS.js.map