mcp-scraper 0.3.4 → 0.3.6

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.
Files changed (37) hide show
  1. package/README.md +10 -26
  2. package/dist/bin/api-server.cjs +7 -9
  3. package/dist/bin/api-server.cjs.map +1 -1
  4. package/dist/bin/api-server.js +1 -1
  5. package/dist/bin/browser-agent-stdio-server.cjs +12 -12
  6. package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
  7. package/dist/bin/browser-agent-stdio-server.js +2 -2
  8. package/dist/bin/mcp-scraper-cli.cjs +10 -11
  9. package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
  10. package/dist/bin/mcp-scraper-cli.js +10 -11
  11. package/dist/bin/mcp-scraper-cli.js.map +1 -1
  12. package/dist/bin/mcp-scraper-combined-stdio-server.cjs +19 -19
  13. package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
  14. package/dist/bin/mcp-scraper-combined-stdio-server.js +4 -4
  15. package/dist/bin/mcp-scraper-install.cjs +8 -8
  16. package/dist/bin/mcp-scraper-install.cjs.map +1 -1
  17. package/dist/bin/mcp-scraper-install.js +2 -2
  18. package/dist/bin/mcp-stdio-server.cjs +1 -1
  19. package/dist/bin/mcp-stdio-server.cjs.map +1 -1
  20. package/dist/bin/mcp-stdio-server.js +2 -2
  21. package/dist/chunk-IHXHQL53.js +7 -0
  22. package/dist/chunk-IHXHQL53.js.map +1 -0
  23. package/dist/{chunk-YFR36CPB.js → chunk-ROZEDHAA.js} +2 -2
  24. package/dist/{chunk-C3FGVJWH.js → chunk-RVYHP7QN.js} +8 -8
  25. package/dist/chunk-RVYHP7QN.js.map +1 -0
  26. package/dist/{chunk-IZ3YH6HC.js → chunk-TK4D2BZ5.js} +13 -13
  27. package/dist/chunk-TK4D2BZ5.js.map +1 -0
  28. package/dist/{server-DU3W7QTG.js → server-YSKBD2VX.js} +9 -11
  29. package/dist/{server-DU3W7QTG.js.map → server-YSKBD2VX.js.map} +1 -1
  30. package/docs/mcp-tool-craft-lint.generated.md +1 -1
  31. package/docs/mcp-tool-manifest.generated.json +12 -15
  32. package/package.json +1 -1
  33. package/dist/chunk-BLB4CEFA.js +0 -7
  34. package/dist/chunk-BLB4CEFA.js.map +0 -1
  35. package/dist/chunk-C3FGVJWH.js.map +0 -1
  36. package/dist/chunk-IZ3YH6HC.js.map +0 -1
  37. /package/dist/{chunk-YFR36CPB.js.map → chunk-ROZEDHAA.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildBrowserAgentMcpServer
4
- } from "../chunk-IZ3YH6HC.js";
4
+ } from "../chunk-TK4D2BZ5.js";
5
5
  import "../chunk-NXRWFOEZ.js";
6
6
  import "../chunk-WN7PBKMV.js";
7
7
  import "../chunk-DUEW4EOO.js";
8
- import "../chunk-BLB4CEFA.js";
8
+ import "../chunk-IHXHQL53.js";
9
9
 
10
10
  // bin/browser-agent-stdio-server.ts
11
11
  import { readFileSync } from "fs";
@@ -8,7 +8,7 @@ var import_promises6 = require("fs/promises");
8
8
  var import_node_path5 = require("path");
9
9
 
10
10
  // src/version.ts
11
- var PACKAGE_VERSION = "0.3.4";
11
+ var PACKAGE_VERSION = "0.3.6";
12
12
 
13
13
  // src/lib/chrome-profiles.ts
14
14
  var import_promises = require("fs/promises");
@@ -2368,8 +2368,8 @@ function buildHumanCli() {
2368
2368
  result.next_step ?? "Complete checkout, then retry the MCP request."
2369
2369
  ].join("\n"), false);
2370
2370
  });
2371
- const browser = program.command("browser").description("Inspect and manage browser-agent profile setup helpers.");
2372
- browser.command("profiles").description("List local Chrome profiles and suggested managed browser profile names.").option("--email <email>", "Filter by Chrome account email or displayed profile name").option("--user-data-dir <path>", "Chrome user data directory").option("--json", "Print machine-readable JSON").action(async (opts) => {
2371
+ const browser = program.command("browser").description("Inspect developer-only local browser helpers. Customer auth uses hosted browser_profile_onboard.");
2372
+ browser.command("profiles").description("Developer-only: list local Chrome profiles and suggested managed browser profile names.").option("--email <email>", "Filter by Chrome account email or displayed profile name").option("--user-data-dir <path>", "Chrome user data directory").option("--json", "Print machine-readable JSON").action(async (opts) => {
2373
2373
  const profiles = await listLocalChromeProfiles(opts.userDataDir, opts.email);
2374
2374
  if (opts.json) {
2375
2375
  writeOutput({ profiles }, true);
@@ -2380,21 +2380,19 @@ function buildHumanCli() {
2380
2380
  return;
2381
2381
  }
2382
2382
  const lines = [
2383
- "Local Chrome profiles:",
2383
+ "Developer-only local Chrome profiles:",
2384
2384
  ...profiles.map((profile) => [
2385
2385
  `${profile.email || "(no email)"} ${profile.chromeProfileDirectory} ${profile.displayName}`,
2386
2386
  ` suggested profile name: ${profile.recommendedKernelProfileName}`,
2387
2387
  ` local Chrome path: ${profile.chromeProfilePath}`
2388
2388
  ].join("\n")),
2389
2389
  "",
2390
- "To clone a real local Chrome profile for MCP local browser mode:",
2391
- " mcp-scraper-cli browser import-chrome --email you@example.com --name <suggested profile name>",
2392
- "Then apply Claude Code config with:",
2393
- " MCP_SCRAPER_API_KEY=sk_live_your_key mcp-scraper-cli agent install claude --apply --browser-mode local --browser-profile <suggested profile name>"
2390
+ "Customer auth setup does not use local Chrome import.",
2391
+ 'In the MCP client, call browser_profile_onboard with url="https://google.com/", give the user the watch_url, then call browser_close after login to save the hosted profile.'
2394
2392
  ];
2395
2393
  writeOutput(lines.join("\n"), false);
2396
2394
  });
2397
- browser.command("import-chrome").description("Clone a local Chrome profile into MCP Scraper managed local browser storage.").option("--email <email>", "Chrome account email or displayed profile name to import").option("--name <name>", "Managed MCP Scraper browser profile name").option("--chrome-profile <directory>", "Chrome profile directory, for example Default or Profile 1").option("--user-data-dir <path>", "Source Chrome user data directory").option("--output-dir <path>", "Managed profile base directory").option("--browser-executable <path>", "Chrome executable path for local launches").option("--overwrite", "Overwrite an existing managed profile clone").option("--json", "Print machine-readable JSON").action(async (opts) => {
2395
+ browser.command("import-chrome").description("Developer-only: clone a local Chrome profile into MCP Scraper managed local browser storage.").option("--email <email>", "Chrome account email or displayed profile name to import").option("--name <name>", "Managed MCP Scraper browser profile name").option("--chrome-profile <directory>", "Chrome profile directory, for example Default or Profile 1").option("--user-data-dir <path>", "Source Chrome user data directory").option("--output-dir <path>", "Managed profile base directory").option("--browser-executable <path>", "Chrome executable path for local launches").option("--overwrite", "Overwrite an existing managed profile clone").option("--json", "Print machine-readable JSON").action(async (opts) => {
2398
2396
  const result = await importChromeProfile({
2399
2397
  email: opts.email,
2400
2398
  name: opts.name,
@@ -2413,10 +2411,11 @@ function buildHumanCli() {
2413
2411
  `Source: ${result.sourceProfile.email || result.sourceProfile.displayName || result.sourceProfile.chromeProfileDirectory} (${result.sourceProfile.chromeProfileDirectory})`,
2414
2412
  `Managed user data dir: ${result.profile.userDataDir}`,
2415
2413
  "",
2416
- "Install/config command:",
2414
+ "Developer-only local install/config command:",
2417
2415
  ` MCP_SCRAPER_API_KEY=sk_live_your_key mcp-scraper-cli agent install claude --apply --browser-mode local --browser-profile ${result.profile.name}`,
2418
2416
  "",
2419
- "Fully exit Claude Code and start a new Claude terminal after applying config. Re-run sync-profile after signing into new sites in normal Chrome."
2417
+ "Customer auth setup should use browser_profile_onboard at Google, the hosted watch_url, and browser_close to save the hosted profile.",
2418
+ "Fully exit Claude Code and start a new Claude terminal after applying developer local config. Re-run sync-profile after signing into new sites in normal Chrome."
2420
2419
  ].join("\n"), false);
2421
2420
  });
2422
2421
  browser.command("sync-profile <name>").description("Refresh a managed local browser profile from its recorded source Chrome profile.").option("--output-dir <path>", "Managed profile base directory").option("--browser-executable <path>", "Chrome executable path for local launches").option("--json", "Print machine-readable JSON").action(async (name, opts) => {