mcpscraper-cli 0.29.4 → 0.29.6

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 (2) hide show
  1. package/dist/bin/cli.js +13 -13
  2. package/package.json +2 -2
package/dist/bin/cli.js CHANGED
@@ -10,7 +10,7 @@ import { randomUUID } from "crypto";
10
10
  import { ScraperClient, ScraperApiError } from "mcpscraper-sdk";
11
11
 
12
12
  // src/version.ts
13
- var CLI_VERSION = "0.29.4";
13
+ var CLI_VERSION = "0.29.6";
14
14
 
15
15
  // src/generated-tools.ts
16
16
  var MCP_TOOL_CATALOG = [
@@ -5006,17 +5006,17 @@ var MCP_TOOL_CATALOG = [
5006
5006
  "name": "commons_host_image",
5007
5007
  "category": "commons",
5008
5008
  "title": "Host a Transparent Commons Image",
5009
- "description": "Host an image from a public https URL or base64 bytes, returning a permanent Commons URL. Commons never serves a third-party image URL \u2014 commons_submit_entity hosts external images automatically, so use this only to host one before or independently of a write. JPEG, PNG, GIF, WebP up to 10 MB; SVG rejected. Identical bytes are stored once.",
5009
+ "description": "Normal prerequisite for any featured image whose URL was not already returned by commons_host_image. Host image bytes from imageBase64 when you already have an attachment and the serialized request stays under about 3 MB, or from a stable direct public HTTPS image URL; do not pass a webpage, caller-local path, private URL, or temporary/signed attachment URL. Returns the permanent Commons URL to place in featuredImage.url before commons_validate_entity and commons_submit_entity. Submit can still auto-host a stable public source as a compatibility fallback. JPEG, PNG, GIF, and WebP are accepted up to 10 MB; SVG is rejected. Identical bytes are stored once.",
5010
5010
  "inputSchema": {
5011
5011
  "type": "object",
5012
5012
  "properties": {
5013
5013
  "sourceUrl": {
5014
- "description": "Public https image URL to download and host. The wiki never serves a third-party URL directly, so pass the original source here rather than putting it on the entity.",
5014
+ "description": "Stable direct public HTTPS URL whose response is the image bytes to host. Do not pass an HTML webpage, chat attachment reference, caller-local path, temporary or signed URL, or private/authenticated URL.",
5015
5015
  "type": "string",
5016
5016
  "format": "uri"
5017
5017
  },
5018
5018
  "imageBase64": {
5019
- "description": "Base64 image bytes for an image you already hold. Use for images under about 3 MB; larger files should be published from a URL.",
5019
+ "description": "Base64 image bytes for an image you already hold, including forwarded chat attachment bytes. Prefer this over a temporary attachment URL when the serialized request remains under about 3 MB; larger files require a stable direct public HTTPS source URL.",
5020
5020
  "type": "string",
5021
5021
  "minLength": 16
5022
5022
  },
@@ -6028,7 +6028,7 @@ var MCP_TOOL_CATALOG = [
6028
6028
  "name": "commons_submit_entity",
6029
6029
  "category": "commons",
6030
6030
  "title": "Transparent Commons Governed Entity Write",
6031
- "description": "Create or propose an edit to a Transparent Commons public wiki entity through the governed MCP Scraper write plane. A new entity costs 10 Credits; an edit to an existing entity costs 2 Credits. Preparation and validation are free, and idempotent retries are not charged twice. This never edits rendered HTML directly. Normal workflow is commons_prepare_entity, compose, commons_validate_entity, then submit. commons_prepare_entity returns the entity profile contract and section guidance to compose against. Transparent Commons is an open wiki: any account may edit any entity, and every edit publishes and is recorded on the public contribution ledger. Publishing requires a featured image and body/source evidence. Pass baseRevision when editing so the ledger can show whether the edit was written on top of a newer revision. Requires idempotencyKey.",
6031
+ "description": "Charged governed write that creates or proposes an edit to a Transparent Commons public wiki entity. A new entity costs 10 Credits; an edit costs 2 Credits. Preparation, image hosting, and validation are free, and idempotent retries are not charged twice. Normal workflow is commons_prepare_entity, compose the page, commons_host_image, commons_validate_entity, then submit with the returned permanent featuredImage.url. Submit retains a compatibility fallback that auto-hosts a stable direct public HTTPS image URL; if image ingress fails, it returns an actionable image tool error so you can host different bytes or a different stable source, replace the URL, validate again, and retry the same intended write with the same idempotencyKey. This never edits rendered HTML directly. Transparent Commons is an open wiki: any account may edit any entity, and every applied edit is recorded on the public contribution ledger. Publishing requires a ready featured image and body/source evidence. Pass baseRevision when editing so the ledger can show whether the edit was written on top of a newer revision. Requires idempotencyKey.",
6032
6032
  "inputSchema": {
6033
6033
  "type": "object",
6034
6034
  "properties": {
@@ -6036,7 +6036,7 @@ var MCP_TOOL_CATALOG = [
6036
6036
  "type": "string",
6037
6037
  "minLength": 8,
6038
6038
  "maxLength": 200,
6039
- "description": "Required unique opaque ID for this intended Commons write. Reuse only when retrying the same write after a timeout; use a new value for each intentional create or edit."
6039
+ "description": "Required unique opaque ID for this intended Commons write. Reuse it when retrying the same intended write after a timeout or after correcting a pre-persistence image-ingress failure; use a new value for each intentional create or edit."
6040
6040
  },
6041
6041
  "title": {
6042
6042
  "type": "string",
@@ -6072,13 +6072,13 @@ var MCP_TOOL_CATALOG = [
6072
6072
  "maxLength": 240
6073
6073
  },
6074
6074
  "featuredImage": {
6075
- "description": "Required for auto-published public entities. The image is also added to the media manifest if absent.",
6075
+ "description": "Required for auto-published public entities. First call commons_host_image and place its returned permanent URL here; validation does not fetch external images and reports unregistered URLs as not publishable. Submit retains a compatibility fallback that auto-hosts a stable direct public HTTPS image URL. The image is also added to the media manifest if absent.",
6076
6076
  "type": "object",
6077
6077
  "properties": {
6078
6078
  "url": {
6079
6079
  "type": "string",
6080
6080
  "format": "uri",
6081
- "description": "Required public image URL for a publishable entity. Use extract_url includeFeaturedImage or preserved media when available."
6081
+ "description": "For a publish-ready entity, use the permanent URL returned by commons_host_image. Submit can auto-host a stable direct public HTTPS image URL as a compatibility fallback, but validation reports any unregistered external URL as not ready. Do not use a chat attachment reference, caller-local path, temporary or signed URL, private URL, or HTML page URL."
6082
6082
  },
6083
6083
  "alt": {
6084
6084
  "description": "Accessible alternative text describing the image.",
@@ -6955,7 +6955,7 @@ var MCP_TOOL_CATALOG = [
6955
6955
  "name": "commons_validate_entity",
6956
6956
  "category": "commons",
6957
6957
  "title": "Transparent Commons Validate Entity",
6958
- "description": "Validate a proposed Transparent Commons entity payload without writing. Checks publishable basics, featured image, source/body evidence, existing-entity conflict state, heading profile alignment, and unsupported placeholder sections. Call this after composing the page and before commons_submit_entity.",
6958
+ "description": "Read-only validation for a proposed Transparent Commons entity payload. Call it after commons_prepare_entity, composing the page, and commons_host_image. It does not fetch or store image bytes: an external or otherwise unregistered featured image remains not publishable until commons_host_image returns the permanent Commons URL. Inspect imageDiagnostics for readiness and the required action before commons_submit_entity. Also checks source/body evidence, existing-entity conflict state, heading profile alignment, and unsupported placeholder sections.",
6959
6959
  "inputSchema": {
6960
6960
  "type": "object",
6961
6961
  "properties": {
@@ -6997,13 +6997,13 @@ var MCP_TOOL_CATALOG = [
6997
6997
  "maxLength": 240
6998
6998
  },
6999
6999
  "featuredImage": {
7000
- "description": "Required for auto-published public entities. The image is also added to the media manifest if absent.",
7000
+ "description": "Required for auto-published public entities. First call commons_host_image and place its returned permanent URL here; validation does not fetch external images and reports unregistered URLs as not publishable. Submit retains a compatibility fallback that auto-hosts a stable direct public HTTPS image URL. The image is also added to the media manifest if absent.",
7001
7001
  "type": "object",
7002
7002
  "properties": {
7003
7003
  "url": {
7004
7004
  "type": "string",
7005
7005
  "format": "uri",
7006
- "description": "Required public image URL for a publishable entity. Use extract_url includeFeaturedImage or preserved media when available."
7006
+ "description": "For a publish-ready entity, use the permanent URL returned by commons_host_image. Submit can auto-host a stable direct public HTTPS image URL as a compatibility fallback, but validation reports any unregistered external URL as not ready. Do not use a chat attachment reference, caller-local path, temporary or signed URL, private URL, or HTML page URL."
7007
7007
  },
7008
7008
  "alt": {
7009
7009
  "description": "Accessible alternative text describing the image.",
@@ -12848,7 +12848,7 @@ var MCP_TOOL_CATALOG = [
12848
12848
  "name": "local_sourcebook_submission_status",
12849
12849
  "category": "directory",
12850
12850
  "title": "Local Sourcebook Submission Status",
12851
- "description": "Read the caller\u2019s listing draft, enrichment coverage, revision number, publication state, and live LocalSourcebook.com profile and reviews URLs. When status is failed, acquisitionError says why \u2014 read it before retrying, since a refresh repeats the same acquisition. Coverage counters are written only on success, so zeroed counters on a failed listing do not mean the crawl never ran.",
12851
+ "description": "Read the caller\u2019s listing draft, enrichment coverage, revision number, publication state, and LocalSourcebook.com profile and reviews URLs. While statusCheck.required is true, wait the returned interval and check again before giving the user a final completion answer. When published, present the returned message and exact clickable publicUrls.profileUrl. When failed, present the failure message and read acquisitionError before retrying, since a refresh repeats the same acquisition. Coverage counters are written only on success, so zeroed counters on a failed listing do not mean the crawl never ran.",
12852
12852
  "inputSchema": {
12853
12853
  "type": "object",
12854
12854
  "properties": {
@@ -12875,7 +12875,7 @@ var MCP_TOOL_CATALOG = [
12875
12875
  "name": "local-sourcebook-capture",
12876
12876
  "category": "directory",
12877
12877
  "title": "Capture Governed Local Sourcebook Listing",
12878
- "description": "Strict owner-scoped LocalBusiness write path after list, contract, prepare, and validate. Creating a listing costs 10 Credits total, including website, exact-place, review, service-area, staff, genuine-media, and structured-data compilation; preparation and validation are free, and idempotent retries are not charged twice. Capture registers canonical tags and the accepted Schema.org LocalBusiness subtype, returns the exact LocalSourcebook.com profile and reviews URLs, and queues acquisition. MCP Scraper generates the final JSON-LD from source-backed evidence. A successful system-compiled evidence revision publishes automatically; owner-authored public claims and arbitrary JSON-LD are not accepted.",
12878
+ "description": "Strict owner-scoped LocalBusiness write path after list, contract, prepare, and validate. Creating a listing costs 10 Credits total, including website, exact-place, review, service-area, staff, genuine-media, and structured-data compilation; preparation and validation are free, and idempotent retries are not charged twice. Capture registers canonical tags and the accepted Schema.org LocalBusiness subtype, then queues acquisition; an accepted capture is not yet live. Poll local_sourcebook_submission_status using statusCheck until it is terminal. When published, tell the user the returned message and exact publicUrls.profileUrl. MCP Scraper generates the final JSON-LD from source-backed evidence and publishes a successful system-compiled revision automatically; owner-authored public claims and arbitrary JSON-LD are not accepted.",
12879
12879
  "inputSchema": {
12880
12880
  "type": "object",
12881
12881
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpscraper-cli",
3
- "version": "0.29.4",
3
+ "version": "0.29.6",
4
4
  "description": "Command-line interface for mcpscraper.dev and memory.mcpscraper.dev",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "commander": "^12.0.0",
22
- "mcpscraper-sdk": "^0.30.4"
22
+ "mcpscraper-sdk": "^0.30.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^22.0.0"