mcp-scraper 0.9.0 → 0.10.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 +97 -4
- 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 +49 -3
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-B7BAJU7K.js +7 -0
- package/dist/chunk-B7BAJU7K.js.map +1 -0
- package/dist/{chunk-FZG427QD.js → chunk-IRYBBEZJ.js} +50 -4
- package/dist/chunk-IRYBBEZJ.js.map +1 -0
- package/dist/{server-E34MNLI3.js → server-KTA7CFX6.js} +50 -3
- package/dist/server-KTA7CFX6.js.map +1 -0
- package/docs/oauth-legal-review.md +38 -0
- package/package.json +1 -1
- package/dist/chunk-FZG427QD.js.map +0 -1
- package/dist/chunk-RD5JOAWS.js +0 -7
- package/dist/chunk-RD5JOAWS.js.map +0 -1
- package/dist/server-E34MNLI3.js.map +0 -1
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
registerSerpIntelligenceCaptureTools,
|
|
35
35
|
sanitizeAttempts,
|
|
36
36
|
sanitizeHarvestResult
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IRYBBEZJ.js";
|
|
38
38
|
import {
|
|
39
39
|
auditImages,
|
|
40
40
|
buildLinkReport,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
RawMapsOverviewSchema,
|
|
71
71
|
RawMapsReviewStatsSchema
|
|
72
72
|
} from "./chunk-XGIPATLV.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-B7BAJU7K.js";
|
|
74
74
|
import {
|
|
75
75
|
completeExtractJob,
|
|
76
76
|
countSuccessfulPages,
|
|
@@ -20570,6 +20570,9 @@ async function getNangoConnections(identity) {
|
|
|
20570
20570
|
status: reconnectRequired ? "needs_reauth" : "connected",
|
|
20571
20571
|
reconnectRequired,
|
|
20572
20572
|
actionsEnabled: row.actionsEnabled === true || row.actions_enabled === true,
|
|
20573
|
+
readTools: cleanTools(row.readTools ?? row.read_tools),
|
|
20574
|
+
vaultName: firstString(row, ["vaultName", "vault_name"], 100),
|
|
20575
|
+
tableName: firstString(row, ["tableName", "table_name"], 100),
|
|
20573
20576
|
createdAt: firstString(row, ["createdAt", "created_at"], 100),
|
|
20574
20577
|
updatedAt: firstString(row, ["updatedAt", "updated_at"], 100)
|
|
20575
20578
|
});
|
|
@@ -20692,6 +20695,14 @@ async function callScheduleConnectionAction(identity, connectionId, input) {
|
|
|
20692
20695
|
const data = unwrapData(body);
|
|
20693
20696
|
return isRecord(data) ? data.result ?? data : data;
|
|
20694
20697
|
}
|
|
20698
|
+
async function callScheduleConnectionRead(identity, connectionId, tool, args) {
|
|
20699
|
+
const body = await controlRequest("/api/internal/nango/connections/actions/read", {
|
|
20700
|
+
method: "POST",
|
|
20701
|
+
body: JSON.stringify({ identity, connectionId, tool, args: args ?? {} })
|
|
20702
|
+
});
|
|
20703
|
+
const data = unwrapData(body);
|
|
20704
|
+
return isRecord(data) ? data.result ?? data : data;
|
|
20705
|
+
}
|
|
20695
20706
|
|
|
20696
20707
|
// src/api/server.ts
|
|
20697
20708
|
var secureCookies2 = process.env.NODE_ENV === "production" || process.env.VERCEL === "1";
|
|
@@ -21429,6 +21440,42 @@ app.post("/schedule-connections/actions/google-calendar/create-event", auth2, as
|
|
|
21429
21440
|
return scheduleConnectionError(c, err, "Unable to create the calendar event.");
|
|
21430
21441
|
}
|
|
21431
21442
|
});
|
|
21443
|
+
app.post("/schedule-connections/actions/zoom/create-meeting", auth2, async (c) => {
|
|
21444
|
+
const user = c.get("user");
|
|
21445
|
+
const body = await c.req.json().catch(() => ({}));
|
|
21446
|
+
const connectionId = providerConfigKeyFrom(body.connectionId);
|
|
21447
|
+
if (!connectionId || typeof body.topic !== "string" || typeof body.startDateTime !== "string") {
|
|
21448
|
+
return c.json({ ok: false, error: "connectionId, topic, and startDateTime are required." }, 400);
|
|
21449
|
+
}
|
|
21450
|
+
try {
|
|
21451
|
+
const result = await callScheduleConnectionAction(user.email, connectionId, {
|
|
21452
|
+
topic: body.topic,
|
|
21453
|
+
startDateTime: body.startDateTime,
|
|
21454
|
+
durationMinutes: typeof body.durationMinutes === "number" ? body.durationMinutes : 30,
|
|
21455
|
+
timezone: typeof body.timezone === "string" ? body.timezone : void 0,
|
|
21456
|
+
agenda: typeof body.agenda === "string" ? body.agenda : void 0
|
|
21457
|
+
});
|
|
21458
|
+
return c.json({ ok: true, result });
|
|
21459
|
+
} catch (err) {
|
|
21460
|
+
return scheduleConnectionError(c, err, "Unable to create the Zoom meeting.");
|
|
21461
|
+
}
|
|
21462
|
+
});
|
|
21463
|
+
app.post("/schedule-connections/actions/read", auth2, async (c) => {
|
|
21464
|
+
const user = c.get("user");
|
|
21465
|
+
const body = await c.req.json().catch(() => ({}));
|
|
21466
|
+
const connectionId = providerConfigKeyFrom(body.connectionId);
|
|
21467
|
+
const tool = providerConfigKeyFrom(body.tool);
|
|
21468
|
+
if (!connectionId || !tool) {
|
|
21469
|
+
return c.json({ ok: false, error: "connectionId and tool are required." }, 400);
|
|
21470
|
+
}
|
|
21471
|
+
const args = body.args && typeof body.args === "object" && !Array.isArray(body.args) ? body.args : {};
|
|
21472
|
+
try {
|
|
21473
|
+
const result = await callScheduleConnectionRead(user.email, connectionId, tool, args);
|
|
21474
|
+
return c.json({ ok: true, result });
|
|
21475
|
+
} catch (err) {
|
|
21476
|
+
return scheduleConnectionError(c, err, "Unable to read from this connection.");
|
|
21477
|
+
}
|
|
21478
|
+
});
|
|
21432
21479
|
app.post("/schedule-link", auth2, async (c) => {
|
|
21433
21480
|
try {
|
|
21434
21481
|
const user = c.get("user");
|
|
@@ -22615,4 +22662,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
22615
22662
|
export {
|
|
22616
22663
|
app
|
|
22617
22664
|
};
|
|
22618
|
-
//# sourceMappingURL=server-
|
|
22665
|
+
//# sourceMappingURL=server-KTA7CFX6.js.map
|