mcpscraper-cli 0.29.6 → 0.29.7

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 +22 -8
  2. package/package.json +1 -1
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.6";
13
+ var CLI_VERSION = "0.29.7";
14
14
 
15
15
  // src/generated-tools.ts
16
16
  var MCP_TOOL_CATALOG = [
@@ -5006,20 +5006,34 @@ var MCP_TOOL_CATALOG = [
5006
5006
  "name": "commons_host_image",
5007
5007
  "category": "commons",
5008
5008
  "title": "Host a Transparent Commons Image",
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.",
5009
+ "description": "Turn one supplied image source into a permanent Transparent Commons image before validation and submission. Provide exactly one of imageBase64 for a pasted or AI-generated image, artifactId for an owner-scoped MCP Scraper image artifact, or sourceUrl for either a direct public HTTPS image or a webpage containing the desired image. Webpages are inspected in deterministic order for Open Graph, Twitter, JSON-LD, and meaningful content images; unusable candidates fall through to the next candidate. Returns the permanent URL for featuredImage.url plus source and selection provenance. JPEG, PNG, GIF, and WebP are accepted up to 10 MB; SVG is rejected. Identical bytes are stored once. Never pass a caller-local path or private/authenticated URL.",
5010
5010
  "inputSchema": {
5011
5011
  "type": "object",
5012
5012
  "properties": {
5013
5013
  "sourceUrl": {
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.",
5014
+ "description": "Public HTTPS direct image URL or webpage URL. A direct image is hosted as-is; an HTML page is inspected for Open Graph, Twitter, JSON-LD, and meaningful content images, then the first usable candidate is hosted. Temporary signed URLs are consumed immediately and query credentials are not retained as provenance.",
5015
5015
  "type": "string",
5016
5016
  "format": "uri"
5017
5017
  },
5018
5018
  "imageBase64": {
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.",
5019
+ "description": "Base64 image bytes for an image already available to the caller, including a pasted attachment or AI-generated image. Use sourceType to preserve whether it was uploaded or generated. Keep the complete serialized request within the client transport limit.",
5020
5020
  "type": "string",
5021
5021
  "minLength": 16
5022
5022
  },
5023
+ "artifactId": {
5024
+ "description": "Owner-scoped image artifact returned by an MCP Scraper media or screenshot workflow. The server reauthorizes ownership and reads the bytes directly; do not construct an artifact ID.",
5025
+ "type": "string",
5026
+ "minLength": 1,
5027
+ "maxLength": 500
5028
+ },
5029
+ "sourceType": {
5030
+ "description": "Provenance for imageBase64 or artifactId. Use ai_generated only when an image model created the supplied bytes; otherwise use uploaded or omit it.",
5031
+ "type": "string",
5032
+ "enum": [
5033
+ "uploaded",
5034
+ "ai_generated"
5035
+ ]
5036
+ },
5023
5037
  "alt": {
5024
5038
  "description": "Alt text describing the image for readers who cannot see it.",
5025
5039
  "type": "string",
@@ -6072,13 +6086,13 @@ var MCP_TOOL_CATALOG = [
6072
6086
  "maxLength": 240
6073
6087
  },
6074
6088
  "featuredImage": {
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.",
6089
+ "description": "Required for auto-published public entities. First call commons_host_image with attachment bytes, an image artifact, a direct image URL, or a webpage URL, then place its returned permanent URL here. Validation does not fetch external images and reports unregistered URLs as not publishable. Submit retains a compatibility fallback for public URLs. The image is also added to the media manifest if absent.",
6076
6090
  "type": "object",
6077
6091
  "properties": {
6078
6092
  "url": {
6079
6093
  "type": "string",
6080
6094
  "format": "uri",
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."
6095
+ "description": "For a publish-ready entity, use the permanent URL returned by commons_host_image. Validation reports any unregistered external URL as not ready. Do not use a chat attachment reference, caller-local path, private URL, or HTML page URL here; pass the original image or webpage source to commons_host_image first."
6082
6096
  },
6083
6097
  "alt": {
6084
6098
  "description": "Accessible alternative text describing the image.",
@@ -6997,13 +7011,13 @@ var MCP_TOOL_CATALOG = [
6997
7011
  "maxLength": 240
6998
7012
  },
6999
7013
  "featuredImage": {
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.",
7014
+ "description": "Required for auto-published public entities. First call commons_host_image with attachment bytes, an image artifact, a direct image URL, or a webpage URL, then place its returned permanent URL here. Validation does not fetch external images and reports unregistered URLs as not publishable. Submit retains a compatibility fallback for public URLs. The image is also added to the media manifest if absent.",
7001
7015
  "type": "object",
7002
7016
  "properties": {
7003
7017
  "url": {
7004
7018
  "type": "string",
7005
7019
  "format": "uri",
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."
7020
+ "description": "For a publish-ready entity, use the permanent URL returned by commons_host_image. Validation reports any unregistered external URL as not ready. Do not use a chat attachment reference, caller-local path, private URL, or HTML page URL here; pass the original image or webpage source to commons_host_image first."
7007
7021
  },
7008
7022
  "alt": {
7009
7023
  "description": "Accessible alternative text describing the image.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpscraper-cli",
3
- "version": "0.29.6",
3
+ "version": "0.29.7",
4
4
  "description": "Command-line interface for mcpscraper.dev and memory.mcpscraper.dev",
5
5
  "license": "MIT",
6
6
  "type": "module",