mcpscraper-sdk 0.31.1 → 0.33.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 CHANGED
@@ -45,7 +45,7 @@ Current Google search pricing is 60 Credits per SERP search and 400 Credits plus
45
45
 
46
46
  ## API surface
47
47
 
48
- `client.tools` is the generated, typed 315-tool MCP surface. It includes 214 MCP Scraper tools and all 101 mirrored Memory tools from `contracts/mcp.tools.json`. Those output types come from the versioned complete server build manifest; the compact live MCP `tools/list` response intentionally omits output schemas and is not a code-generation source.
48
+ `client.tools` is the generated, typed 331-tool MCP surface. It includes 230 MCP Scraper tools and all 101 mirrored Memory tools from `contracts/mcp.tools.json`. Those output types come from the versioned complete server build manifest; the compact live MCP `tools/list` response intentionally omits output schemas and is not a code-generation source.
49
49
 
50
50
  For multimodal results such as `meta_ad_creative_media`, call `client.tools.callToolResult(...)` to preserve native MCP image/audio/resource blocks. `callTool(...)` remains backward-compatible and returns the parsed structured or text value.
51
51
 
@@ -89,7 +89,7 @@ Integrations are included with an active Starter plan or higher: OAuth connect/r
89
89
 
90
90
  Core operations are flat on the client: `searchSerp`, `harvestPaa`, `extractUrl`, `mapSiteUrls`, `extractSite`, `auditSite`, `getExtractSiteStatus`, `readExtractSiteExport`, `readExtractSiteImage`, `listJobs`, `getJob`, `getHistory`, `getLedger`.
91
91
 
92
- Everything else is namespaced by product area, matching the OpenAPI spec's tags: `client.youtube`, `client.screenshot`, `client.facebook`, `client.googleAds`, `client.instagram`, `client.reddit`, `client.video`, `client.maps`, `client.directory`, `client.serpIntelligence`, `client.workflows`.
92
+ Everything else is namespaced by product area, matching the OpenAPI spec's tags: `client.youtube`, `client.screenshot`, `client.facebook`, `client.googleAds`, `client.instagram`, `client.reddit`, `client.video`, `client.maps`, `client.directory`, `client.serpIntelligence`, `client.workflows`, `client.gmail`. The REST Gmail namespace preserves opaque path handles and requires explicit idempotency keys for mutations; the generated `client.tools.connections.gmail*` methods expose the exact MCP input/output contracts.
93
93
 
94
94
  ### Retry-safe SERP Intelligence captures
95
95
 
@@ -137,4 +137,4 @@ npm run generate
137
137
 
138
138
  ## See also
139
139
 
140
- [Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-memory-sdk`](../memory) (Node, full 114-tool direct-memory surface) · [`mcpscraper-sdk` on PyPI](https://pypi.org/project/mcpscraper-sdk/) · [`mcpscraper-cli`](../cli)
140
+ [Repo README](../../README.md) (including complete Gmail and reversible bulk examples) · [`mcpscraper-memory-sdk`](../memory) (Node, full 116-tool direct-memory surface) · [`mcpscraper-sdk` on PyPI](https://pypi.org/project/mcpscraper-sdk/) · [`mcpscraper-cli`](../cli)
package/dist/index.cjs CHANGED
@@ -407,11 +407,48 @@ var WorkflowsNamespace = class {
407
407
  return this.r.call("POST", `/workflows/schedules/${encodeURIComponent(id)}/run`);
408
408
  }
409
409
  };
410
+ var GmailNamespace = class {
411
+ constructor(r) {
412
+ this.r = r;
413
+ }
414
+ r;
415
+ searchMessages(params) {
416
+ return this.r.call("POST", "/api/gmail/messages/search", params);
417
+ }
418
+ getMessage(messageId, params) {
419
+ return this.r.call("POST", `/api/gmail/messages/${encodeURIComponent(messageId)}`, params);
420
+ }
421
+ getAttachment(params) {
422
+ return this.r.call("POST", "/api/gmail/attachments/get", params);
423
+ }
424
+ prepareSelection(params) {
425
+ return this.r.call("POST", "/api/gmail/selections", params);
426
+ }
427
+ exportSelection(selectionId, params) {
428
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/export`, params);
429
+ }
430
+ bulkManage(selectionId, params, options) {
431
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/manage`, params, { "Idempotency-Key": options.idempotencyKey });
432
+ }
433
+ bulkDelete(selectionId, params, options) {
434
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/delete`, params, { "Idempotency-Key": options.idempotencyKey });
435
+ }
436
+ prepareMemoryImport(params) {
437
+ return this.r.call("POST", "/api/gmail/imports/prepare", params);
438
+ }
439
+ importToMemory(importPlanId, options) {
440
+ return this.r.call("POST", `/api/gmail/imports/${encodeURIComponent(importPlanId)}/start`, void 0, { "Idempotency-Key": options.idempotencyKey });
441
+ }
442
+ importStatus(ingestId) {
443
+ return this.r.call("GET", `/api/gmail/imports/${encodeURIComponent(ingestId)}`);
444
+ }
445
+ };
410
446
  var MemoryTools = class {
411
447
  access;
412
448
  capture;
413
449
  channels;
414
450
  facts;
451
+ files;
415
452
  graph;
416
453
  library;
417
454
  memory;
@@ -428,6 +465,7 @@ var MemoryTools = class {
428
465
  this.capture = new import_mcpscraper_memory_sdk.CaptureNamespace(callTool);
429
466
  this.channels = new import_mcpscraper_memory_sdk.ChannelsNamespace(callTool);
430
467
  this.facts = new import_mcpscraper_memory_sdk.FactsNamespace(callTool);
468
+ this.files = new import_mcpscraper_memory_sdk.FilesNamespace(callTool);
431
469
  this.graph = new import_mcpscraper_memory_sdk.GraphNamespace(callTool);
432
470
  this.library = new import_mcpscraper_memory_sdk.LibraryNamespace(callTool);
433
471
  this.memory = new import_mcpscraper_memory_sdk.MemoryNamespace(callTool);
@@ -454,6 +492,7 @@ var ScraperClient = class {
454
492
  directory;
455
493
  serpIntelligence;
456
494
  workflows;
495
+ gmail;
457
496
  memoryTools;
458
497
  tools;
459
498
  constructor(options) {
@@ -471,6 +510,7 @@ var ScraperClient = class {
471
510
  this.directory = new DirectoryNamespace(this.r);
472
511
  this.serpIntelligence = new SerpIntelligenceNamespace(this.r);
473
512
  this.workflows = new WorkflowsNamespace(this.r);
513
+ this.gmail = new GmailNamespace(this.r);
474
514
  this.memoryTools = new MemoryTools(this.callMemoryTool.bind(this));
475
515
  this.tools = new import_mcpscraper_memory_sdk.McpToolsClient({
476
516
  apiKey: options.apiKey,