mcpscraper-cli 0.50.1 → 0.51.1
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 +27 -6
- package/dist/bin/cli.js +445 -437
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Command-line interface for the unified [mcpscraper.dev](https://mcpscraper.dev)
|
|
|
4
4
|
|
|
5
5
|
[Release history](https://github.com/VilovietaSEO/mcpscraper-sdk/blob/main/CHANGELOG.md)
|
|
6
6
|
|
|
7
|
-
The CLI provides friendly shortcuts for common operations plus universal discovery and invocation for every one of the
|
|
7
|
+
The CLI provides friendly shortcuts for common operations plus universal discovery and invocation for every one of the 367 unified MCP tools, including retained-file readers, provider-neutral X-Ray surveys, attribution-impact reporting, and truthful evidence-status operations.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -20,6 +20,20 @@ export MCPSCRAPER_API_KEY=sk_live_your_key
|
|
|
20
20
|
|
|
21
21
|
or pass `--api-key <key>` on any command.
|
|
22
22
|
|
|
23
|
+
## Deployment and client attribution
|
|
24
|
+
|
|
25
|
+
The default API endpoint is `https://mcpscraper.dev`. To use a selected branch deployment, set `MCPSCRAPER_BASE_URL` or pass `--base-url https://your-preview.example.com`. The URL must not contain credentials, a query or a fragment; authentication still uses the API key.
|
|
26
|
+
|
|
27
|
+
Attribution labels help the operator identify client usage in reports. They do not affect authentication, credits, provider selection or tool arguments. Declare the installation channel and AI client/model when known:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
mcpscraper --install-channel npm --ai-client claude-code --ai-model claude-sonnet-4 tools call credits_info --args '{}' --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The equivalent environment settings are `MCP_SCRAPER_INSTALL_CHANNEL`, `MCP_SCRAPER_AI_CLIENT` and `MCP_SCRAPER_AI_MODEL`. Command flags take precedence. Installation choices are `npx`, `npm`, `source` and `mcpb`; AI client choices are `claude`, `claude-desktop`, `claude-code`, `chatgpt`, `codex`, `cursor`, `gemini` and `other`. Model identifiers are limited to 80 characters, starting with a letter or digit and containing only letters, digits, `.`, `_`, `:`, `/` and `-`.
|
|
34
|
+
|
|
35
|
+
The CLI automatically reports `npx` only when its observed executable path is inside an `_npx` cache directory. An npm or source installation and AI identity stay unspecified unless declared. Direct API shortcuts report the `rest` surface, including `/memory/mcp-call`; universal `tools call` commands report `mcp-http`. Installation channel is a separate label.
|
|
36
|
+
|
|
23
37
|
## Commands
|
|
24
38
|
|
|
25
39
|
### Every MCP tool
|
|
@@ -34,6 +48,9 @@ mcpscraper tools call export_connected_service_data --args '{"connectionId":"gsc
|
|
|
34
48
|
mcpscraper tools call describe_service_connection_tool --args '{"connectionId":"conn_123","tool":"provider-tool-name"}' --json
|
|
35
49
|
mcpscraper tools call renew_connected_data_download --args '{"artifactId":"artifact_123"}' --json
|
|
36
50
|
mcpscraper tools call archive_read --args '{"url":"https://github.com/octocat/Hello-World/archive/refs/heads/master.zip"}' --json
|
|
51
|
+
mcpscraper tools call artifact_describe --args '{"artifactId":"artifact_123"}' --json
|
|
52
|
+
mcpscraper tools call artifact_read --args '{"artifactId":"artifact_123","offset":0,"maxBytes":64000}' --json
|
|
53
|
+
mcpscraper tools call artifact_download --args '{"artifactId":"artifact_123"}' --raw-result
|
|
37
54
|
mcpscraper tools call list_scheduled_runs --args '{"view":"inbox","limit":30}' --json
|
|
38
55
|
mcpscraper tools call lead_list_enrich --args '{"idempotencyKey":"roofing-dallas-001","source":{"kind":"rows","rows":[{"Business":"White Rock Roofing","City":"Dallas","Website":"https://roofwhiterock.com"}]},"columnMap":{"name":"Business","city":"City","websiteUrl":"Website"},"defaultEntityType":"business","emailSearchFallback":"serp_snippets","peopleDiscovery":"owners","peopleQueryTemplates":["{business} owner of company {city}","{business} founder {city}"],"outputFormats":["csv","xlsx"]}' --json
|
|
39
56
|
mcpscraper tools call gmail_search_messages --args '{"connectionId":"gmail_conn_123","query":"has:attachment newer_than:30d","limit":25}' --json
|
|
@@ -41,11 +58,13 @@ mcpscraper tools call gmail_prepare_selection --args '{"connectionId":"gmail_con
|
|
|
41
58
|
mcpscraper tools call gmail_import_status --args '{"ingestId":"opaque_ingest_id"}' --json
|
|
42
59
|
```
|
|
43
60
|
|
|
44
|
-
`tools list` contains exactly
|
|
61
|
+
`tools list` contains exactly 367 manifest-backed names. `tools call` accepts any one of them. Tools marked destructive require `--yes`.
|
|
62
|
+
|
|
63
|
+
`tools call --json` keeps the existing output shape: parsed `structuredContent` or text for text-only results, and the MCP envelope when it includes resources or media. Use `--raw-result` to always retain the envelope, including `content`, `structuredContent`, metadata and resource links. Both modes save inline binary blocks to local files and replace their bytes with `savedPath` and byte-count metadata. Retained-file envelopes and resource links remain available in the output. For complete text, use the returned artifact ID with `artifact_read` and follow `nextOffset` until it is null. `artifact_describe` reports MIME type, size, supported readers and retention expiry; `artifact_download` returns or renews the original file's link while retention remains valid. A preview or one read window is not the whole source.
|
|
45
64
|
|
|
46
65
|
Integration connections are included with an active Starter plan or higher and have no extra connection-operation debit in this release. Scheduled occurrences cost 75 Credits; agent-mode runs also add 1.5 times OpenRouter's actual reported cost. Inspect the live policy with `mcpscraper tools call get-schedule-status --args '{}'`.
|
|
47
66
|
|
|
48
|
-
Google Search light mode returns organic positions, URLs, titles, and descriptions for 20 Credits per delivered SERP page, or 35 Credits when the backup supplies the result. Unfiltered one-page full mode adds available same-page SERP features for 35 Credits. Both modes default to one page. Past-week and past-month searches use a managed browser for organic results at 35 Credits per delivered page
|
|
67
|
+
Google Search light mode returns organic positions, URLs, titles, and descriptions for 20 Credits per delivered SERP page, or 35 Credits when the backup supplies the result. Unfiltered light mode makes two primary attempts, then one API fallback. Unfiltered one-page full mode adds available same-page SERP features for 35 Credits. Both modes default to one page. Past-week and past-month searches use a managed browser for organic results at 35 Credits per delivered page. Request a second page explicitly. A 35-Credit-per-requested-page hold is settled after delivery. PAA costs 400 Credits plus 10 Credits per returned question. One optional concurrency pack adds two browser slots for $5/month; quantity n adds 2n browser slots.
|
|
49
68
|
|
|
50
69
|
Use `mcpscraper tools call harvest_paa_start --args '{"query":"...","pages":2,"idempotencyKey":"..."}' --json`
|
|
51
70
|
to request a second organic-results page, then poll the returned `jobId` with
|
|
@@ -86,8 +105,8 @@ Poll and read the export without downloading and unpacking the ZIP:
|
|
|
86
105
|
|
|
87
106
|
```bash
|
|
88
107
|
mcpscraper export-status <job-id>
|
|
89
|
-
mcpscraper export-read <job-id> --
|
|
90
|
-
mcpscraper export-read <job-id> --
|
|
108
|
+
mcpscraper export-read <job-id> --format manifest
|
|
109
|
+
mcpscraper export-read <job-id> --format html --page-id <page-id> --output page.html
|
|
91
110
|
mcpscraper export-image <job-id> <image-id> --output image.jpg
|
|
92
111
|
```
|
|
93
112
|
|
|
@@ -139,4 +158,6 @@ $ mcpscraper map https://example.com --json
|
|
|
139
158
|
|
|
140
159
|
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-sdk`](../scraper) · [`mcpscraper-memory-sdk`](../memory) · Python: [`mcpscraper-sdk`](../scraper-python) · [`mcpscraper-memory-sdk`](../memory-python)
|
|
141
160
|
|
|
142
|
-
|
|
161
|
+
Durable PAA harvests should wait at least 20 seconds between status checks and honor a longer returned polling interval. Keep the same job ID and retry key while the original work is running.
|
|
162
|
+
|
|
163
|
+
Release changes: [SDK 0.53.1 release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.53.1).
|