mcp-scraper 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to the public MCP Scraper client are documented here. This p
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.0.4] - 2026-11-17
8
+
9
+ ### Changed
10
+
11
+ - Align the client release with faster one-page search snapshots on the hosted service. Tool arguments, prices and result fields are unchanged.
12
+
7
13
  ## [1.0.3] - 2026-11-16
8
14
 
9
15
  ### Fixed
@@ -559,7 +565,8 @@ All notable changes to the public MCP Scraper client are documented here. This p
559
565
 
560
566
  [0.98.0]: https://github.com/VilovietaSEO/mcp-scraper/releases/tag/v0.98.0
561
567
 
562
- [Unreleased]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.3...HEAD
568
+ [Unreleased]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.4...HEAD
569
+ [1.0.4]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.3...client-v1.0.4
563
570
  [1.0.3]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.2...client-v1.0.3
564
571
  [1.0.2]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.1...client-v1.0.2
565
572
  [1.0.1]: https://github.com/VilovietaSEO/mcp-scraper/compare/client-v1.0.0...client-v1.0.1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{Command as Ve}from"commander";import{spawn as he}from"node:child_process";import{mkdir as Fe,writeFile as ze}from"node:fs/promises";import{basename as Ze,join as fe}from"node:path";var v="1.0.3";import{createHash as Pe}from"node:crypto";var C="3.0.0",W="analytics_setup_site",Ce="Install X-Ray",X="Install X-Ray and tell me what drives customers",P=`Call ${W} with { "startUrl": "<site URL>", "goal": "${X}" }; on every later call, reuse the returned setupId and revision.`,L=JSON.stringify({mcpServers:{"mcp-scraper":{command:"npx",args:["-y","--package","mcp-scraper@latest","mcp-scraper"],env:{MCP_SCRAPER_API_KEY:"${env:MCP_SCRAPER_API_KEY}"}}}},null,2),Re=JSON.stringify({mcpServers:{"mcp-scraper":{url:"https://mcpscraper.dev/mcp"}}},null,2),G={schema:"https://mcpscraper.dev/schemas/xray-install-contract-v1.json",protocolVersion:C,product:"Thorbit X-Ray",triggerPhrases:[Ce,"Install X-Ray on this site and tell me what drives customers"],canonicalUrls:{markdown:"https://mcpscraper.dev/agent-install.md",json:"https://mcpscraper.dev/.well-known/xray-install.json",hostedMcp:"https://mcpscraper.dev/mcp"},facade:{tool:W,initialCall:{startUrl:"<site URL>",goal:X},continuationRule:"Treat setupId plus revision as the durable continuation handle. Reuse both after approval, runtime publication, verification, retry, or return."},topologies:{local_stdio:{label:"Local npm MCP process",authority:"The client starts MCP Scraper locally. After the one-time Pixel insertion, X-Ray setup publishes only owner-confirmed runtime configuration.",secretHandling:"Set MCP_SCRAPER_API_KEY in the local environment or client secret field. Never paste it into chat or commit it."},hosted_remote:{label:"Hosted authenticated MCP",authority:"The hosted MCP inspects approved public pages and publishes owner-confirmed X-Ray runtime configuration. It cannot read or write a caller-local path.",secretHandling:"Use the MCP OAuth/connection flow. Never put a credential in a URL, prompt, or config shown in chat."}},hosts:[{id:"codex",label:"Codex",supportedTopologies:["local_stdio","hosted_remote"],mcpConfigMode:"toml",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:`[mcp_servers.mcp-scraper]
2
+ import{Command as Ve}from"commander";import{spawn as he}from"node:child_process";import{mkdir as Fe,writeFile as ze}from"node:fs/promises";import{basename as Ze,join as fe}from"node:path";var v="1.0.4";import{createHash as Pe}from"node:crypto";var C="3.0.0",W="analytics_setup_site",Ce="Install X-Ray",X="Install X-Ray and tell me what drives customers",P=`Call ${W} with { "startUrl": "<site URL>", "goal": "${X}" }; on every later call, reuse the returned setupId and revision.`,L=JSON.stringify({mcpServers:{"mcp-scraper":{command:"npx",args:["-y","--package","mcp-scraper@latest","mcp-scraper"],env:{MCP_SCRAPER_API_KEY:"${env:MCP_SCRAPER_API_KEY}"}}}},null,2),Re=JSON.stringify({mcpServers:{"mcp-scraper":{url:"https://mcpscraper.dev/mcp"}}},null,2),G={schema:"https://mcpscraper.dev/schemas/xray-install-contract-v1.json",protocolVersion:C,product:"Thorbit X-Ray",triggerPhrases:[Ce,"Install X-Ray on this site and tell me what drives customers"],canonicalUrls:{markdown:"https://mcpscraper.dev/agent-install.md",json:"https://mcpscraper.dev/.well-known/xray-install.json",hostedMcp:"https://mcpscraper.dev/mcp"},facade:{tool:W,initialCall:{startUrl:"<site URL>",goal:X},continuationRule:"Treat setupId plus revision as the durable continuation handle. Reuse both after approval, runtime publication, verification, retry, or return."},topologies:{local_stdio:{label:"Local npm MCP process",authority:"The client starts MCP Scraper locally. After the one-time Pixel insertion, X-Ray setup publishes only owner-confirmed runtime configuration.",secretHandling:"Set MCP_SCRAPER_API_KEY in the local environment or client secret field. Never paste it into chat or commit it."},hosted_remote:{label:"Hosted authenticated MCP",authority:"The hosted MCP inspects approved public pages and publishes owner-confirmed X-Ray runtime configuration. It cannot read or write a caller-local path.",secretHandling:"Use the MCP OAuth/connection flow. Never put a credential in a URL, prompt, or config shown in chat."}},hosts:[{id:"codex",label:"Codex",supportedTopologies:["local_stdio","hosted_remote"],mcpConfigMode:"toml",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:`[mcp_servers.mcp-scraper]
3
3
  command = "npx"
4
4
  args = ["-y", "--package", "mcp-scraper@latest", "mcp-scraper"]
5
5
  env_vars = ["MCP_SCRAPER_API_KEY"]`,continuation:P,rollback:"Remove the mcp_servers.mcp-scraper table, then restart Codex. Pixel removal is a separate owner-controlled site action."},{id:"claude-code",label:"Claude Code",supportedTopologies:["local_stdio","hosted_remote"],mcpConfigMode:"command",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:'claude mcp add mcp-scraper --scope user --env MCP_SCRAPER_API_KEY="$MCP_SCRAPER_API_KEY" -- npx -y --package mcp-scraper@latest mcp-scraper',continuation:P,rollback:"Run: claude mcp remove mcp-scraper -s user. Pixel removal is a separate owner-controlled site action."},{id:"claude-desktop",label:"Claude Desktop",supportedTopologies:["local_stdio"],mcpConfigMode:"desktop_extension",workspaceRead:!1,workspaceWrite:!1,restartRequired:!0,exactConfig:"Install https://mcpscraper.dev/downloads/mcp-scraper.mcpb and enter the API key only in Claude Desktop's protected configuration field.",continuation:P,rollback:"Remove the MCP Scraper extension in Claude Desktop. Pixel removal is a separate owner-controlled site action."},{id:"cursor",label:"Cursor",supportedTopologies:["local_stdio","hosted_remote"],mcpConfigMode:"json",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:L,continuation:P,rollback:"Remove mcp-scraper from .cursor/mcp.json (or the user MCP settings), then restart Cursor."},{id:"windsurf",label:"Windsurf",supportedTopologies:["local_stdio"],mcpConfigMode:"json",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:L,continuation:P,rollback:"Remove mcp-scraper from the Windsurf MCP configuration, then restart Windsurf."},{id:"cline",label:"Cline",supportedTopologies:["local_stdio"],mcpConfigMode:"json",workspaceRead:!0,workspaceWrite:!0,restartRequired:!0,exactConfig:L,continuation:P,rollback:"Remove mcp-scraper from Cline MCP Servers, then restart the extension host."},{id:"user-action-only",label:"User-action-only MCP host",supportedTopologies:["hosted_remote"],mcpConfigMode:"handoff_only",workspaceRead:!1,workspaceWrite:!1,restartRequired:!1,exactConfig:Re,continuation:P,rollback:"Disconnect MCP Scraper from the host. Pixel removal remains an owner-controlled site action."}],tagBootstrap:{requirement:"one_global_pixel_once",ongoingConfiguration:"xray_runtime_manifest",sourceAccessRequiredAfterInstall:!1,supportedInsertionPaths:["manual","tag_manager","cms_plugin","coding_host"]},workflow:["Resolve Thorbit X-Ray entitlement and the target site without consuming MCP Scraper Credits.","Inspect the whole approved public site; enumerate distinct renderers, routes, and Pixel coverage.","Infer the business model and customer outcome, then propose one privacy-safe measurement plan.","If the Pixel is absent, return the canonical one-time tag and exact uncovered surfaces; do not claim ongoing control there.","Publish an approved measurement revision as a digest-bound runtime manifest; source or repository access is not required.","For SaaS, verify the measurement foundation: global tag coverage, ad-source capture, lifecycle events, currency and timezone, consent, and observed outcome events.","Optionally publish a structured post-purchase survey after approved disclosure evidence; reported influence remains separate from deterministic touches.","Compare observed attribution with customer-reported influence only with explicit weights totaling 1,000,000 micros and a named methodology version.","Keep view-through reporting unavailable until event-level provider evidence can join to an eligible X-Ray subject; aggregate impressions never qualify.","Verify route coverage, consent, PageViews, manifest convergence, bounded rule matches, and persisted definition/version evidence.","Require a separate exact-revision approval before any canary or real-visitor experiment activation.","Return first customer-journey answers when sufficient, or exact evidence-readiness thresholds when not.","On \u201Cimprove\u201D, propose one highest-value uncovered outcome, require approval when needed, and reverify."],safetyRules:["Never invent or hand-author tracking code; use the canonical product-authored Pixel snippet returned by analytics_setup_site.","Never ask for or print API keys, OAuth tokens, signed URLs, cookies, or other credentials.","Never call ad platforms directly or silently activate events, definitions, funnels, or delivery destinations.","Never treat a CTA click as a customer, sale, or revenue event without verified outcome evidence.","Never claim full-domain installation while an in-scope route or renderer is missing, excluded without approval, or unverifiable.","Never treat event-name presence as verification; require persisted definition ID and version evidence.","Never accept survey invitation tokens or exchange codes through MCP inputs or prompts.","Never treat customer-reported influence as identity, CRM mutation authority, ad-activation evidence, or a deterministic touch."],terminalStates:["complete","tag_required","input_required","approval_required","runtime_convergence_required","not_ready","error"]};function U(e){return Array.isArray(e)?`[${e.map(U).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([r],[a])=>r.localeCompare(a)).map(([r,a])=>`${JSON.stringify(r)}:${U(a)}`).join(",")}}`:JSON.stringify(e)}function be(){return U(G)}var R=`sha256:${Pe("sha256").update(be(),"utf8").digest("hex")}`,q={...G,protocolDigest:R};function V(e){let r=q.hosts.find(a=>a.id===e);if(!r)throw new Error(`Unknown X-Ray host: ${e}`);return r}function F(){return["# Install X-Ray","",`Protocol: ${C} (${R})`,"",`Use ${W} as the single conversational setup facade. Ask for the target site URL if it is missing, then call it with the goal \u201C${X}\u201D.`,"","Continue the same setup with its setupId and revision. Confirm one global Pixel across all public rendering surfaces; present one measurement plan; publish it as a digest-bound runtime manifest after exact-revision approval; verify manifest and rule versions; then return first customer-journey answers or explicit readiness thresholds. For SaaS, verify the provider-neutral measurement foundation. Browser events never prove paid revenue. GitHub or repository access is not required after the tag is installed.","","Do not request pasted credentials, invent tracking code, silently activate measurement, call ad platforms directly, or claim customers/revenue from CTA clicks."].join(`
@@ -3,7 +3,7 @@ import{createInterface as j}from"node:readline";import{readFileSync as L}from"no
3
3
  `));return R=[],a.id===e.id&&("result"in a||"error"in a)?c(a):(s?.(a),null)};try{for(;;){let{done:a,value:f}=await h.read();m+=P.decode(f,{stream:!a}),a&&m&&!m.endsWith(`
4
4
  `)&&(m+=`
5
5
  `);let y;for(;(y=m.indexOf(`
6
- `))>=0;){let g=m.slice(0,y).replace(/\r$/,"");if(m=m.slice(y+1),g===""){let S=v();if(S)return S}else g.startsWith("data:")&&R.push(g.slice(5).replace(/^ /,""))}if(a){let g=v();if(g)return g;break}}}finally{await h.cancel().catch(()=>{}),h.releaseLock()}throw new Error("MCP Scraper event stream ended without a response")}async request(e,s){let t=await this.relay({jsonrpc:"2.0",id:++this.nextId,method:e,params:s});if(!t)throw new Error("MCP Scraper returned no response");if(t.error)throw new Error(typeof t.error.message=="string"?t.error.message:"MCP Scraper request failed");return t.result}callTool(e,s={}){return this.request("tools/call",{name:e,arguments:s})}};function b(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}var O="1.0.3";function A(r){if(process.argv.includes("--help")||process.argv.includes("-h")||!process.argv.includes("--stdio")&&process.stdin.isTTY&&process.stdout.isTTY){process.stdout.write(`MCP Scraper ${O}
6
+ `))>=0;){let g=m.slice(0,y).replace(/\r$/,"");if(m=m.slice(y+1),g===""){let S=v();if(S)return S}else g.startsWith("data:")&&R.push(g.slice(5).replace(/^ /,""))}if(a){let g=v();if(g)return g;break}}}finally{await h.cancel().catch(()=>{}),h.releaseLock()}throw new Error("MCP Scraper event stream ended without a response")}async request(e,s){let t=await this.relay({jsonrpc:"2.0",id:++this.nextId,method:e,params:s});if(!t)throw new Error("MCP Scraper returned no response");if(t.error)throw new Error(typeof t.error.message=="string"?t.error.message:"MCP Scraper request failed");return t.result}callTool(e,s={}){return this.request("tools/call",{name:e,arguments:s})}};function b(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}var O="1.0.4";function A(r){if(process.argv.includes("--help")||process.argv.includes("-h")||!process.argv.includes("--stdio")&&process.stdin.isTTY&&process.stdout.isTTY){process.stdout.write(`MCP Scraper ${O}
7
7
  Authenticated hosted MCP client. Set MCP_SCRAPER_API_KEY and connect with --stdio.
8
8
  `);return}let e=process.env.MCP_SCRAPER_API_KEY?.trim();if(!e){for(let i of[process.env.MCP_SCRAPER_KEY_PATH,Y(K(),".mcp-scraper-key")])if(i)try{if(e=L(i,"utf8").trim(),e)break}catch{}}let s;try{s=new C({apiKey:e})}catch{process.stderr.write(`MCP_SCRAPER_API_KEY is required
9
9
  `),process.exitCode=1;return}let t=new Map,n=i=>process.stdout.write(JSON.stringify(i)+`
@@ -14,5 +14,5 @@ var i={schemaVersion:1,ratePolicy:{version:"serp-page-2026-09-24",effectiveDate:
14
14
  `,u=[`MCP_SCRAPER_API_KEY=${r} npx -y -p mcp-scraper@latest \\`," mcp-scraper-cli agent install claude --apply"].join(`
15
15
  `),h=["[mcp_servers.mcp-scraper]",'command = "npx"','args = ["-y", "-p", "mcp-scraper@latest", "mcp-scraper"]',`env = { MCP_SCRAPER_API_KEY = "${r}" }`].join(`
16
16
  `);return[t(`mcp-scraper v${l.version}`,"bold",e),t("> mcp-scraper-install","muted",e),t(s,"amber",e),`${t("MCP Scraper Agent","cyan",e)} . v${l.version} . mcpscraper.dev`,"1/1 install surfaces ready",t(`Newest in v${l.version}: ${n.message}`,"lime",e),"",`${t("Tools","cyan",e)} ${t(`(${i.inventory.totalTools} MCP tools)`,"muted",e)}`,a("search",["harvest_paa","search_serp","maps_search","maps_place_intel"],e),a("extract",["extract_url","map_site_urls","extract_site","audit_site","directory_workflow"],e),a("build",["create_editorial_reading_room","rank_tracker_workflow","portable HTML"],e),a("media",["youtube_harvest","youtube_transcribe","facebook_reels_inventory","facebook_ad_search","facebook_page_intel","facebook_ad_transcribe","facebook_video_transcribe","tiktok_video_transcribe","instagram_profile_content","instagram_media_download","reddit_thread"],e),a("browser",["serp_identity_create","serp_identity_list","browser_open","browser_profile_connect","browser_profile_list","browser_close","browser_screenshot","browser_read","browser_locate","browser_replay_mark","browser_replay_annotate"],e),a("connect",["list_service_connections","describe_service_connection_tool","import_service_connection_to_memory","export_connected_service_data","renew_connected_data_download","read_service_connection","call_service_connection_action"],e),a("commons",["commons_search_entities","commons_get_entity_linkset","commons_prepare_entity","commons_submit_entity","commons_prepare_publication","commons_claim_publication","commons_publish_editorial","commons_get_publication","commons_update_editorial_article","commons_list_publications","commons_delete_editorial_article","commons_delete_publication"],e),a("account",["credits_info","reports","MCP resources"],e),a("memory",["memory-put","memory-get","memory-search","list-vaults","record-fact","list_artifact_templates"],e),`${t("Workflows","cyan",e)} ${t("(MCP + CLI + API)","muted",e)}`,a("route",["workflow_list","workflow_suggest","workflow_run","workflow_step","workflow_status","workflow_artifact_read"],e),a("seo",["directory","agent-packet","competitive audit","map/serp comparison","PAA/AIO briefs"],e),"",t("Usage tips:","amber",e),"Run mcp-scraper-install for this visible card. Run mcp-scraper-cli for setup utilities and subcommands.","Run mcp-scraper in a human terminal to print this card; MCP clients get the same command as a silent stdio server.","Explicit card command: npx -y -p mcp-scraper@latest mcp-scraper-install","Hosted browser sessions use direct/no-proxy egress by default.","Customer auth setup: run browser_profile_connect, send the watch_url, let the user sign in, then call browser_profile_list until AUTHENTICATED.","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.","Connected account RAG: call import_service_connection_to_memory for one bounded approved read. It writes a redacted, untrusted snapshot to a stable Memory path and embeds it for search.","Stack logins / reconnect: run browser_profile_connect again with the same profile name and another domain to add accounts or refresh a login.","Start with workflow_suggest for broad jobs like market analysis, ICP research, CRO audits, brand briefs, content gaps, and AI visibility.","For MCP clients, use mcp-scraper so one install can mix SERP, Maps, browser, reports, and saved MCP resources.","If you hit the concurrency limit, add 2 browsers for $5/month with mcp-scraper-cli billing concurrency checkout.","",`${t("Ready.","lime",e)} Install the combined MCP server with one command:`,"",t("Setup doctor","amber",e),"npx -y -p mcp-scraper@latest mcp-scraper-cli doctor","",t("Hosted profile setup","amber",e),'In your MCP client, call browser_profile_connect with email="seo@example.com" and domain="chatgpt.com".',"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.","",t("Claude Code one-command setup","amber",e),u,"Then fully exit Claude Code and open a new Claude terminal. Check with: claude mcp list","",t("Codex config","amber",e),h,"",t("Claude Desktop Extension","amber",e),"Download: https://mcpscraper.dev/downloads/mcp-scraper.mcpb","",t("Safety note:","muted",e),"mcp-scraper prints this card only when stdin/stdout are an interactive TTY. In MCP clients it writes only JSON-RPC to stdout.","Use --stdio or MCP_SCRAPER_FORCE_STDIO=1 to force server mode from a terminal.",""].join(`
17
- `)}var c="1.0.3";var m=process.argv.includes("--no-color")||process.env.NO_COLOR!==void 0||process.env.FORCE_COLOR==="0"||!process.stdout.isTTY,f=process.argv.includes("--help")||process.argv.includes("-h");f&&(process.stdout.write(["Usage: mcp-scraper-install [--no-color]","","Prints the branded MCP Scraper terminal install card and copyable install commands.","mcp-scraper prints the same card in a human terminal and runs as the MCP stdio server in clients.",""].join(`
17
+ `)}var c="1.0.4";var m=process.argv.includes("--no-color")||process.env.NO_COLOR!==void 0||process.env.FORCE_COLOR==="0"||!process.stdout.isTTY,f=process.argv.includes("--help")||process.argv.includes("-h");f&&(process.stdout.write(["Usage: mcp-scraper-install [--no-color]","","Prints the branded MCP Scraper terminal install card and copyable install commands.","mcp-scraper prints the same card in a human terminal and runs as the MCP stdio server in clients.",""].join(`
18
18
  `)),process.exit(0));process.stdout.write(o({version:c,color:!m,apiKeyConfigured:!!process.env.MCP_SCRAPER_API_KEY?.trim()}));
@@ -3,7 +3,7 @@ import{createInterface as j}from"node:readline";import{readFileSync as N}from"no
3
3
  `));return y=[],c.id===e.id&&("result"in c||"error"in c)?a(c):(s?.(c),null)};try{for(;;){let{done:c,value:g}=await m.read();h+=_.decode(g,{stream:!c}),c&&h&&!h.endsWith(`
4
4
  `)&&(h+=`
5
5
  `);let P;for(;(P=h.indexOf(`
6
- `))>=0;){let C=h.slice(0,P).replace(/\r$/,"");if(h=h.slice(P+1),C===""){let T=A();if(T)return T}else C.startsWith("data:")&&y.push(C.slice(5).replace(/^ /,""))}if(c){let C=A();if(C)return C;break}}}finally{await m.cancel().catch(()=>{}),m.releaseLock()}throw new Error("MCP Scraper event stream ended without a response")}async request(e,s){let t=await this.relay({jsonrpc:"2.0",id:++this.nextId,method:e,params:s});if(!t)throw new Error("MCP Scraper returned no response");if(t.error)throw new Error(typeof t.error.message=="string"?t.error.message:"MCP Scraper request failed");return t.result}callTool(e,s={}){return this.request("tools/call",{name:e,arguments:s})}};function w(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}var v="1.0.3";function O(r){if(process.argv.includes("--help")||process.argv.includes("-h")||!process.argv.includes("--stdio")&&process.stdin.isTTY&&process.stdout.isTTY){process.stdout.write(`MCP Scraper ${v}
6
+ `))>=0;){let C=h.slice(0,P).replace(/\r$/,"");if(h=h.slice(P+1),C===""){let T=A();if(T)return T}else C.startsWith("data:")&&y.push(C.slice(5).replace(/^ /,""))}if(c){let C=A();if(C)return C;break}}}finally{await m.cancel().catch(()=>{}),m.releaseLock()}throw new Error("MCP Scraper event stream ended without a response")}async request(e,s){let t=await this.relay({jsonrpc:"2.0",id:++this.nextId,method:e,params:s});if(!t)throw new Error("MCP Scraper returned no response");if(t.error)throw new Error(typeof t.error.message=="string"?t.error.message:"MCP Scraper request failed");return t.result}callTool(e,s={}){return this.request("tools/call",{name:e,arguments:s})}};function w(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:void 0}var v="1.0.4";function O(r){if(process.argv.includes("--help")||process.argv.includes("-h")||!process.argv.includes("--stdio")&&process.stdin.isTTY&&process.stdout.isTTY){process.stdout.write(`MCP Scraper ${v}
7
7
  Authenticated hosted MCP client. Set MCP_SCRAPER_API_KEY and connect with --stdio.
8
8
  `);return}let e=process.env.MCP_SCRAPER_API_KEY?.trim();if(!e){for(let i of[process.env.MCP_SCRAPER_KEY_PATH,L(K(),".mcp-scraper-key")])if(i)try{if(e=N(i,"utf8").trim(),e)break}catch{}}let s;try{s=new M({apiKey:e})}catch{process.stderr.write(`MCP_SCRAPER_API_KEY is required
9
9
  `),process.exitCode=1;return}let t=new Map,n=i=>process.stdout.write(JSON.stringify(i)+`
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "engines": {
27
27
  "node": ">=20.18.1"
28
28
  },
29
- "version": "1.0.3",
29
+ "version": "1.0.4",
30
30
  "license": "ISC",
31
31
  "files": [
32
32
  "dist",