mcp-scraper 0.10.0 → 0.11.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.
@@ -34,7 +34,7 @@ import {
34
34
  registerSerpIntelligenceCaptureTools,
35
35
  sanitizeAttempts,
36
36
  sanitizeHarvestResult
37
- } from "./chunk-IRYBBEZJ.js";
37
+ } from "./chunk-QJBWER2Q.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-B7BAJU7K.js";
73
+ import "./chunk-P2WZLJKQ.js";
74
74
  import {
75
75
  completeExtractJob,
76
76
  countSuccessfulPages,
@@ -20534,6 +20534,14 @@ async function getNangoCatalog() {
20534
20534
  const safeDefaultAllowedTools = cleanTools(
20535
20535
  row.safeDefaultAllowedTools ?? row.safe_default_allowed_tools ?? row.defaultAllowedTools ?? row.default_allowed_tools ?? row.allowedTools ?? row.allowed_tools
20536
20536
  ).filter((tool) => !disabledTools?.has(tool));
20537
+ const platformSetupStatus = firstString(row, [
20538
+ "platformSetupStatus",
20539
+ "platform_setup_status",
20540
+ "setupStatus",
20541
+ "setup_status"
20542
+ ], 100);
20543
+ const appReviewStatus = row.appReviewLimited === true || row.app_review_limited === true ? "limited" : firstString(row, ["appReviewStatus", "app_review_status", "reviewStatus", "review_status"], 100);
20544
+ const appReviewNote = firstString(row, ["appReviewNote", "app_review_note", "reviewNote", "review_note"], 500);
20537
20545
  result.push({
20538
20546
  providerConfigKey,
20539
20547
  provider,
@@ -20543,7 +20551,10 @@ async function getNangoCatalog() {
20543
20551
  docsUrl,
20544
20552
  authMode,
20545
20553
  categories,
20546
- safeDefaultAllowedTools
20554
+ safeDefaultAllowedTools,
20555
+ platformSetupStatus,
20556
+ appReviewStatus,
20557
+ appReviewNote
20547
20558
  });
20548
20559
  }
20549
20560
  return result;
@@ -20571,6 +20582,7 @@ async function getNangoConnections(identity) {
20571
20582
  reconnectRequired,
20572
20583
  actionsEnabled: row.actionsEnabled === true || row.actions_enabled === true,
20573
20584
  readTools: cleanTools(row.readTools ?? row.read_tools),
20585
+ actionTools: cleanTools(row.actionTools ?? row.action_tools ?? row.writeTools ?? row.write_tools),
20574
20586
  vaultName: firstString(row, ["vaultName", "vault_name"], 100),
20575
20587
  tableName: firstString(row, ["tableName", "table_name"], 100),
20576
20588
  createdAt: firstString(row, ["createdAt", "created_at"], 100),
@@ -20687,10 +20699,10 @@ async function setScheduleConnectionActionsEnabled(identity, connectionId, enabl
20687
20699
  if (!isRecord(data) || !isRecord(data.connection)) return enabled;
20688
20700
  return data.connection.actionsEnabled === true;
20689
20701
  }
20690
- async function callScheduleConnectionAction(identity, connectionId, input) {
20702
+ async function callScheduleConnectionAction(identity, connectionId, input, tool) {
20691
20703
  const body = await controlRequest("/api/internal/nango/connections/actions/call", {
20692
20704
  method: "POST",
20693
- body: JSON.stringify({ identity, connectionId, input })
20705
+ body: JSON.stringify({ identity, connectionId, ...tool ? { tool } : {}, input })
20694
20706
  });
20695
20707
  const data = unwrapData(body);
20696
20708
  return isRecord(data) ? data.result ?? data : data;
@@ -21476,6 +21488,26 @@ app.post("/schedule-connections/actions/read", auth2, async (c) => {
21476
21488
  return scheduleConnectionError(c, err, "Unable to read from this connection.");
21477
21489
  }
21478
21490
  });
21491
+ app.post("/schedule-connections/actions/call", auth2, async (c) => {
21492
+ const user = c.get("user");
21493
+ const body = await c.req.json().catch(() => ({}));
21494
+ const connectionId = providerConfigKeyFrom(body.connectionId);
21495
+ const tool = providerConfigKeyFrom(body.tool);
21496
+ if (!connectionId || !tool || !body.args || typeof body.args !== "object" || Array.isArray(body.args)) {
21497
+ return c.json({ ok: false, error: "connectionId, tool, and an args object are required." }, 400);
21498
+ }
21499
+ try {
21500
+ const result = await callScheduleConnectionAction(
21501
+ user.email,
21502
+ connectionId,
21503
+ body.args,
21504
+ tool
21505
+ );
21506
+ return c.json({ ok: true, result });
21507
+ } catch (err) {
21508
+ return scheduleConnectionError(c, err, "Unable to run this connection action.");
21509
+ }
21510
+ });
21479
21511
  app.post("/schedule-link", auth2, async (c) => {
21480
21512
  try {
21481
21513
  const user = c.get("user");
@@ -22662,4 +22694,4 @@ app.get("/blog/:slug/", (c) => {
22662
22694
  export {
22663
22695
  app
22664
22696
  };
22665
- //# sourceMappingURL=server-KTA7CFX6.js.map
22697
+ //# sourceMappingURL=server-LRWHUBUN.js.map