mcp-scraper 0.16.0 → 0.17.2

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.
@@ -1,12 +1,12 @@
1
1
  {
2
- "generatedAt": "2026-07-12T18:46:14.399Z",
2
+ "generatedAt": "2026-07-12T21:11:03.690Z",
3
3
  "generatedFrom": "dist/bin/mcp-stdio-server.js",
4
4
  "serverInfo": {
5
5
  "name": "mcp-scraper",
6
- "version": "0.16.0"
6
+ "version": "0.17.0"
7
7
  },
8
8
  "counts": {
9
- "unified_stdio": 156
9
+ "unified_stdio": 157
10
10
  },
11
11
  "surfaces": {
12
12
  "unified_stdio": [
@@ -87,6 +87,7 @@
87
87
  "google_ads_transcribe",
88
88
  "google_calendar_create_event",
89
89
  "harvest_paa",
90
+ "import_service_connection_to_memory",
90
91
  "instagram_media_download",
91
92
  "instagram_profile_content",
92
93
  "library-ingest",
@@ -8950,6 +8951,144 @@
8950
8951
  "taskSupport": "forbidden"
8951
8952
  }
8952
8953
  },
8954
+ {
8955
+ "name": "import_service_connection_to_memory",
8956
+ "title": "Import Connected Service Snapshot to Memory",
8957
+ "description": "Run exactly one bounded, approved read on a tenant-owned connected service and upsert the redacted result into an existing ordinary Memory vault at a server-generated stable path. The saved document is embedded for RAG and marked as untrusted provider data, never instructions. This is a one-result snapshot: it does not paginate, bulk-import an account, continuously sync changes, propagate deletions, or create normalized tables. Use list_service_connections first and supply an exact current readTools entry; action and admin tools are rejected.",
8958
+ "inputSchema": {
8959
+ "type": "object",
8960
+ "properties": {
8961
+ "connectionId": {
8962
+ "type": "string",
8963
+ "minLength": 1,
8964
+ "maxLength": 200,
8965
+ "description": "A tenant-owned connectionId from list_service_connections."
8966
+ },
8967
+ "providerConfigKey": {
8968
+ "type": "string",
8969
+ "minLength": 1,
8970
+ "maxLength": 200,
8971
+ "description": "The exact providerConfigKey returned with that connection. It is matched together with connectionId against the authenticated caller."
8972
+ },
8973
+ "tool": {
8974
+ "type": "string",
8975
+ "minLength": 1,
8976
+ "maxLength": 200,
8977
+ "description": "One exact current readTools entry for that connection. Actions, admin tools, and unlisted names are rejected."
8978
+ },
8979
+ "args": {
8980
+ "type": "object",
8981
+ "additionalProperties": {},
8982
+ "description": "JSON arguments for one bounded provider read. The serialized object may be at most 64 KiB."
8983
+ },
8984
+ "vault": {
8985
+ "type": "string",
8986
+ "minLength": 1,
8987
+ "maxLength": 100,
8988
+ "description": "An existing ordinary Memory vault the caller can write and index. Secure and channel vaults are rejected because this tool creates searchable RAG content."
8989
+ },
8990
+ "title": {
8991
+ "type": "string",
8992
+ "minLength": 1,
8993
+ "maxLength": 200,
8994
+ "description": "Optional human-readable snapshot title. The server always chooses the stable storage path."
8995
+ }
8996
+ },
8997
+ "required": [
8998
+ "connectionId",
8999
+ "providerConfigKey",
9000
+ "tool",
9001
+ "vault"
9002
+ ],
9003
+ "additionalProperties": false,
9004
+ "$schema": "http://json-schema.org/draft-07/schema#"
9005
+ },
9006
+ "outputSchema": {
9007
+ "type": "object",
9008
+ "properties": {
9009
+ "ok": {
9010
+ "type": "boolean"
9011
+ },
9012
+ "stored": {
9013
+ "type": "boolean"
9014
+ },
9015
+ "status": {
9016
+ "type": "string",
9017
+ "enum": [
9018
+ "search_ready",
9019
+ "stored_not_indexed"
9020
+ ]
9021
+ },
9022
+ "searchReady": {
9023
+ "type": "boolean"
9024
+ },
9025
+ "providerConfigKey": {
9026
+ "type": "string"
9027
+ },
9028
+ "connectionId": {
9029
+ "type": "string"
9030
+ },
9031
+ "tool": {
9032
+ "type": "string"
9033
+ },
9034
+ "vault": {
9035
+ "type": "string"
9036
+ },
9037
+ "path": {
9038
+ "type": "string"
9039
+ },
9040
+ "sourceBytes": {
9041
+ "type": "integer",
9042
+ "minimum": 0
9043
+ },
9044
+ "contentSha256": {
9045
+ "type": "string"
9046
+ },
9047
+ "indexedChunks": {
9048
+ "type": "integer",
9049
+ "minimum": 0
9050
+ },
9051
+ "importedAt": {
9052
+ "type": "string"
9053
+ },
9054
+ "untrustedContent": {
9055
+ "type": "boolean",
9056
+ "const": true
9057
+ },
9058
+ "warning": {
9059
+ "type": "string"
9060
+ },
9061
+ "errorCode": {
9062
+ "type": "string"
9063
+ },
9064
+ "retryable": {
9065
+ "type": "boolean"
9066
+ },
9067
+ "error": {
9068
+ "type": [
9069
+ "string",
9070
+ "null"
9071
+ ]
9072
+ }
9073
+ },
9074
+ "required": [
9075
+ "ok",
9076
+ "error"
9077
+ ],
9078
+ "additionalProperties": false,
9079
+ "$schema": "http://json-schema.org/draft-07/schema#"
9080
+ },
9081
+ "annotations": {
9082
+ "title": "Import Connected Service Snapshot to Memory",
9083
+ "readOnlyHint": false,
9084
+ "destructiveHint": false,
9085
+ "idempotentHint": true,
9086
+ "openWorldHint": true
9087
+ },
9088
+ "execution": {
9089
+ "taskSupport": "forbidden"
9090
+ }
9091
+ },
8953
9092
  {
8954
9093
  "name": "instagram_media_download",
8955
9094
  "title": "Instagram Post/Reel Media Download",
@@ -10,7 +10,7 @@
10
10
  - Nango production has the exact source-controlled 12-function Drive inventory: ten bounded reads plus the additive `create-drive-folder` and `copy-drive-file` actions.
11
11
  - The scheduler exposes the live-policy intersection as 10 reads and 2 actions, injects exact per-schedule grants into transient Mastra toolsets, and audits classified mutations without storing argument values.
12
12
  - The current tenant-owned Drive connection is healthy. Its explicitly authorized action switch is on; newly connected accounts still default to actions off.
13
- - The fixed public MCP remains a 156-tool provider-neutral surface. `describe_service_connection_tool` returned live 64-character schema hashes for both a Drive read and action; `get-about` and a one-item `list-drive-files` page passed through production.
13
+ - The fixed public MCP now exposes a 157-tool provider-neutral surface. `describe_service_connection_tool` returned live 64-character schema hashes for both a Drive read and action; `get-about` and a one-item `list-drive-files` page passed through production.
14
14
  - This receipt covers interactive Phase 1 only. Deterministic `connection_sync`, background Proxy/Blob file transfer, native connection-scoped MCP `tools/list`, `upload-document`, broader mutations, and a reversible production write fixture are not shipped.
15
15
 
16
16
  ## Executive decision
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-scraper",
3
- "version": "0.16.0",
3
+ "version": "0.17.2",
4
4
  "description": "MCP server for MCP Scraper web intelligence tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -24,7 +24,10 @@
24
24
  },
25
25
  "files": [
26
26
  "dist",
27
- "docs",
27
+ "docs/*.md",
28
+ "docs/*.json",
29
+ "docs/adr/*.md",
30
+ "docs/specs/*.md",
28
31
  "README.md"
29
32
  ],
30
33
  "scripts": {
@@ -50,7 +53,13 @@
50
53
  "sync:env": "bash scripts/push-env.sh",
51
54
  "sync:env:apply": "bash scripts/push-env.sh --apply",
52
55
  "test:webhook": "node scripts/test-webhook.mjs",
53
- "test:e2e": "playwright test"
56
+ "test:e2e": "playwright test",
57
+ "email:preview": "node scripts/run-ts-sandbox-safe.mjs scripts/email/render-previews.ts",
58
+ "email:preflight": "node --import tsx scripts/email/preflight.ts",
59
+ "email:avatar": "node --import tsx scripts/email/generate-sender-avatar.ts",
60
+ "email:inbound:setup": "node --import tsx scripts/email/setup-resend-inbound.ts",
61
+ "email:audience": "node scripts/run-ts-sandbox-safe.mjs scripts/email/sync-resend-audience.ts",
62
+ "email:drafts": "node scripts/run-ts-sandbox-safe.mjs scripts/email/create-resend-drafts.ts"
54
63
  },
55
64
  "dependencies": {
56
65
  "@anthropic-ai/sdk": "^0.96.0",
@@ -1,7 +0,0 @@
1
- // src/version.ts
2
- var PACKAGE_VERSION = "0.16.0";
3
-
4
- export {
5
- PACKAGE_VERSION
6
- };
7
- //# sourceMappingURL=chunk-HQYIP5X3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.16.0'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/install-terminal.ts"],"sourcesContent":["export interface InstallTerminalOptions {\n color?: boolean\n version: string\n apiKeyConfigured?: boolean\n}\n\ntype Tone = 'cyan' | 'lime' | 'amber' | 'red' | 'muted' | 'bold'\n\nconst CODES: Record<Tone | 'reset', string> = {\n reset: '\\x1b[0m',\n cyan: '\\x1b[36m',\n lime: '\\x1b[32m',\n amber: '\\x1b[33m',\n red: '\\x1b[31m',\n muted: '\\x1b[90m',\n bold: '\\x1b[1m',\n}\n\nfunction colorize(value: string, tone: Tone, enabled: boolean): string {\n if (!enabled) return value\n return `${CODES[tone]}${value}${CODES.reset}`\n}\n\nfunction toolRow(label: string, tools: string[], enabled: boolean): string {\n const padded = label.padEnd(9, ' ')\n return ` ${colorize(padded, 'muted', enabled)} ${tools.join(colorize(' . ', 'muted', enabled))}`\n}\n\nexport function renderInstallTerminal(options: InstallTerminalOptions): string {\n const color = options.color ?? true\n const apiKeyValue = options.apiKeyConfigured ? '$MCP_SCRAPER_API_KEY' : 'sk_live_your_key'\n const ascii = String.raw`\n __ __ ____ ____ \n| \\/ |/ ___| _ \\\n| |\\/| | | | |_) |\n| | | | |___| __/\n|_| |_|\\____|_|\n\n ____ ____ ____ _ ____ _____ ____\n/ ___| / ___| _ \\ / \\ | _ \\| ____| _ \\\n\\___ \\| | | |_) | / _ \\ | |_) | _| | |_) |\n ___) | |___| _ < / ___ \\| __/| |___| _ <\n|____/ \\____|_| \\_\\/_/ \\_\\_| |_____|_| \\_\\\n`\n\n const claudeCommand = [\n `MCP_SCRAPER_API_KEY=${apiKeyValue} npx -y -p mcp-scraper@latest \\\\`,\n ' mcp-scraper-cli agent install claude --apply',\n ].join('\\n')\n\n const codexConfig = [\n '[mcp_servers.mcp-scraper]',\n 'command = \"npx\"',\n 'args = [\"-y\", \"-p\", \"mcp-scraper@latest\", \"mcp-scraper\"]',\n `env = { MCP_SCRAPER_API_KEY = \"${apiKeyValue}\" }`,\n ].join('\\n')\n\n return [\n colorize(`mcp-scraper v${options.version}`, 'bold', color),\n colorize('> mcp-scraper-install', 'muted', color),\n colorize(ascii, 'amber', color),\n `${colorize('MCP Scraper Agent', 'cyan', color)} . v${options.version} . mcpscraper.dev`,\n '1/1 install surfaces ready',\n colorize('Newest: Resend remote MCP + bulk connected-data exports. OAuth stays tenant-isolated; one call paginates Gmail, Calendar, Zoom, or Resend into inline data or private JSONL.', 'lime', color),\n '',\n `${colorize('Tools', 'cyan', color)} ${colorize('(156 MCP tools)', 'muted', color)}`,\n toolRow('search', ['harvest_paa', 'search_serp', 'maps_search', 'maps_place_intel'], color),\n toolRow('extract', ['extract_url', 'map_site_urls', 'extract_site', 'audit_site', 'directory_workflow'], color),\n toolRow('build', ['rank_tracker_workflow', 'cron plan', 'database prompt'], color),\n toolRow('media', ['youtube_harvest', 'youtube_transcribe', 'facebook_ad_search', 'facebook_page_intel', 'facebook_ad_transcribe', 'facebook_video_transcribe', 'instagram_profile_content', 'instagram_media_download', 'reddit_thread'], color),\n toolRow('browser', ['browser_open', 'browser_profile_connect', 'browser_profile_list', 'browser_close', 'browser_screenshot', 'browser_read', 'browser_locate', 'browser_replay_mark', 'browser_replay_annotate'], color),\n toolRow('connect', ['list_service_connections', 'describe_service_connection_tool', 'export_connected_service_data', 'renew_connected_data_download', 'read_service_connection', 'call_service_connection_action'], color),\n toolRow('account', ['credits_info', 'reports', 'MCP resources'], color),\n toolRow('memory', ['memory-put', 'memory-get', 'memory-search', 'list-vaults', 'record-fact', 'list-scheduled-actions'], color),\n `${colorize('Workflows', 'cyan', color)} ${colorize('(MCP + CLI + API)', 'muted', color)}`,\n toolRow('route', ['workflow_list', 'workflow_suggest', 'workflow_run', 'workflow_step', 'workflow_status', 'workflow_artifact_read'], color),\n toolRow('seo', ['directory', 'agent-packet', 'competitive audit', 'map/serp comparison', 'PAA/AIO briefs', 'scheduled runs'], color),\n '',\n colorize('Usage tips:', 'amber', color),\n 'Run mcp-scraper-install for this visible card. Run mcp-scraper-cli for setup utilities and subcommands.',\n 'Run mcp-scraper in a human terminal to print this card; MCP clients get the same command as a silent stdio server.',\n 'Explicit card command: npx -y -p mcp-scraper@latest mcp-scraper-install',\n 'Hosted browser sessions use direct/no-proxy egress by default.',\n 'Customer auth setup: run browser_profile_connect, send the watch_url, let the user sign in, then call browser_profile_list until AUTHENTICATED.',\n 'Connected account ranges: call export_connected_service_data once. It handles Gmail, Calendar, Zoom, and Resend pagination; do not loop read_service_connection over individual records.',\n 'Stack logins / reconnect: run browser_profile_connect again with the same profile name and another domain to add accounts or refresh a login.',\n 'Start with workflow_suggest for broad jobs like market analysis, ICP research, CRO audits, brand briefs, content gaps, and AI visibility.',\n 'For MCP clients, use mcp-scraper so one install can mix SERP, Maps, browser, reports, and saved MCP resources.',\n 'If you hit the concurrency limit, add an extra slot for $5/month with mcp-scraper-cli billing concurrency checkout.',\n '',\n `${colorize('Ready.', 'lime', color)} Install the combined MCP server with one command:`,\n '',\n colorize('Setup doctor', 'amber', color),\n 'npx -y -p mcp-scraper@latest mcp-scraper-cli doctor',\n '',\n colorize('Hosted profile setup', 'amber', color),\n 'In your MCP client, call browser_profile_connect with email=\"seo@example.com\" and domain=\"chatgpt.com\".',\n 'Give the returned watch_url to the user. After they sign in, call browser_profile_list, then browser_open with the returned profile. Add more logins by calling browser_profile_connect again with the same profile and a new domain.',\n '',\n colorize('Claude Code one-command setup', 'amber', color),\n claudeCommand,\n 'Then fully exit Claude Code and open a new Claude terminal. Check with: claude mcp list',\n '',\n colorize('Codex config', 'amber', color),\n codexConfig,\n '',\n colorize('Claude Desktop Extension', 'amber', color),\n 'Download: https://mcpscraper.dev/downloads/mcp-scraper.mcpb',\n '',\n colorize('Safety note:', 'muted', color),\n 'mcp-scraper prints this card only when stdin/stdout are an interactive TTY. In MCP clients it writes only JSON-RPC to stdout.',\n 'Use --stdio or MCP_SCRAPER_FORCE_STDIO=1 to force server mode from a terminal.',\n '',\n ].join('\\n')\n}\n"],"mappings":";AAQA,IAAM,QAAwC;AAAA,EAC5C,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,EACL,OA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