mcp-scraper 0.55.0 → 0.56.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 +12 -0
- package/README.md +2 -2
- package/dist/bin/api-server.cjs +55 -20
- 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 +26 -4
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +4 -4
- package/dist/chunk-245IAJ7R.js +7 -0
- package/dist/chunk-245IAJ7R.js.map +1 -0
- package/dist/{chunk-WYLIDW4S.js → chunk-JEZW6N2X.js} +27 -5
- package/dist/chunk-JEZW6N2X.js.map +1 -0
- package/dist/{chunk-PGI2QPFE.js → chunk-LUJYVNO7.js} +2 -2
- package/dist/{chunk-PGI2QPFE.js.map → chunk-LUJYVNO7.js.map} +1 -1
- package/dist/{chunk-2FL5FXMV.js → chunk-NP66MZ5A.js} +2 -2
- package/dist/{chunk-N4LT53JX.js → chunk-WO2SSENO.js} +3 -3
- package/dist/{chunk-N4LT53JX.js.map → chunk-WO2SSENO.js.map} +1 -1
- package/dist/{extract-bundle-3CRG7FAN.js → extract-bundle-6KYTD55T.js} +3 -3
- package/dist/{server-WKBCZ2TH.js → server-SETYJPYO.js} +37 -24
- package/dist/{server-WKBCZ2TH.js.map → server-SETYJPYO.js.map} +1 -1
- package/dist/{site-extract-repository-QSRPXNMI.js → site-extract-repository-YGNYFTNE.js} +3 -3
- package/dist/{worker-W5C6SKZT.js → worker-DTVBN3RQ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-V2QWNGEK.js +0 -7
- package/dist/chunk-V2QWNGEK.js.map +0 -1
- package/dist/chunk-WYLIDW4S.js.map +0 -1
- /package/dist/{chunk-2FL5FXMV.js.map → chunk-NP66MZ5A.js.map} +0 -0
- /package/dist/{extract-bundle-3CRG7FAN.js.map → extract-bundle-6KYTD55T.js.map} +0 -0
- /package/dist/{site-extract-repository-QSRPXNMI.js.map → site-extract-repository-YGNYFTNE.js.map} +0 -0
- /package/dist/{worker-W5C6SKZT.js.map → worker-DTVBN3RQ.js.map} +0 -0
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
registerScheduledResultsMcpTools,
|
|
14
14
|
registerSerpIntelligenceCaptureTools,
|
|
15
15
|
resolveDeploymentProfile
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-JEZW6N2X.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-LUJYVNO7.js";
|
|
23
23
|
import {
|
|
24
24
|
PACKAGE_VERSION
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-245IAJ7R.js";
|
|
26
|
+
import "../chunk-WO2SSENO.js";
|
|
27
27
|
import "../chunk-NDIAJIKQ.js";
|
|
28
28
|
import "../chunk-KSAXVGKC.js";
|
|
29
29
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.56.0'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-AK2NNIYA.js";
|
|
22
22
|
import {
|
|
23
23
|
PACKAGE_VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-245IAJ7R.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-WO2SSENO.js";
|
|
32
32
|
import {
|
|
33
33
|
buildPublicErrorEnvelope,
|
|
34
34
|
normalizePublicErrorCode,
|
|
@@ -374,7 +374,7 @@ seam is noted so you can chain them.
|
|
|
374
374
|
prepare-memory-write: it returns the live entity profile contract, duplicate candidates, tag reuse/review/create
|
|
375
375
|
guidance, recommended sections, optional sections, and heading guidance before any write occurs.
|
|
376
376
|
- Validate a composed entity without writing -> **commons_validate_entity**. Use it after composing and before submit
|
|
377
|
-
to catch missing featured images, missing source/body evidence, duplicate
|
|
377
|
+
to catch missing featured images, missing source/body evidence, duplicate candidates, and
|
|
378
378
|
unsupported placeholder sections.
|
|
379
379
|
- Create or edit a public wiki entity -> **commons_submit_entity**. This is a governed proposal write,
|
|
380
380
|
not direct rendered HTML editing. Normal workflow is prepare -> validate -> submit. Pick the closest entity type
|
|
@@ -382,6 +382,9 @@ seam is noted so you can chain them.
|
|
|
382
382
|
Trail, or PublicArticle.
|
|
383
383
|
Creating a new entity costs 10 Credits; editing an existing entity costs 2 Credits. Preparation, validation,
|
|
384
384
|
search, and reads are free. Reusing the same idempotency key for a retry does not charge twice.
|
|
385
|
+
Commons is an open wiki. Any account may edit any entity, and every edit publishes immediately and is
|
|
386
|
+
tracked on the public contribution ledger with the actor, the changed fields, and a before/after snapshot.
|
|
387
|
+
Pass baseRevision on an edit so the ledger records whether it landed on top of a newer revision.
|
|
385
388
|
The body must be a neutral encyclopedia projection, not a blog post or raw scrape dump. Use H2 for the
|
|
386
389
|
entity's main sections and H3/H4/H5 for subtopics; every heading becomes a public page-menu item.
|
|
387
390
|
Entity profiles are adaptive contracts, not empty templates. Use the prepare output as the guide, but omit
|
|
@@ -6376,6 +6379,9 @@ var CommonsValidateEntityInputSchema = {
|
|
|
6376
6379
|
var CommonsGetEntityLedgerInputSchema = {
|
|
6377
6380
|
idOrSlug: z5.string().trim().min(1).max(180).describe("Published entity id or /wiki/ slug whose contribution ledger should be read.")
|
|
6378
6381
|
};
|
|
6382
|
+
var CommonsGetProposalInputSchema = {
|
|
6383
|
+
proposalId: z5.string().trim().min(1).max(120).describe("Proposal id returned by commons_submit_entity, in the form commons-proposal-<uuid>.")
|
|
6384
|
+
};
|
|
6379
6385
|
var CommonsSaveFilterInputSchema = {
|
|
6380
6386
|
name: z5.string().trim().min(2).max(80).describe("User-facing name for this MCP personalization filter. Reusing a name updates the saved filter."),
|
|
6381
6387
|
description: z5.string().trim().max(500).optional().describe("Optional note explaining when this filter should be used."),
|
|
@@ -9833,7 +9839,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
9833
9839
|
}, async (input) => executor.commonsValidateEntity(input));
|
|
9834
9840
|
server.registerTool("commons_submit_entity", {
|
|
9835
9841
|
title: "Transparent Commons Governed Entity Write",
|
|
9836
|
-
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. Choose a precise entityType and write a neutral encyclopedia projection with the matching entity structure, not a blog article or raw scrape dump. Use H2 sections and H3/H4/H5 subitems; every heading appears in the public page menu. Omit unsupported sections instead of publishing empty/filler headings.
|
|
9842
|
+
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. Choose a precise entityType and write a neutral encyclopedia projection with the matching entity structure, not a blog article or raw scrape dump. Use H2 sections and H3/H4/H5 subitems; every heading appears in the public page menu. Omit unsupported sections instead of publishing empty/filler headings. 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.",
|
|
9837
9843
|
inputSchema: CommonsSubmitEntityInputSchema,
|
|
9838
9844
|
outputSchema: recordOutputSchema("commons_submit_entity", CommonsGenericOutputSchema),
|
|
9839
9845
|
annotations: {
|
|
@@ -9857,6 +9863,19 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
9857
9863
|
openWorldHint: false
|
|
9858
9864
|
}
|
|
9859
9865
|
}, async (input) => executor.commonsGetEntityLedger(input));
|
|
9866
|
+
server.registerTool("commons_get_proposal", {
|
|
9867
|
+
title: "Transparent Commons Proposal Status",
|
|
9868
|
+
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.",
|
|
9869
|
+
inputSchema: CommonsGetProposalInputSchema,
|
|
9870
|
+
outputSchema: recordOutputSchema("commons_get_proposal", CommonsGenericOutputSchema),
|
|
9871
|
+
annotations: {
|
|
9872
|
+
title: "Transparent Commons Proposal Status",
|
|
9873
|
+
readOnlyHint: true,
|
|
9874
|
+
destructiveHint: false,
|
|
9875
|
+
idempotentHint: true,
|
|
9876
|
+
openWorldHint: false
|
|
9877
|
+
}
|
|
9878
|
+
}, async (input) => executor.commonsGetProposal(input));
|
|
9860
9879
|
server.registerTool("commons_save_filter", {
|
|
9861
9880
|
title: "Transparent Commons Saved MCP Filter",
|
|
9862
9881
|
description: "Save or update an account-scoped Commons search filter so one MCP can behave like many personalized reading rooms, trails, source scopes, categories, or tag bundles. Reusing a filter name updates it.",
|
|
@@ -10868,6 +10887,9 @@ var HttpMcpToolExecutor = class {
|
|
|
10868
10887
|
commonsGetEntityLedger(input) {
|
|
10869
10888
|
return this.getJson(`/commons/entities/${encodeURIComponent(input.idOrSlug)}/ledger`);
|
|
10870
10889
|
}
|
|
10890
|
+
commonsGetProposal(input) {
|
|
10891
|
+
return this.getJson(`/commons/proposals/${encodeURIComponent(input.proposalId)}`);
|
|
10892
|
+
}
|
|
10871
10893
|
commonsSaveFilter(input) {
|
|
10872
10894
|
return this.call("/commons/filters", input);
|
|
10873
10895
|
}
|
|
@@ -15927,4 +15949,4 @@ export {
|
|
|
15927
15949
|
ScheduledResultsMcpExecutor,
|
|
15928
15950
|
registerScheduledResultsMcpTools
|
|
15929
15951
|
};
|
|
15930
|
-
//# sourceMappingURL=chunk-
|
|
15952
|
+
//# sourceMappingURL=chunk-JEZW6N2X.js.map
|