mcpscraper-sdk 0.10.0 → 0.12.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 +3 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -40,7 +40,9 @@ Every non-2xx response throws a `ScraperApiError` with `status`, `code`, and the
|
|
|
40
40
|
|
|
41
41
|
## API surface
|
|
42
42
|
|
|
43
|
-
`client.tools` is the generated, typed
|
|
43
|
+
`client.tools` is the generated, typed 158-tool MCP surface. It includes 73 MCP Scraper tools and all 85 mirrored memory tools from `contracts/mcp.tools.json`.
|
|
44
|
+
|
|
45
|
+
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.
|
|
44
46
|
|
|
45
47
|
```ts
|
|
46
48
|
await client.tools.search.searchSerp({ query: 'roof repair Denver' })
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessNamespace, CaptureNamespace, ChannelsNamespace, FactsNamespace, GraphNamespace, LibraryNamespace, MemoryNamespace, RecallNamespace, ScheduleNamespace, StorageNamespace, TablesNamespace, TagsNamespace, VaultsNamespace, VideoNamespace as VideoNamespace$1, WebhooksNamespace, CallToolFn, McpToolsClient } from 'mcpscraper-memory-sdk';
|
|
2
|
-
export { GeneratedMcpToolsClient, MCP_TOOL_BINDINGS, MCP_TOOL_COUNT, McpToolDescriptor, McpToolError, McpToolErrorDetails, McpToolsClient, McpToolsClientOptions } from 'mcpscraper-memory-sdk';
|
|
2
|
+
export { GeneratedMcpToolsClient, MCP_TOOL_BINDINGS, MCP_TOOL_COUNT, McpContentBlock, McpToolCallResult, McpToolDescriptor, McpToolError, McpToolErrorDetails, McpToolsClient, McpToolsClientOptions } from 'mcpscraper-memory-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1027,6 +1027,11 @@ interface components {
|
|
|
1027
1027
|
* @default false
|
|
1028
1028
|
*/
|
|
1029
1029
|
background: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* @description Download every discovered image as a real file into the background job's bundle.zip (under images/<page>/), not just image URLs/stats. OFF by default. Implies background regardless of the background flag — too slow to run inline. Capped at 20 images/page and 500 images/site.
|
|
1032
|
+
* @default false
|
|
1033
|
+
*/
|
|
1034
|
+
downloadImages: boolean;
|
|
1030
1035
|
/** @default false */
|
|
1031
1036
|
rotateProxies: boolean;
|
|
1032
1037
|
/** @default 30 */
|
|
@@ -1170,7 +1175,10 @@ interface components {
|
|
|
1170
1175
|
/**
|
|
1171
1176
|
* @description Produced files (name + MIME type). When the job requested formats including
|
|
1172
1177
|
* `issues`, this includes `seo-audit.json` (application/json — the same object as
|
|
1173
|
-
* the synchronous `seoAudit`), and rows in `pages.jsonl` include `inSitemap`.
|
|
1178
|
+
* the synchronous `seoAudit`), and rows in `pages.jsonl` include `inSitemap`. The
|
|
1179
|
+
* `bundle.zip` entry is the full downloadable export — page Markdown under `pages/`,
|
|
1180
|
+
* plus (when `downloadImages` was set) real image files under `images/<page>/` and an
|
|
1181
|
+
* `images-download-summary.json` entry reporting queued/downloaded/failed counts.
|
|
1174
1182
|
*/
|
|
1175
1183
|
artifacts?: {
|
|
1176
1184
|
[key: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessNamespace, CaptureNamespace, ChannelsNamespace, FactsNamespace, GraphNamespace, LibraryNamespace, MemoryNamespace, RecallNamespace, ScheduleNamespace, StorageNamespace, TablesNamespace, TagsNamespace, VaultsNamespace, VideoNamespace as VideoNamespace$1, WebhooksNamespace, CallToolFn, McpToolsClient } from 'mcpscraper-memory-sdk';
|
|
2
|
-
export { GeneratedMcpToolsClient, MCP_TOOL_BINDINGS, MCP_TOOL_COUNT, McpToolDescriptor, McpToolError, McpToolErrorDetails, McpToolsClient, McpToolsClientOptions } from 'mcpscraper-memory-sdk';
|
|
2
|
+
export { GeneratedMcpToolsClient, MCP_TOOL_BINDINGS, MCP_TOOL_COUNT, McpContentBlock, McpToolCallResult, McpToolDescriptor, McpToolError, McpToolErrorDetails, McpToolsClient, McpToolsClientOptions } from 'mcpscraper-memory-sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1027,6 +1027,11 @@ interface components {
|
|
|
1027
1027
|
* @default false
|
|
1028
1028
|
*/
|
|
1029
1029
|
background: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* @description Download every discovered image as a real file into the background job's bundle.zip (under images/<page>/), not just image URLs/stats. OFF by default. Implies background regardless of the background flag — too slow to run inline. Capped at 20 images/page and 500 images/site.
|
|
1032
|
+
* @default false
|
|
1033
|
+
*/
|
|
1034
|
+
downloadImages: boolean;
|
|
1030
1035
|
/** @default false */
|
|
1031
1036
|
rotateProxies: boolean;
|
|
1032
1037
|
/** @default 30 */
|
|
@@ -1170,7 +1175,10 @@ interface components {
|
|
|
1170
1175
|
/**
|
|
1171
1176
|
* @description Produced files (name + MIME type). When the job requested formats including
|
|
1172
1177
|
* `issues`, this includes `seo-audit.json` (application/json — the same object as
|
|
1173
|
-
* the synchronous `seoAudit`), and rows in `pages.jsonl` include `inSitemap`.
|
|
1178
|
+
* the synchronous `seoAudit`), and rows in `pages.jsonl` include `inSitemap`. The
|
|
1179
|
+
* `bundle.zip` entry is the full downloadable export — page Markdown under `pages/`,
|
|
1180
|
+
* plus (when `downloadImages` was set) real image files under `images/<page>/` and an
|
|
1181
|
+
* `images-download-summary.json` entry reporting queued/downloaded/failed counts.
|
|
1174
1182
|
*/
|
|
1175
1183
|
artifacts?: {
|
|
1176
1184
|
[key: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpscraper-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Official Node.js client for all
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "Official Node.js client for all 159 mcpscraper.dev MCP tools and the REST API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"seo-api"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"mcpscraper-memory-sdk": "^0.
|
|
34
|
+
"mcpscraper-memory-sdk": "^0.11.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"openapi-typescript": "^7.13.0"
|