mcp-scraper 0.22.0 → 0.24.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/README.md +5 -4
- package/dist/bin/api-server.cjs +232 -12
- 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 +72 -8
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-CDLHUCMT.js +7 -0
- package/dist/chunk-CDLHUCMT.js.map +1 -0
- package/dist/{chunk-3SQTNNGK.js → chunk-SUPUHPJS.js} +73 -9
- package/dist/chunk-SUPUHPJS.js.map +1 -0
- package/dist/{server-K6C7W7ED.js → server-I5U3OUZZ.js} +152 -3
- package/dist/server-I5U3OUZZ.js.map +1 -0
- package/docs/mcp-tool-manifest.generated.json +239 -10
- package/package.json +1 -1
- package/dist/chunk-3SQTNNGK.js.map +0 -1
- package/dist/chunk-Q6GSQEE4.js +0 -7
- package/dist/chunk-Q6GSQEE4.js.map +0 -1
- package/dist/server-K6C7W7ED.js.map +0 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ Build the branded one-click bundle:
|
|
|
88
88
|
npm run build:mcpb
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.
|
|
91
|
+
The generated bundle is written to `build/mcpb/mcp-scraper-<version>.mcpb` and copied to `public/downloads/` for the hosted download. The current public bundle is `https://mcpscraper.dev/downloads/mcp-scraper.mcpb` (`0.24.0`, SHA-256 `02f3b2a8ae2b264551fce9a2068eecd9cca22feed5946f077c32e84776138d1a`). Install it by opening or dragging it into Claude Desktop. Claude displays the `MCP Scraper` install card, icon, and API-key configuration field from the bundle manifest.
|
|
92
92
|
|
|
93
93
|
The MCPB install exposes every tool — web-intelligence plus all `browser_*` tools — through the one `mcp-scraper` server.
|
|
94
94
|
|
|
@@ -178,7 +178,8 @@ env = { MCP_SCRAPER_API_KEY = "sk_live_your_key" }
|
|
|
178
178
|
|
|
179
179
|
- `list_service_connections` — list this caller's tenant-owned Nango OAuth and official remote MCP connections, including exact live reads, gated actions, permanently blocked administrative tools, credential transport, and schema-discovery metadata. Connections are never shared between customers.
|
|
180
180
|
- `describe_service_connection_tool` — fetch the sanitized live MCP Tool definition for one tool listed on one tenant-owned connection, including its current callability, input schema, optional output schema, safe annotations, and schema hash. Use this before constructing provider-native arguments; provider functions stay behind the generic bridges instead of becoming dozens of permanent top-level tools.
|
|
181
|
-
- `export_connected_service_data` — fetch a bounded Gmail, Google Calendar, Google Search Console, Zoom, Resend, or Meta time range in one MCP call. Search Console's `search_console_performance` dataset walks accessible properties and bounded Search Analytics pages with signed continuation.
|
|
181
|
+
- `export_connected_service_data` — fetch a fresh bounded Gmail, Google Calendar, Google Search Console, Zoom, Resend, or Meta time range in one MCP call. Search Console's `search_console_performance` dataset walks accessible properties and bounded live Search Analytics pages with signed continuation. Small exports return inline; larger exports become private JSONL retained for seven days with a 15-minute signed URL.
|
|
182
|
+
- `export_search_console_table_data` — filter up to 50,000 Search Console rows already persisted by a scheduled `connection_sync` and create a private renewable JSONL artifact without calling Google again. Get the typed `gsc_performance_*` table name from `list_service_connections`, inspect it with `table-describe`, and use the same filters with `table-query` for interactive analysis.
|
|
182
183
|
- `renew_connected_data_download` — issue a fresh 15-minute signed URL for an unexpired private export artifact without pulling the provider again.
|
|
183
184
|
- `read_service_connection` — run one small live read by exact allowlisted name across Nango OAuth or official remote MCP connections, including bounded Google Drive inventory, change, Doc, Sheet, and text-file tools. Do not loop it over a time range when `export_connected_service_data` supports that provider's collection.
|
|
184
185
|
- `import_service_connection_to_memory` — run one exact approved read and upsert the bounded, redacted result into an existing ordinary Memory vault at a stable server-generated path. The snapshot is embedded for semantic search and explicitly marked as untrusted provider data. This is not account-wide pagination or continuous sync.
|
|
@@ -191,7 +192,7 @@ GitHub uses the same provider-neutral read/action bridges: 27 live reads cover r
|
|
|
191
192
|
|
|
192
193
|
Google Drive Phase 1 exposes ten bounded reads plus the separately gated `create-drive-folder` and `copy-drive-file` actions through those same bridges and through per-run Mastra toolsets. It is interactive tool support, not the later deterministic bulk-export/`connection_sync` phase; large binary delivery and broader Drive mutations remain unreleased.
|
|
193
194
|
|
|
194
|
-
Google Search Console exposes
|
|
195
|
+
Google Search Console exposes eight bounded reads and eight gated property and sitemap mutations, including API-only batches for URL inspection, Search Analytics comparison, property management, and sitemap management. Batch calls return per-item receipts, run quota-consciously, and do not require database persistence; destructive batches default to dry-run previews and require explicit confirmation. Its optional deterministic `connection_sync` path backfills Search Analytics in bounded pages, persists raw records and checkpoints, mirrors normalized records into the selected Memory vault, and upserts performance rows into one indexed tenant-owned table per connection. The table supports exact/range/substring/in-list filtering by site, date, query, page, country, device, clicks, impressions, CTR, and position. Scheduled agent runs can instead receive only the exact Search Console tools granted to that schedule.
|
|
195
196
|
|
|
196
197
|
### Browser-agent tools
|
|
197
198
|
|
|
@@ -226,7 +227,7 @@ The `mcp-scraper` server (and the MCPB bundle, which runs it) exposes both secti
|
|
|
226
227
|
|
|
227
228
|
All MCP tools expose output schemas and return `structuredContent` with the IDs, URLs, CSV paths, transcripts, browser session handles, replay paths, artifacts, recipe fields, or blueprint fields needed by the next step. Browser Agent tools keep a JSON text block for older clients, but structured data is the primary contract. All tools carry MCP annotations; file-writing tools such as replay downloads and annotations state their filesystem side effects.
|
|
228
229
|
|
|
229
|
-
The canonical tool inventory is generated at `docs/mcp-tool-manifest.generated.json`. Both the `mcp-scraper` stdio server and the hosted endpoint at `https://mcpscraper.dev/mcp` expose the same
|
|
230
|
+
The canonical tool inventory is generated at `docs/mcp-tool-manifest.generated.json`. Both the `mcp-scraper` stdio server and the hosted endpoint at `https://mcpscraper.dev/mcp` expose the same 160 tools: 73 scraper, browser, workflow, billing, and connected-service tools plus 87 durable-memory tools. Release verification compares the exact local and remote tool-name sets, not only the count.
|
|
230
231
|
|
|
231
232
|
## Resources
|
|
232
233
|
|
package/dist/bin/api-server.cjs
CHANGED
|
@@ -29200,7 +29200,7 @@ var PACKAGE_VERSION;
|
|
|
29200
29200
|
var init_version = __esm({
|
|
29201
29201
|
"src/version.ts"() {
|
|
29202
29202
|
"use strict";
|
|
29203
|
-
PACKAGE_VERSION = "0.
|
|
29203
|
+
PACKAGE_VERSION = "0.24.0";
|
|
29204
29204
|
}
|
|
29205
29205
|
});
|
|
29206
29206
|
|
|
@@ -29303,6 +29303,15 @@ Multi-step orchestrations \u2014 prefer these over hand-chaining primitives when
|
|
|
29303
29303
|
when connected Graph media did not provide a playable source. It is not a bypass for URL/SSRF restrictions.
|
|
29304
29304
|
- Large results are saved to disk or an artifact and returned as a summary plus a path or artifactId;
|
|
29305
29305
|
read it back for full detail rather than expecting the whole payload inline.
|
|
29306
|
+
- For Google Search Console, use \`export_connected_service_data\` with
|
|
29307
|
+
\`dataset:"search_console_performance"\` when the person asks for a fresh JSONL download. When they
|
|
29308
|
+
ask to schedule ingestion or repeatedly filter historical rows, create a \`connection_sync\` schedule,
|
|
29309
|
+
bind the Search Console connection's required read tools, then call \`list_service_connections\` after
|
|
29310
|
+
the first successful run. Its \`tableName\` identifies a typed tenant-owned table containing
|
|
29311
|
+
site/date/query/page/country/device plus clicks, impressions, CTR, and position. Call
|
|
29312
|
+
\`table-describe\` before using exact filters, sorting, and pagination with \`table-query\`. When the
|
|
29313
|
+
person wants those persisted filtered rows as a file, call \`export_search_console_table_data\` with
|
|
29314
|
+
the same \`tableName\` and filters; it returns a private renewable JSONL artifact without calling Google.
|
|
29306
29315
|
|
|
29307
29316
|
## Memory
|
|
29308
29317
|
mcp-scraper also exposes persistent per-user memory tools (notes, facts, vaults,
|
|
@@ -29587,7 +29596,7 @@ var init_meta_ad_creative_media = __esm({
|
|
|
29587
29596
|
});
|
|
29588
29597
|
|
|
29589
29598
|
// src/mcp/mcp-tool-schemas.ts
|
|
29590
|
-
var import_zod34, HarvestPaaInputSchema, ExtractUrlInputSchema, DiffPageInputSchema, MapSiteUrlsInputSchema, ExtractSiteInputSchema, AuditSiteInputSchema, CheckSiteExportInputSchema, YoutubeHarvestInputSchema, YoutubeTranscribeInputSchema, FacebookPageIntelInputSchema, FacebookAdSearchInputSchema, RedditThreadInputSchema, VideoFrameAnalysisInputSchema, VideoFrameAnalysisStatusInputSchema, FacebookAdTranscribeInputSchema, FacebookVideoTranscribeInputSchema, GoogleAdsSearchInputSchema, GoogleAdsPageIntelInputSchema, GoogleAdsTranscribeInputSchema, InstagramProfileContentInputSchema, InstagramMediaDownloadInputSchema, MapsPlaceIntelInputSchema, TrustpilotReviewsInputSchema, G2ReviewsInputSchema, ReviewCardSchema, MapsSearchInputSchema, DirectoryWorkflowInputSchema, ArtifactPointerOutputSchema, RankTrackerModeSchema, RankTrackerBlueprintInputSchema, NullableString, MapsSearchAttemptOutput, MapsSearchOutputSchema, DirectoryMapsBusinessOutput, DirectoryWorkflowOutputSchema, RankTrackerToolPlanOutput, RankTrackerTableOutput, RankTrackerCronJobOutput, RankTrackerBlueprintOutputSchema, OrganicResultOutput, AiOverviewOutput, EntityIdsOutput, HarvestPaaOutputSchema, SearchSerpOutputSchema, ExtractUrlOutputSchema, DiffPageOutputSchema, ExtractSiteOutputSchema, AuditSiteOutputSchema, CheckSiteExportOutputSchema, MapsPlaceIntelOutputSchema, TrustpilotReviewsOutputSchema, G2ReviewsOutputSchema, CreditsInfoOutputSchema, MapSiteUrlsOutputSchema, YoutubeHarvestOutputSchema, FacebookAdSearchOutputSchema, VideoFrameAnalysisOutputSchema, VideoFrameAnalysisStatusOutputSchema, RedditThreadOutputSchema, FacebookPageIntelOutputSchema, GoogleAdsSearchOutputSchema, GoogleAdsPageIntelOutputSchema, TranscriptSignalOutput, FacebookVideoTranscribeOutputSchema, TranscriptChunkOutput, InstagramBrowserOutput, InstagramPaginationOutput, InstagramProfileContentOutputSchema, InstagramMediaTrackOutput, InstagramDownloadOutput, InstagramMediaDownloadOutputSchema, YoutubeTranscribeOutputSchema, FacebookAdTranscribeOutputSchema, GoogleAdsTranscribeOutputSchema, CaptureSerpSnapshotOutputSchema, CaptureSerpPageSnapshotsOutputSchema, CreditsInfoInputSchema, WorkflowIdSchema2, WorkflowListInputSchema, WorkflowSuggestInputSchema, WorkflowRunInputSchema, WorkflowStepInputSchema, WorkflowStatusInputSchema, WorkflowArtifactReadInputSchema, WorkflowRecipeOutput, WorkflowDefinitionOutput, WorkflowArtifactOutput, WorkflowListOutputSchema, WorkflowSuggestOutputSchema, WorkflowRunOutputSchema, WorkflowStepOutputSchema, WorkflowStatusOutputSchema, WorkflowArtifactReadOutputSchema, SearchSerpInputSchema, CaptureSerpSnapshotInputSchema, ScreenshotInputSchema, CaptureSerpPageSnapshotsInputSchema, ReportArtifactReadInputSchema, ReportArtifactReadOutputSchema, ListServiceConnectionsInputSchema, ListServiceConnectionsOutputSchema, ReadServiceConnectionInputSchema, ReadServiceConnectionOutputSchema, MetaAdCreativeMediaInputSchema, MetaAdCreativeMediaOutputSchema, ImportServiceConnectionToMemoryInputSchema, ImportServiceConnectionToMemoryOutputSchema, DescribeServiceConnectionToolInputSchema, DescribeServiceConnectionToolOutputSchema, ConnectedDataContinuationSchema, ExportConnectedServiceDataInputSchema, ConnectedDataArtifactSchema, ExportConnectedServiceDataOutputSchema, RenewConnectedDataExportDownloadInputSchema, RenewConnectedDataExportDownloadOutputSchema, CallServiceConnectionActionInputSchema, CallServiceConnectionActionOutputSchema, SetScheduledActionConnectionsInputSchema, SetScheduledActionConnectionsOutputSchema, SlackSendMessageInputSchema, SlackSendMessageOutputSchema, GmailSendMessageInputSchema, GmailSendMessageOutputSchema, GoogleCalendarCreateEventInputSchema, GoogleCalendarCreateEventOutputSchema, ZoomCreateMeetingInputSchema, ZoomCreateMeetingOutputSchema;
|
|
29599
|
+
var import_zod34, HarvestPaaInputSchema, ExtractUrlInputSchema, DiffPageInputSchema, MapSiteUrlsInputSchema, ExtractSiteInputSchema, AuditSiteInputSchema, CheckSiteExportInputSchema, YoutubeHarvestInputSchema, YoutubeTranscribeInputSchema, FacebookPageIntelInputSchema, FacebookAdSearchInputSchema, RedditThreadInputSchema, VideoFrameAnalysisInputSchema, VideoFrameAnalysisStatusInputSchema, FacebookAdTranscribeInputSchema, FacebookVideoTranscribeInputSchema, GoogleAdsSearchInputSchema, GoogleAdsPageIntelInputSchema, GoogleAdsTranscribeInputSchema, InstagramProfileContentInputSchema, InstagramMediaDownloadInputSchema, MapsPlaceIntelInputSchema, TrustpilotReviewsInputSchema, G2ReviewsInputSchema, ReviewCardSchema, MapsSearchInputSchema, DirectoryWorkflowInputSchema, ArtifactPointerOutputSchema, RankTrackerModeSchema, RankTrackerBlueprintInputSchema, NullableString, MapsSearchAttemptOutput, MapsSearchOutputSchema, DirectoryMapsBusinessOutput, DirectoryWorkflowOutputSchema, RankTrackerToolPlanOutput, RankTrackerTableOutput, RankTrackerCronJobOutput, RankTrackerBlueprintOutputSchema, OrganicResultOutput, AiOverviewOutput, EntityIdsOutput, HarvestPaaOutputSchema, SearchSerpOutputSchema, ExtractUrlOutputSchema, DiffPageOutputSchema, ExtractSiteOutputSchema, AuditSiteOutputSchema, CheckSiteExportOutputSchema, MapsPlaceIntelOutputSchema, TrustpilotReviewsOutputSchema, G2ReviewsOutputSchema, CreditsInfoOutputSchema, MapSiteUrlsOutputSchema, YoutubeHarvestOutputSchema, FacebookAdSearchOutputSchema, VideoFrameAnalysisOutputSchema, VideoFrameAnalysisStatusOutputSchema, RedditThreadOutputSchema, FacebookPageIntelOutputSchema, GoogleAdsSearchOutputSchema, GoogleAdsPageIntelOutputSchema, TranscriptSignalOutput, FacebookVideoTranscribeOutputSchema, TranscriptChunkOutput, InstagramBrowserOutput, InstagramPaginationOutput, InstagramProfileContentOutputSchema, InstagramMediaTrackOutput, InstagramDownloadOutput, InstagramMediaDownloadOutputSchema, YoutubeTranscribeOutputSchema, FacebookAdTranscribeOutputSchema, GoogleAdsTranscribeOutputSchema, CaptureSerpSnapshotOutputSchema, CaptureSerpPageSnapshotsOutputSchema, CreditsInfoInputSchema, WorkflowIdSchema2, WorkflowListInputSchema, WorkflowSuggestInputSchema, WorkflowRunInputSchema, WorkflowStepInputSchema, WorkflowStatusInputSchema, WorkflowArtifactReadInputSchema, WorkflowRecipeOutput, WorkflowDefinitionOutput, WorkflowArtifactOutput, WorkflowListOutputSchema, WorkflowSuggestOutputSchema, WorkflowRunOutputSchema, WorkflowStepOutputSchema, WorkflowStatusOutputSchema, WorkflowArtifactReadOutputSchema, SearchSerpInputSchema, CaptureSerpSnapshotInputSchema, ScreenshotInputSchema, CaptureSerpPageSnapshotsInputSchema, ReportArtifactReadInputSchema, ReportArtifactReadOutputSchema, ListServiceConnectionsInputSchema, ListServiceConnectionsOutputSchema, ReadServiceConnectionInputSchema, ReadServiceConnectionOutputSchema, MetaAdCreativeMediaInputSchema, MetaAdCreativeMediaOutputSchema, ImportServiceConnectionToMemoryInputSchema, ImportServiceConnectionToMemoryOutputSchema, DescribeServiceConnectionToolInputSchema, DescribeServiceConnectionToolOutputSchema, ConnectedDataContinuationSchema, ExportConnectedServiceDataInputSchema, ConnectedDataArtifactSchema, ExportConnectedServiceDataOutputSchema, SearchConsoleTableColumnSchema, SearchConsoleTableFilterSchema, ExportSearchConsoleTableDataInputSchema, ExportSearchConsoleTableDataOutputSchema, RenewConnectedDataExportDownloadInputSchema, RenewConnectedDataExportDownloadOutputSchema, CallServiceConnectionActionInputSchema, CallServiceConnectionActionOutputSchema, SetScheduledActionConnectionsInputSchema, SetScheduledActionConnectionsOutputSchema, SlackSendMessageInputSchema, SlackSendMessageOutputSchema, GmailSendMessageInputSchema, GmailSendMessageOutputSchema, GoogleCalendarCreateEventInputSchema, GoogleCalendarCreateEventOutputSchema, ZoomCreateMeetingInputSchema, ZoomCreateMeetingOutputSchema;
|
|
29591
29600
|
var init_mcp_tool_schemas = __esm({
|
|
29592
29601
|
"src/mcp/mcp-tool-schemas.ts"() {
|
|
29593
29602
|
"use strict";
|
|
@@ -30696,7 +30705,7 @@ var init_mcp_tool_schemas = __esm({
|
|
|
30696
30705
|
schemaDiscovery: import_zod34.z.enum(["connection_tools_list", "compatibility_describe"]).describe("How clients discover this connection's exact live provider schemas."),
|
|
30697
30706
|
toolRevision: import_zod34.z.string().nullable().describe("Opaque revision of the resolved live tool catalog, when available. It changes when provider tools or policy change."),
|
|
30698
30707
|
vaultName: import_zod34.z.string().nullable().describe("Memory vault this connection's digest writes into, if it has run at least once. Search it with memory-search."),
|
|
30699
|
-
tableName: import_zod34.z.string().nullable().describe("
|
|
30708
|
+
tableName: import_zod34.z.string().nullable().describe("Tenant-owned structured table populated by this connection, if available. For scheduled Google Search Console connection_sync runs, this is a typed performance table with site_url, date, query, page, country, device, clicks, impressions, ctr, and position. Call table-describe, then filter or sort it with table-query.")
|
|
30700
30709
|
}))
|
|
30701
30710
|
};
|
|
30702
30711
|
ReadServiceConnectionInputSchema = {
|
|
@@ -30869,8 +30878,52 @@ var init_mcp_tool_schemas = __esm({
|
|
|
30869
30878
|
untrustedContent: import_zod34.z.boolean().optional(),
|
|
30870
30879
|
error: NullableString
|
|
30871
30880
|
};
|
|
30881
|
+
SearchConsoleTableColumnSchema = import_zod34.z.enum([
|
|
30882
|
+
"id",
|
|
30883
|
+
"provider_record_id",
|
|
30884
|
+
"connection_id",
|
|
30885
|
+
"site_url",
|
|
30886
|
+
"permission_level",
|
|
30887
|
+
"date",
|
|
30888
|
+
"query",
|
|
30889
|
+
"page",
|
|
30890
|
+
"country",
|
|
30891
|
+
"device",
|
|
30892
|
+
"clicks",
|
|
30893
|
+
"impressions",
|
|
30894
|
+
"ctr",
|
|
30895
|
+
"position",
|
|
30896
|
+
"captured_at",
|
|
30897
|
+
"content_hash",
|
|
30898
|
+
"created_at",
|
|
30899
|
+
"updated_at"
|
|
30900
|
+
]);
|
|
30901
|
+
SearchConsoleTableFilterSchema = import_zod34.z.object({
|
|
30902
|
+
column: SearchConsoleTableColumnSchema.describe("Typed Search Console table column to filter."),
|
|
30903
|
+
op: import_zod34.z.enum(["eq", "neq", "gt", "gte", "lt", "lte", "like", "in"]).describe("Comparison operator. like performs a case-insensitive substring match; in requires an array value."),
|
|
30904
|
+
value: import_zod34.z.unknown().describe("Value to compare. For in, pass an array.")
|
|
30905
|
+
}).strict();
|
|
30906
|
+
ExportSearchConsoleTableDataInputSchema = {
|
|
30907
|
+
tableName: import_zod34.z.string().regex(/^gsc_performance_[a-f0-9]{12}$/).describe("Typed Search Console tableName returned by list_service_connections after a successful connection_sync run."),
|
|
30908
|
+
filters: import_zod34.z.array(SearchConsoleTableFilterSchema).max(20).default([]).describe("Optional filters to AND together before download. Use table-describe or the documented typed columns."),
|
|
30909
|
+
sort: import_zod34.z.object({
|
|
30910
|
+
column: SearchConsoleTableColumnSchema,
|
|
30911
|
+
direction: import_zod34.z.enum(["asc", "desc"]).default("asc")
|
|
30912
|
+
}).strict().optional().describe("Optional row ordering for the JSONL download."),
|
|
30913
|
+
maxRows: import_zod34.z.number().int().min(1).max(5e4).default(1e4).describe("Maximum matching persisted rows to place in this artifact. Use filters to bound large tables.")
|
|
30914
|
+
};
|
|
30915
|
+
ExportSearchConsoleTableDataOutputSchema = {
|
|
30916
|
+
ok: import_zod34.z.boolean(),
|
|
30917
|
+
tableName: import_zod34.z.string().optional(),
|
|
30918
|
+
rowsExported: import_zod34.z.number().int().min(0).optional(),
|
|
30919
|
+
matchedRows: import_zod34.z.number().int().min(0).optional(),
|
|
30920
|
+
complete: import_zod34.z.boolean().optional(),
|
|
30921
|
+
artifact: ConnectedDataArtifactSchema.optional(),
|
|
30922
|
+
warnings: import_zod34.z.array(import_zod34.z.string()).optional(),
|
|
30923
|
+
error: NullableString
|
|
30924
|
+
};
|
|
30872
30925
|
RenewConnectedDataExportDownloadInputSchema = {
|
|
30873
|
-
artifactId: import_zod34.z.string().min(1).describe("Private artifactId returned by export_connected_service_data.")
|
|
30926
|
+
artifactId: import_zod34.z.string().min(1).describe("Private artifactId returned by export_connected_service_data or export_search_console_table_data.")
|
|
30874
30927
|
};
|
|
30875
30928
|
RenewConnectedDataExportDownloadOutputSchema = {
|
|
30876
30929
|
ok: import_zod34.z.boolean(),
|
|
@@ -31643,7 +31696,7 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
31643
31696
|
}, async (input) => formatCreditsInfo(await executor.creditsInfo(input), input));
|
|
31644
31697
|
server.registerTool("list_service_connections", {
|
|
31645
31698
|
title: "List Connected Services",
|
|
31646
|
-
description: "List every third-party service connection this MCP Scraper account has authorized, including Resend, GitHub, Google Analytics, YouTube, Facebook Pages, LinkedIn, X, Meta Marketing, Slack, Gmail, Calendar, Google Drive, Zoom, Xero, and others. Returns the tenant-scoped connectionId, credential transport, exact live readTools and gated actionTools, permission-aware toolCapabilities with missing OAuth-grant or provider-app-feature blockers, permanently blocked administrative tools, and schema-discovery metadata. Get a connectionId and exact tool name here before calling describe_service_connection_tool, read_service_connection, or call_service_connection_action. Nango OAuth and official remote MCP connections use the same provider-neutral bridges; mutations still require the account action switch and an exact allowed action.
|
|
31699
|
+
description: "List every third-party service connection this MCP Scraper account has authorized, including Resend, GitHub, Google Analytics, Google Search Console, YouTube, Facebook Pages, LinkedIn, X, Meta Marketing, Slack, Gmail, Calendar, Google Drive, Zoom, Xero, and others. Returns the tenant-scoped connectionId, credential transport, exact live readTools and gated actionTools, permission-aware toolCapabilities with missing OAuth-grant or provider-app-feature blockers, permanently blocked administrative tools, and schema-discovery metadata. Get a connectionId and exact tool name here before calling describe_service_connection_tool, read_service_connection, or call_service_connection_action. Nango OAuth and official remote MCP connections use the same provider-neutral bridges; mutations still require the account action switch and an exact allowed action. A scheduled Search Console connection_sync creates a typed tenant-owned performance table; after it runs, use the returned tableName with table-describe and table-query instead of repeatedly calling Google for historical filtering.",
|
|
31647
31700
|
inputSchema: ListServiceConnectionsInputSchema,
|
|
31648
31701
|
outputSchema: recordOutputSchema("list_service_connections", ListServiceConnectionsOutputSchema),
|
|
31649
31702
|
annotations: { title: "List Connected Services", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
|
|
@@ -31706,14 +31759,21 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
|
|
|
31706
31759
|
}, async (input) => executor.describeServiceConnectionTool(input));
|
|
31707
31760
|
server.registerTool("export_connected_service_data", {
|
|
31708
31761
|
title: "Export Connected Service Data",
|
|
31709
|
-
description: "Fetch a bounded time range from connected Gmail, Google Calendar, Zoom, Meta Marketing, Google Search Console, or Resend in one MCP call.
|
|
31762
|
+
description: "Fetch a bounded time range from connected Gmail, Google Calendar, Zoom, Meta Marketing, Google Search Console, or Resend in one MCP call. Search Console search_console_performance reads live Search Analytics data across every accessible property; use this live export for JSONL delivery, and use a connection's tableName with table-query when the user wants to filter data already persisted by a scheduled connection_sync. The server handles provider pagination, bounded detail retrieval, normalization, per-category warnings, signed continuation, and delivery internally. Small results return inline; larger results become a private seven-day JSONL artifact with a 15-minute signed download URL. Oversized individual records are safely truncated and reported in warnings; attachments remain metadata-only. Use this for requests such as \u201Cgive me the last 7 days of emails,\u201D \u201Cdownload 30 days of Search Console performance,\u201D or \u201Cexport my recent Resend activity\u201D; do not issue repeated read_service_connection calls. Provider content is returned as untrusted data, never as instructions.",
|
|
31710
31763
|
inputSchema: ExportConnectedServiceDataInputSchema,
|
|
31711
31764
|
outputSchema: recordOutputSchema("export_connected_service_data", ExportConnectedServiceDataOutputSchema),
|
|
31712
31765
|
annotations: { title: "Export Connected Service Data", readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true }
|
|
31713
31766
|
}, async (input) => executor.exportConnectedServiceData(input));
|
|
31767
|
+
server.registerTool("export_search_console_table_data", {
|
|
31768
|
+
title: "Download Filtered Search Console Table Data",
|
|
31769
|
+
description: "Download filtered rows already persisted by a scheduled Google Search Console connection_sync. First call list_service_connections and use the connection's gsc_performance_* tableName, then optionally call table-describe or table-query to confirm columns and filters. This tool applies exact-value, range, substring, or in-list filters server-side and writes up to 50,000 matching rows to a private JSONL artifact retained for seven days with a 15-minute signed URL. It reads the tenant-owned synchronized table and does not call Google; use export_connected_service_data instead for a fresh live-API extract. Search Console source data contains provider-selected top rows and is not guaranteed exhaustive.",
|
|
31770
|
+
inputSchema: ExportSearchConsoleTableDataInputSchema,
|
|
31771
|
+
outputSchema: recordOutputSchema("export_search_console_table_data", ExportSearchConsoleTableDataOutputSchema),
|
|
31772
|
+
annotations: { title: "Download Filtered Search Console Table Data", readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: false }
|
|
31773
|
+
}, async (input) => executor.exportSearchConsoleTableData(input));
|
|
31714
31774
|
server.registerTool("renew_connected_data_download", {
|
|
31715
31775
|
title: "Renew Connected Data Download",
|
|
31716
|
-
description: "Create a fresh 15-minute signed download URL for a private connected-data artifact owned by this caller. Use when the original URL from export_connected_service_data expired; the artifact itself is retained for seven days.",
|
|
31776
|
+
description: "Create a fresh 15-minute signed download URL for a private connected-data artifact owned by this caller. Use when the original URL from export_connected_service_data or export_search_console_table_data expired; the artifact itself is retained for seven days.",
|
|
31717
31777
|
inputSchema: RenewConnectedDataExportDownloadInputSchema,
|
|
31718
31778
|
outputSchema: recordOutputSchema("renew_connected_data_download", RenewConnectedDataExportDownloadOutputSchema),
|
|
31719
31779
|
annotations: { title: "Renew Connected Data Download", readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: false }
|
|
@@ -32078,6 +32138,10 @@ var init_http_mcp_tool_executor = __esm({
|
|
|
32078
32138
|
const timeoutMs = this.httpTimeoutOverrideMs ?? 29e4;
|
|
32079
32139
|
return this.call("/schedule-connections/actions/export", input, timeoutMs);
|
|
32080
32140
|
}
|
|
32141
|
+
exportSearchConsoleTableData(input) {
|
|
32142
|
+
const timeoutMs = this.httpTimeoutOverrideMs ?? 29e4;
|
|
32143
|
+
return this.call("/schedule-connections/actions/export-search-console-table", input, timeoutMs);
|
|
32144
|
+
}
|
|
32081
32145
|
renewConnectedDataDownload(input) {
|
|
32082
32146
|
return this.call("/schedule-connections/actions/export-download", input);
|
|
32083
32147
|
}
|
|
@@ -35162,12 +35226,12 @@ var init_memory_tool_schemas = __esm({
|
|
|
35162
35226
|
CreateScheduledActionSchema = {
|
|
35163
35227
|
id: "create-scheduled-action",
|
|
35164
35228
|
upstreamName: "createScheduledActionTool",
|
|
35165
|
-
description: "Create a Credit-metered scheduled action for an active MCP Scraper Starter plan or higher, in agent mode (default) or connection_sync mode. Each execution has a 75-Credit base charge; agent model usage is added at 1.5 times OpenRouter's actual reported cost. Agent mode follows the description and writes a result into the target vault. connection_sync deterministically runs approved read-only tools on bound service connections and ingests their data. Cadence 'once' runs a single time then completes permanently. Requires write access to the target vault.",
|
|
35229
|
+
description: "Create a Credit-metered scheduled action for an active MCP Scraper Starter plan or higher, in agent mode (default) or connection_sync mode. Each execution has a 75-Credit base charge; agent model usage is added at 1.5 times OpenRouter's actual reported cost. Agent mode follows the description and writes a result into the target vault. connection_sync deterministically runs approved read-only tools on bound service connections and ingests their data. Google Search Console syncs also upsert a typed tenant-owned performance table for exact filtering with table-query; discover its tableName by calling list_service_connections after the first successful run. Cadence 'once' runs a single time then completes permanently. Requires write access to the target vault.",
|
|
35166
35230
|
input: {
|
|
35167
35231
|
description: import_zod36.z.string().min(1).describe("Free-text description of what this action should do each time it runs."),
|
|
35168
35232
|
vault: import_zod36.z.string().min(1).describe("The vault this action writes its results into. You must already have write access to it."),
|
|
35169
35233
|
cadence: import_zod36.z.enum(["once", "daily", "weekly", "monthly"]).describe('How often this action runs. "once" fires a single time and then completes.'),
|
|
35170
|
-
executionMode: import_zod36.z.enum(["agent", "connection_sync"]).default("agent").describe(`How to execute each run. "agent" (default) lets an agent follow the description. "connection_sync" deterministically ingests data from the schedule's bound connections using only their approved read-only tools; bind at least one connection before it runs.`),
|
|
35234
|
+
executionMode: import_zod36.z.enum(["agent", "connection_sync"]).default("agent").describe(`How to execute each run. "agent" (default) lets an agent follow the description. "connection_sync" deterministically ingests data from the schedule's bound connections using only their approved read-only tools; bind at least one connection before it runs. Search Console connection_sync also maintains a typed table exposed as the connection tableName.`),
|
|
35171
35235
|
timeOfDay: import_zod36.z.string().regex(/^([01]\d|2[0-3]):([0-5]\d)$/).optional().describe("24-hour HH:MM clock time to run at, in the given timezone. Optional \u2014 omit to run at any time during the period (matches prior default behavior)."),
|
|
35172
35236
|
timezone: import_zod36.z.string().optional().describe('IANA timezone name, e.g. "America/Denver". Only meaningful together with timeOfDay. Defaults to UTC.'),
|
|
35173
35237
|
deployDate: import_zod36.z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Calendar date (YYYY-MM-DD, in the given timezone) this action should first become eligible to run \u2014 its deployment/start date. For recurring cadences, the first occurrence lands on or after this date; every later occurrence still follows the normal cadence. For cadence "once", this (combined with timeOfDay if given) is exactly what day it fires. Omit to start immediately.')
|
|
@@ -41700,6 +41764,136 @@ var init_connected_data_export = __esm({
|
|
|
41700
41764
|
}
|
|
41701
41765
|
});
|
|
41702
41766
|
|
|
41767
|
+
// src/api/search-console-table-export.ts
|
|
41768
|
+
function validateSearchConsoleTableExportRequest(args) {
|
|
41769
|
+
const tableName = typeof args.tableName === "string" ? args.tableName.trim() : "";
|
|
41770
|
+
if (!/^gsc_performance_[a-f0-9]{12}$/.test(tableName)) {
|
|
41771
|
+
throw new SearchConsoleTableExportValidationError("tableName must be a Search Console performance table returned by list_service_connections.");
|
|
41772
|
+
}
|
|
41773
|
+
const allowedColumns = new Set(SEARCH_CONSOLE_TABLE_COLUMNS);
|
|
41774
|
+
const allowedOps = /* @__PURE__ */ new Set(["eq", "neq", "gt", "gte", "lt", "lte", "like", "in"]);
|
|
41775
|
+
const rawFilters = args.filters === void 0 ? [] : args.filters;
|
|
41776
|
+
if (!Array.isArray(rawFilters) || rawFilters.length > 20) {
|
|
41777
|
+
throw new SearchConsoleTableExportValidationError("filters must be an array with at most 20 entries.");
|
|
41778
|
+
}
|
|
41779
|
+
const filters = rawFilters.map((value) => {
|
|
41780
|
+
const filter = value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
41781
|
+
if (!filter || typeof filter.column !== "string" || !allowedColumns.has(filter.column) || typeof filter.op !== "string" || !allowedOps.has(filter.op)) {
|
|
41782
|
+
throw new SearchConsoleTableExportValidationError("Each filter must use a documented Search Console table column and supported operator.");
|
|
41783
|
+
}
|
|
41784
|
+
if (filter.op === "in" && !Array.isArray(filter.value)) {
|
|
41785
|
+
throw new SearchConsoleTableExportValidationError("The in filter operator requires an array value.");
|
|
41786
|
+
}
|
|
41787
|
+
return {
|
|
41788
|
+
column: filter.column,
|
|
41789
|
+
op: filter.op,
|
|
41790
|
+
value: filter.value
|
|
41791
|
+
};
|
|
41792
|
+
});
|
|
41793
|
+
let sort;
|
|
41794
|
+
if (args.sort !== void 0) {
|
|
41795
|
+
const raw = args.sort && typeof args.sort === "object" && !Array.isArray(args.sort) ? args.sort : null;
|
|
41796
|
+
if (!raw || typeof raw.column !== "string" || !allowedColumns.has(raw.column) || raw.direction !== void 0 && raw.direction !== "asc" && raw.direction !== "desc") {
|
|
41797
|
+
throw new SearchConsoleTableExportValidationError("sort must use a documented Search Console table column and asc or desc direction.");
|
|
41798
|
+
}
|
|
41799
|
+
sort = {
|
|
41800
|
+
column: raw.column,
|
|
41801
|
+
...raw.direction ? { direction: raw.direction } : {}
|
|
41802
|
+
};
|
|
41803
|
+
}
|
|
41804
|
+
const maxRows = args.maxRows === void 0 ? 1e4 : Number(args.maxRows);
|
|
41805
|
+
if (!Number.isInteger(maxRows) || maxRows < 1 || maxRows > SEARCH_CONSOLE_TABLE_EXPORT_MAX_ROWS) {
|
|
41806
|
+
throw new SearchConsoleTableExportValidationError(`maxRows must be an integer from 1 to ${SEARCH_CONSOLE_TABLE_EXPORT_MAX_ROWS}.`);
|
|
41807
|
+
}
|
|
41808
|
+
return { tableName, filters, ...sort ? { sort } : {}, maxRows };
|
|
41809
|
+
}
|
|
41810
|
+
async function exportSearchConsoleTableData(args) {
|
|
41811
|
+
const lines = [];
|
|
41812
|
+
let bytes = 0;
|
|
41813
|
+
let offset = 0;
|
|
41814
|
+
let matchedRows = 0;
|
|
41815
|
+
let stoppedForBytes = false;
|
|
41816
|
+
while (offset < args.maxRows) {
|
|
41817
|
+
const limit = Math.min(SEARCH_CONSOLE_TABLE_EXPORT_PAGE_SIZE, args.maxRows - offset);
|
|
41818
|
+
const page = await args.queryPage({
|
|
41819
|
+
tableName: args.tableName,
|
|
41820
|
+
filters: args.filters,
|
|
41821
|
+
...args.sort ? { sort: args.sort } : {},
|
|
41822
|
+
limit,
|
|
41823
|
+
offset
|
|
41824
|
+
});
|
|
41825
|
+
if (!page.ok) throw new Error(page.error || "Search Console table query failed.");
|
|
41826
|
+
const rows = Array.isArray(page.rows) ? page.rows : [];
|
|
41827
|
+
matchedRows = Number.isSafeInteger(page.count) && Number(page.count) >= 0 ? Number(page.count) : rows.length;
|
|
41828
|
+
for (const row of rows) {
|
|
41829
|
+
const line = `${JSON.stringify(row)}
|
|
41830
|
+
`;
|
|
41831
|
+
const lineBytes = Buffer.byteLength(line);
|
|
41832
|
+
if (bytes + lineBytes > SEARCH_CONSOLE_TABLE_EXPORT_MAX_BYTES) {
|
|
41833
|
+
stoppedForBytes = true;
|
|
41834
|
+
break;
|
|
41835
|
+
}
|
|
41836
|
+
lines.push(line);
|
|
41837
|
+
bytes += lineBytes;
|
|
41838
|
+
}
|
|
41839
|
+
offset += rows.length;
|
|
41840
|
+
if (stoppedForBytes || rows.length < limit || offset >= matchedRows) break;
|
|
41841
|
+
}
|
|
41842
|
+
const exportId = (0, import_node_crypto21.randomUUID)();
|
|
41843
|
+
const artifact = await args.writeArtifact({
|
|
41844
|
+
ownerId: args.ownerId,
|
|
41845
|
+
exportId,
|
|
41846
|
+
filename: `search-console-filtered-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.jsonl`,
|
|
41847
|
+
content: lines.join("")
|
|
41848
|
+
});
|
|
41849
|
+
const complete = lines.length >= matchedRows;
|
|
41850
|
+
const warnings = [];
|
|
41851
|
+
if (!complete && lines.length >= args.maxRows) warnings.push("max_rows_reached");
|
|
41852
|
+
if (stoppedForBytes) warnings.push("artifact_size_limit_reached");
|
|
41853
|
+
warnings.push("search_console_source_returns_top_rows_not_guaranteed_exhaustive");
|
|
41854
|
+
return {
|
|
41855
|
+
ok: true,
|
|
41856
|
+
tableName: args.tableName,
|
|
41857
|
+
rowsExported: lines.length,
|
|
41858
|
+
matchedRows,
|
|
41859
|
+
complete,
|
|
41860
|
+
artifact,
|
|
41861
|
+
warnings
|
|
41862
|
+
};
|
|
41863
|
+
}
|
|
41864
|
+
var import_node_crypto21, SEARCH_CONSOLE_TABLE_EXPORT_MAX_ROWS, SEARCH_CONSOLE_TABLE_EXPORT_PAGE_SIZE, SEARCH_CONSOLE_TABLE_EXPORT_MAX_BYTES, SEARCH_CONSOLE_TABLE_COLUMNS, SearchConsoleTableExportValidationError;
|
|
41865
|
+
var init_search_console_table_export = __esm({
|
|
41866
|
+
"src/api/search-console-table-export.ts"() {
|
|
41867
|
+
"use strict";
|
|
41868
|
+
import_node_crypto21 = require("crypto");
|
|
41869
|
+
SEARCH_CONSOLE_TABLE_EXPORT_MAX_ROWS = 5e4;
|
|
41870
|
+
SEARCH_CONSOLE_TABLE_EXPORT_PAGE_SIZE = 2e3;
|
|
41871
|
+
SEARCH_CONSOLE_TABLE_EXPORT_MAX_BYTES = 50 * 1024 * 1024;
|
|
41872
|
+
SEARCH_CONSOLE_TABLE_COLUMNS = [
|
|
41873
|
+
"id",
|
|
41874
|
+
"provider_record_id",
|
|
41875
|
+
"connection_id",
|
|
41876
|
+
"site_url",
|
|
41877
|
+
"permission_level",
|
|
41878
|
+
"date",
|
|
41879
|
+
"query",
|
|
41880
|
+
"page",
|
|
41881
|
+
"country",
|
|
41882
|
+
"device",
|
|
41883
|
+
"clicks",
|
|
41884
|
+
"impressions",
|
|
41885
|
+
"ctr",
|
|
41886
|
+
"position",
|
|
41887
|
+
"captured_at",
|
|
41888
|
+
"content_hash",
|
|
41889
|
+
"created_at",
|
|
41890
|
+
"updated_at"
|
|
41891
|
+
];
|
|
41892
|
+
SearchConsoleTableExportValidationError = class extends Error {
|
|
41893
|
+
};
|
|
41894
|
+
}
|
|
41895
|
+
});
|
|
41896
|
+
|
|
41703
41897
|
// src/api/credit-operations.ts
|
|
41704
41898
|
async function applyMonthlyFreeRefresh(user) {
|
|
41705
41899
|
return user;
|
|
@@ -42467,7 +42661,7 @@ function canonicalJson2(value) {
|
|
|
42467
42661
|
return JSON.stringify(value);
|
|
42468
42662
|
}
|
|
42469
42663
|
function projectedToolSchemaHash(tool) {
|
|
42470
|
-
return (0,
|
|
42664
|
+
return (0, import_node_crypto22.createHash)("sha256").update(canonicalJson2(tool)).digest("hex");
|
|
42471
42665
|
}
|
|
42472
42666
|
async function describeNangoTool(identity, connectionId, tool, fresh) {
|
|
42473
42667
|
const body = await controlRequest("/api/internal/nango/connections/actions/describe", {
|
|
@@ -42597,11 +42791,11 @@ async function callScheduleConnectionExportPage(identity, input) {
|
|
|
42597
42791
|
untrustedContent: true
|
|
42598
42792
|
};
|
|
42599
42793
|
}
|
|
42600
|
-
var
|
|
42794
|
+
var import_node_crypto22, DEFAULT_NANGO_CONTROL_URL, DISABLED_NANGO_TOOLS, CONNECTION_SYNC_REQUIRED_TOOLS, CONNECTION_SYNC_OPTIONAL_TOOLS, NangoControlError, ScheduleConnectionValidationError, SAFE_CONTROL_ERROR_CODES, CONTROL_ERROR_CODE_ALIASES;
|
|
42601
42795
|
var init_nango_control = __esm({
|
|
42602
42796
|
"src/api/nango-control.ts"() {
|
|
42603
42797
|
"use strict";
|
|
42604
|
-
|
|
42798
|
+
import_node_crypto22 = require("crypto");
|
|
42605
42799
|
init_connected_data_export();
|
|
42606
42800
|
DEFAULT_NANGO_CONTROL_URL = "https://mcp-scraper-scheduler.vercel.app";
|
|
42607
42801
|
DISABLED_NANGO_TOOLS = {
|
|
@@ -43483,6 +43677,7 @@ var init_server = __esm({
|
|
|
43483
43677
|
init_scrape_blob_cleanup();
|
|
43484
43678
|
init_connected_data_artifacts();
|
|
43485
43679
|
init_connected_data_export();
|
|
43680
|
+
init_search_console_table_export();
|
|
43486
43681
|
init_schemas3();
|
|
43487
43682
|
init_credit_operations();
|
|
43488
43683
|
init_harvest();
|
|
@@ -44340,6 +44535,31 @@ var init_server = __esm({
|
|
|
44340
44535
|
return scheduleConnectionError(c, err, "Unable to export this connected service.");
|
|
44341
44536
|
}
|
|
44342
44537
|
});
|
|
44538
|
+
app.post("/schedule-connections/actions/export-search-console-table", auth2, requireIntegrationsTier, async (c) => {
|
|
44539
|
+
const user = c.get("user");
|
|
44540
|
+
const body = await c.req.json().catch(() => ({}));
|
|
44541
|
+
try {
|
|
44542
|
+
const request = validateSearchConsoleTableExportRequest(body);
|
|
44543
|
+
const { key, error } = await getOrCreateUserMemoryKey(user);
|
|
44544
|
+
if (!key) return c.json({ ok: false, error: error ?? "Memory table access is unavailable." }, 503);
|
|
44545
|
+
const result = await exportSearchConsoleTableData({
|
|
44546
|
+
ownerId: sha256Hex(user.api_key).slice(0, 24),
|
|
44547
|
+
...request,
|
|
44548
|
+
queryPage: (input) => memoryCall("queryTableTool", input, key),
|
|
44549
|
+
writeArtifact: createConnectedDataArtifact
|
|
44550
|
+
});
|
|
44551
|
+
return c.json(result);
|
|
44552
|
+
} catch (err) {
|
|
44553
|
+
if (err instanceof SearchConsoleTableExportValidationError) {
|
|
44554
|
+
return c.json({ ok: false, error: err.message }, 400);
|
|
44555
|
+
}
|
|
44556
|
+
if (err instanceof Error && err.message === "connected_data_private_blob_not_configured") {
|
|
44557
|
+
return c.json({ ok: false, error: "Private connected-data artifact storage is not configured." }, 503);
|
|
44558
|
+
}
|
|
44559
|
+
console.error("[search-console-table-export]", err instanceof Error ? err.name : "unknown_error");
|
|
44560
|
+
return c.json({ ok: false, error: "Unable to export the persisted Search Console table." }, 502);
|
|
44561
|
+
}
|
|
44562
|
+
});
|
|
44343
44563
|
app.post("/schedule-connections/actions/export-download", auth2, requireIntegrationsTier, async (c) => {
|
|
44344
44564
|
const user = c.get("user");
|
|
44345
44565
|
const body = await c.req.json().catch(() => ({}));
|