mcp-scraper 0.5.0 → 0.6.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/dist/bin/api-server.cjs +380 -17
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- 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 +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +320 -9
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/{chunk-J4T5OSCF.js → chunk-3K5GT6VG.js} +321 -10
- package/dist/chunk-3K5GT6VG.js.map +1 -0
- package/dist/chunk-F2BXETDX.js +7 -0
- package/dist/chunk-F2BXETDX.js.map +1 -0
- package/dist/{server-Z4MEISH5.js → server-WHM446IZ.js} +60 -8
- package/dist/{server-Z4MEISH5.js.map → server-WHM446IZ.js.map} +1 -1
- package/package.json +2 -2
- package/dist/chunk-3RTPEQJC.js +0 -7
- package/dist/chunk-3RTPEQJC.js.map +0 -1
- package/dist/chunk-J4T5OSCF.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.6.0'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
registerSerpIntelligenceCaptureTools,
|
|
34
34
|
sanitizeAttempts,
|
|
35
35
|
sanitizeHarvestResult
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3K5GT6VG.js";
|
|
37
37
|
import {
|
|
38
38
|
auditImages,
|
|
39
39
|
getBlobStore
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
RawMapsOverviewSchema,
|
|
68
68
|
RawMapsReviewStatsSchema
|
|
69
69
|
} from "./chunk-XGIPATLV.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-F2BXETDX.js";
|
|
71
71
|
import {
|
|
72
72
|
completeExtractJob,
|
|
73
73
|
countSuccessfulPages,
|
|
@@ -12042,9 +12042,6 @@ async function memoryCall(toolName, args, userMemoryKey) {
|
|
|
12042
12042
|
return { ok: false, error: err?.message ?? "memory call failed" };
|
|
12043
12043
|
}
|
|
12044
12044
|
}
|
|
12045
|
-
function personalVault(user) {
|
|
12046
|
-
return `mcp-${user.id}`;
|
|
12047
|
-
}
|
|
12048
12045
|
function memoryIdentity(user) {
|
|
12049
12046
|
return user.email;
|
|
12050
12047
|
}
|
|
@@ -15592,6 +15589,15 @@ import { listSharedWithMeTool } from "mcpscraper-memory-tools/tools/vaults/list-
|
|
|
15592
15589
|
import { listVaultsTool } from "mcpscraper-memory-tools/tools/vaults/list-vaults";
|
|
15593
15590
|
import { videoAnalyzeStatusTool } from "mcpscraper-memory-tools/tools/video/status";
|
|
15594
15591
|
import { listWebhooksTool } from "mcpscraper-memory-tools/tools/webhooks/list-webhooks";
|
|
15592
|
+
import { getVaultContractTool } from "mcpscraper-memory-tools/tools/vaults/get-vault-contract";
|
|
15593
|
+
import { routeMemoryTool } from "mcpscraper-memory-tools/tools/vaults/route-memory";
|
|
15594
|
+
import { listTagsTool } from "mcpscraper-memory-tools/tools/tags/list-tags";
|
|
15595
|
+
import { resolveTagsTool } from "mcpscraper-memory-tools/tools/tags/resolve-tags";
|
|
15596
|
+
import { noteBacklinksTool } from "mcpscraper-memory-tools/tools/graph/memory-backlinks";
|
|
15597
|
+
import { graphUniverseTool } from "mcpscraper-memory-tools/tools/graph/memory-graph-universe";
|
|
15598
|
+
import { graphPathTool } from "mcpscraper-memory-tools/tools/graph/memory-graph-path";
|
|
15599
|
+
import { prepareMemoryWriteTool } from "mcpscraper-memory-tools/tools/capture/prepare-memory-write";
|
|
15600
|
+
import { validateMemoryWriteTool } from "mcpscraper-memory-tools/tools/capture/validate-memory-write";
|
|
15595
15601
|
var registered = false;
|
|
15596
15602
|
function registerReadCutovers() {
|
|
15597
15603
|
if (registered) return;
|
|
@@ -15684,6 +15690,42 @@ function registerReadCutovers() {
|
|
|
15684
15690
|
const result = await listWebhooksTool.execute({ ...input, apiKey }, {});
|
|
15685
15691
|
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15686
15692
|
});
|
|
15693
|
+
registerCutover("getVaultContractTool", async (input, apiKey) => {
|
|
15694
|
+
const result = await getVaultContractTool.execute({ ...input, apiKey }, {});
|
|
15695
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15696
|
+
});
|
|
15697
|
+
registerCutover("routeMemoryTool", async (input, apiKey) => {
|
|
15698
|
+
const result = await routeMemoryTool.execute({ ...input, apiKey }, {});
|
|
15699
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15700
|
+
});
|
|
15701
|
+
registerCutover("listTagsTool", async (input, apiKey) => {
|
|
15702
|
+
const result = await listTagsTool.execute({ ...input, apiKey }, {});
|
|
15703
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15704
|
+
});
|
|
15705
|
+
registerCutover("resolveTagsTool", async (input, apiKey) => {
|
|
15706
|
+
const result = await resolveTagsTool.execute({ ...input, apiKey }, {});
|
|
15707
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15708
|
+
});
|
|
15709
|
+
registerCutover("noteBacklinksTool", async (input, apiKey) => {
|
|
15710
|
+
const result = await noteBacklinksTool.execute({ ...input, apiKey }, {});
|
|
15711
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15712
|
+
});
|
|
15713
|
+
registerCutover("graphUniverseTool", async (input, apiKey) => {
|
|
15714
|
+
const result = await graphUniverseTool.execute({ ...input, apiKey }, {});
|
|
15715
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15716
|
+
});
|
|
15717
|
+
registerCutover("graphPathTool", async (input, apiKey) => {
|
|
15718
|
+
const result = await graphPathTool.execute({ ...input, apiKey }, {});
|
|
15719
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15720
|
+
});
|
|
15721
|
+
registerCutover("prepareMemoryWriteTool", async (input, apiKey) => {
|
|
15722
|
+
const result = await prepareMemoryWriteTool.execute({ ...input, apiKey }, {});
|
|
15723
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15724
|
+
});
|
|
15725
|
+
registerCutover("validateMemoryWriteTool", async (input, apiKey) => {
|
|
15726
|
+
const result = await validateMemoryWriteTool.execute({ ...input, apiKey }, {});
|
|
15727
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15728
|
+
});
|
|
15687
15729
|
}
|
|
15688
15730
|
|
|
15689
15731
|
// src/mcp/memory-cutover/writes.ts
|
|
@@ -15721,6 +15763,8 @@ import { dropTableTool } from "mcpscraper-memory-tools/tools/tables/table-drop";
|
|
|
15721
15763
|
import { insertTableRowsTool } from "mcpscraper-memory-tools/tools/tables/table-insert-rows";
|
|
15722
15764
|
import { addVaultTool } from "mcpscraper-memory-tools/tools/vaults/add-vault";
|
|
15723
15765
|
import { deleteVaultTool } from "mcpscraper-memory-tools/tools/vaults/delete-vault";
|
|
15766
|
+
import { memoryCaptureTool } from "mcpscraper-memory-tools/tools/capture/memory-capture";
|
|
15767
|
+
import { upsertTagTool } from "mcpscraper-memory-tools/tools/tags/upsert-tag";
|
|
15724
15768
|
var registered2 = false;
|
|
15725
15769
|
function registerWriteCutovers() {
|
|
15726
15770
|
if (registered2) return;
|
|
@@ -15861,6 +15905,14 @@ function registerWriteCutovers() {
|
|
|
15861
15905
|
const result = await deleteVaultTool.execute({ ...input, apiKey }, {});
|
|
15862
15906
|
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15863
15907
|
});
|
|
15908
|
+
registerCutover("memoryCaptureTool", async (input, apiKey) => {
|
|
15909
|
+
const result = await memoryCaptureTool.execute({ ...input, apiKey }, {});
|
|
15910
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15911
|
+
});
|
|
15912
|
+
registerCutover("upsertTagTool", async (input, apiKey) => {
|
|
15913
|
+
const result = await upsertTagTool.execute({ ...input, apiKey }, {});
|
|
15914
|
+
return { content: [{ type: "text", text: JSON.stringify(result ?? {}) }], structuredContent: result ?? {}, isError: false };
|
|
15915
|
+
});
|
|
15864
15916
|
}
|
|
15865
15917
|
|
|
15866
15918
|
// src/mcp/memory-cutover/billing.ts
|
|
@@ -19988,7 +20040,7 @@ async function depositScrapeToVault(user, opts) {
|
|
|
19988
20040
|
const clipped = content.length > MAX_DEPOSIT_CHARS ? content.slice(0, MAX_DEPOSIT_CHARS) : content;
|
|
19989
20041
|
const { key, error } = await getOrCreateUserMemoryKey(user);
|
|
19990
20042
|
if (!key) return { deposited: false, error: error ?? "memory unavailable" };
|
|
19991
|
-
const vault = opts.vault?.trim() ||
|
|
20043
|
+
const vault = opts.vault?.trim() || "Library";
|
|
19992
20044
|
const title = (opts.title?.trim() || opts.source).slice(0, 200);
|
|
19993
20045
|
const res = await memoryCall(
|
|
19994
20046
|
"libraryIngestTool",
|
|
@@ -19996,7 +20048,7 @@ async function depositScrapeToVault(user, opts) {
|
|
|
19996
20048
|
key
|
|
19997
20049
|
);
|
|
19998
20050
|
if (!res.ok) return { deposited: false, vault, error: res.error ?? "ingest failed" };
|
|
19999
|
-
return { deposited: true, vault, noteId: res.noteId, path: res.path, chunks: res.
|
|
20051
|
+
return { deposited: true, vault, noteId: res.noteId, path: res.path, chunks: res.indexed };
|
|
20000
20052
|
} catch (err) {
|
|
20001
20053
|
return { deposited: false, error: err?.message ?? "deposit failed" };
|
|
20002
20054
|
}
|
|
@@ -22019,4 +22071,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
22019
22071
|
export {
|
|
22020
22072
|
app
|
|
22021
22073
|
};
|
|
22022
|
-
//# sourceMappingURL=server-
|
|
22074
|
+
//# sourceMappingURL=server-WHM446IZ.js.map
|