mcp-scraper 0.56.0 → 0.57.1
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 +28 -0
- package/README.md +2 -2
- package/dist/bin/api-server.cjs +576 -156
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +2 -2
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +2 -2
- package/dist/bin/mcp-stdio-server.cjs +25 -2
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +4 -4
- package/dist/{chunk-JEZW6N2X.js → chunk-2KL4MSZP.js} +26 -3
- package/dist/chunk-2KL4MSZP.js.map +1 -0
- package/dist/{chunk-NP66MZ5A.js → chunk-5XYBKE3X.js} +2 -2
- package/dist/{chunk-LUJYVNO7.js → chunk-HU4R6BP2.js} +2 -2
- package/dist/{chunk-LUJYVNO7.js.map → chunk-HU4R6BP2.js.map} +1 -1
- package/dist/{chunk-WO2SSENO.js → chunk-R6CO77BN.js} +3 -3
- package/dist/{chunk-WO2SSENO.js.map → chunk-R6CO77BN.js.map} +1 -1
- package/dist/chunk-VTBJVKBE.js +7 -0
- package/dist/chunk-VTBJVKBE.js.map +1 -0
- package/dist/{extract-bundle-6KYTD55T.js → extract-bundle-H7JEELY7.js} +3 -3
- package/dist/{server-SETYJPYO.js → server-DSCKFM7K.js} +459 -72
- package/dist/server-DSCKFM7K.js.map +1 -0
- package/dist/{site-extract-repository-YGNYFTNE.js → site-extract-repository-CFMSWAVL.js} +3 -3
- package/dist/{worker-DTVBN3RQ.js → worker-S2WXELUC.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-245IAJ7R.js +0 -7
- package/dist/chunk-245IAJ7R.js.map +0 -1
- package/dist/chunk-JEZW6N2X.js.map +0 -1
- package/dist/server-SETYJPYO.js.map +0 -1
- /package/dist/{chunk-NP66MZ5A.js.map → chunk-5XYBKE3X.js.map} +0 -0
- /package/dist/{extract-bundle-6KYTD55T.js.map → extract-bundle-H7JEELY7.js.map} +0 -0
- /package/dist/{site-extract-repository-YGNYFTNE.js.map → site-extract-repository-CFMSWAVL.js.map} +0 -0
- /package/dist/{worker-DTVBN3RQ.js.map → worker-S2WXELUC.js.map} +0 -0
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
registerScheduledResultsMcpTools,
|
|
14
14
|
registerSerpIntelligenceCaptureTools,
|
|
15
15
|
resolveDeploymentProfile
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-2KL4MSZP.js";
|
|
17
17
|
import "../chunk-2K74LVV7.js";
|
|
18
18
|
import "../chunk-4PNMJUSG.js";
|
|
19
19
|
import "../chunk-AK2NNIYA.js";
|
|
20
20
|
import {
|
|
21
21
|
renderInstallTerminal
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-HU4R6BP2.js";
|
|
23
23
|
import {
|
|
24
24
|
PACKAGE_VERSION
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-VTBJVKBE.js";
|
|
26
|
+
import "../chunk-R6CO77BN.js";
|
|
27
27
|
import "../chunk-NDIAJIKQ.js";
|
|
28
28
|
import "../chunk-KSAXVGKC.js";
|
|
29
29
|
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-AK2NNIYA.js";
|
|
22
22
|
import {
|
|
23
23
|
PACKAGE_VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VTBJVKBE.js";
|
|
25
25
|
import {
|
|
26
26
|
MC_PER_CREDIT,
|
|
27
27
|
PAA_BASE_CREDITS,
|
|
28
28
|
PAA_QUESTION_CREDITS,
|
|
29
29
|
PAGE_SCRAPE_CREDITS,
|
|
30
30
|
SERP_SEARCH_CREDITS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R6CO77BN.js";
|
|
32
32
|
import {
|
|
33
33
|
buildPublicErrorEnvelope,
|
|
34
34
|
normalizePublicErrorCode,
|
|
@@ -6379,6 +6379,13 @@ var CommonsValidateEntityInputSchema = {
|
|
|
6379
6379
|
var CommonsGetEntityLedgerInputSchema = {
|
|
6380
6380
|
idOrSlug: z5.string().trim().min(1).max(180).describe("Published entity id or /wiki/ slug whose contribution ledger should be read.")
|
|
6381
6381
|
};
|
|
6382
|
+
var CommonsHostImageInputSchema = {
|
|
6383
|
+
sourceUrl: z5.string().url().optional().describe("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."),
|
|
6384
|
+
imageBase64: z5.string().min(16).optional().describe("Base64 image bytes for an image you already hold. Use for images under about 3 MB; larger files should be published from a URL."),
|
|
6385
|
+
alt: z5.string().trim().max(500).optional().describe("Alt text describing the image for readers who cannot see it."),
|
|
6386
|
+
license: z5.string().trim().max(240).optional().describe("License or usage terms of the original image, preserved with the hosted copy."),
|
|
6387
|
+
attribution: z5.string().trim().max(500).optional().describe("Credit line for the original photographer, publication, or archive.")
|
|
6388
|
+
};
|
|
6382
6389
|
var CommonsGetProposalInputSchema = {
|
|
6383
6390
|
proposalId: z5.string().trim().min(1).max(120).describe("Proposal id returned by commons_submit_entity, in the form commons-proposal-<uuid>.")
|
|
6384
6391
|
};
|
|
@@ -9863,6 +9870,19 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
9863
9870
|
openWorldHint: false
|
|
9864
9871
|
}
|
|
9865
9872
|
}, async (input) => executor.commonsGetEntityLedger(input));
|
|
9873
|
+
server.registerTool("commons_host_image", {
|
|
9874
|
+
title: "Host a Transparent Commons Image",
|
|
9875
|
+
description: "Download an image from a public https URL, or accept base64 bytes, and store it as a permanent Commons-hosted image. Returns the hosted URL to use on an entity. Commons never serves a third-party image URL: submitting an entity with an external image hosts it automatically, and this tool exists for hosting an image before or independently of a write. JPEG, PNG, GIF, and WebP up to 10 MB; SVG is rejected because the wiki serves images to the public web. Identical bytes are stored once and reused.",
|
|
9876
|
+
inputSchema: CommonsHostImageInputSchema,
|
|
9877
|
+
outputSchema: recordOutputSchema("commons_host_image", CommonsGenericOutputSchema),
|
|
9878
|
+
annotations: {
|
|
9879
|
+
title: "Host a Transparent Commons Image",
|
|
9880
|
+
readOnlyHint: false,
|
|
9881
|
+
destructiveHint: false,
|
|
9882
|
+
idempotentHint: true,
|
|
9883
|
+
openWorldHint: true
|
|
9884
|
+
}
|
|
9885
|
+
}, async (input) => executor.commonsHostImage(input));
|
|
9866
9886
|
server.registerTool("commons_get_proposal", {
|
|
9867
9887
|
title: "Transparent Commons Proposal Status",
|
|
9868
9888
|
description: "Read one commons_submit_entity proposal owned by the calling account. Use it when submit returned a proposal that was held for review instead of published, to see the review reason and whether it has since been applied.",
|
|
@@ -10890,6 +10910,9 @@ var HttpMcpToolExecutor = class {
|
|
|
10890
10910
|
commonsGetProposal(input) {
|
|
10891
10911
|
return this.getJson(`/commons/proposals/${encodeURIComponent(input.proposalId)}`);
|
|
10892
10912
|
}
|
|
10913
|
+
commonsHostImage(input) {
|
|
10914
|
+
return this.call("/commons/images", input);
|
|
10915
|
+
}
|
|
10893
10916
|
commonsSaveFilter(input) {
|
|
10894
10917
|
return this.call("/commons/filters", input);
|
|
10895
10918
|
}
|
|
@@ -15949,4 +15972,4 @@ export {
|
|
|
15949
15972
|
ScheduledResultsMcpExecutor,
|
|
15950
15973
|
registerScheduledResultsMcpTools
|
|
15951
15974
|
};
|
|
15952
|
-
//# sourceMappingURL=chunk-
|
|
15975
|
+
//# sourceMappingURL=chunk-2KL4MSZP.js.map
|