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
@@ -17,7 +17,7 @@ loadDotEnv();
17
17
  async function main() {
18
18
  const [{ serve }, { app }, { startWorker }, { migrate }] = await Promise.all([
19
19
  import("@hono/node-server"),
20
- import("../server-DU3W7QTG.js"),
20
+ import("../server-YSKBD2VX.js"),
21
21
  import("../worker-56IXWOQU.js"),
22
22
  import("../db-BE4JVB3V.js")
23
23
  ]);
@@ -1436,7 +1436,7 @@ var LocalBrowserAgentService = class {
1436
1436
  };
1437
1437
 
1438
1438
  // src/version.ts
1439
- var PACKAGE_VERSION = "0.3.4";
1439
+ var PACKAGE_VERSION = "0.3.6";
1440
1440
 
1441
1441
  // src/mcp/browser-agent-tool-schemas.ts
1442
1442
  var import_zod = require("zod");
@@ -2196,11 +2196,11 @@ function registerBrowserAgentMcpTools(server2, opts) {
2196
2196
  server2.registerTool(
2197
2197
  "browser_profile_list",
2198
2198
  {
2199
- title: "List Local Chrome Profiles",
2200
- description: "List local Chrome profile metadata visible to this MCP server: account email, Chrome profile directory, local path, and a suggested managed browser profile name. This reads Chrome Local State only; it does not read cookies, passwords, browsing history, or copy local browser state. Use browser_profile_import when the user wants MCP Scraper to clone a local Chrome profile for local browser mode.",
2199
+ title: "Developer: List Local Chrome Profiles",
2200
+ description: "Developer/local-machine helper only. List local Chrome profile metadata visible to this MCP server: account email, Chrome profile directory, local path, and a suggested managed browser profile name. This reads Chrome Local State only; it does not read cookies, passwords, browsing history, or copy local browser state. Do not use this for customer AI visibility setup or reconnects; use browser_profile_onboard at Google and provide the hosted watch_url instead.",
2201
2201
  inputSchema: BrowserProfileListInputSchema,
2202
2202
  outputSchema: BrowserProfileListOutputSchema,
2203
- annotations: annotations("List Local Chrome Profiles", true)
2203
+ annotations: annotations("Developer: List Local Chrome Profiles", true)
2204
2204
  },
2205
2205
  async (input) => {
2206
2206
  try {
@@ -2221,11 +2221,11 @@ function registerBrowserAgentMcpTools(server2, opts) {
2221
2221
  server2.registerTool(
2222
2222
  "browser_profile_import",
2223
2223
  {
2224
- title: "Import Local Chrome Profile",
2225
- description: "Clone one local Chrome profile into MCP Scraper managed storage for local browser mode. This copies browser state files such as cookies, history, local storage, session storage, and password database metadata into ~/.mcp-scraper/browser-profiles by default; it skips cache and lock files and never prints cookie or password values. Use this when the user wants browser_open to run locally with their existing logged-in Chrome state.",
2224
+ title: "Developer: Import Local Chrome Profile",
2225
+ description: "Developer/local-machine helper only. Clone one local Chrome profile into MCP Scraper managed storage for local browser mode. This copies browser state files such as cookies, history, local storage, session storage, and password database metadata into ~/.mcp-scraper/browser-profiles by default; it skips cache and lock files and never prints cookie or password values. Do not use this for customer AI visibility setup or reconnects; use browser_profile_onboard at Google and provide the hosted watch_url instead.",
2226
2226
  inputSchema: BrowserProfileImportInputSchema,
2227
2227
  outputSchema: BrowserProfileImportOutputSchema,
2228
- annotations: { title: "Import Local Chrome Profile", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false }
2228
+ annotations: { title: "Developer: Import Local Chrome Profile", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false }
2229
2229
  },
2230
2230
  async (input) => {
2231
2231
  try {
@@ -2250,7 +2250,7 @@ function registerBrowserAgentMcpTools(server2, opts) {
2250
2250
  "Restart the MCP client so it starts the local browser mode process.",
2251
2251
  "Call browser_open with the same MCP server; it will open a local Chrome window using the cloned profile."
2252
2252
  ],
2253
- hint: "The clone is local to this machine. Re-run browser_profile_sync after logging into new sites in normal Chrome."
2253
+ hint: "Developer-only local clone. For customer auth setup, use browser_profile_onboard at Google, provide the hosted watch_url, then browser_close to save the hosted profile."
2254
2254
  });
2255
2255
  } catch (err) {
2256
2256
  return errorResult("browser_profile_import", { error: err instanceof Error ? err.message : String(err) });
@@ -2260,11 +2260,11 @@ function registerBrowserAgentMcpTools(server2, opts) {
2260
2260
  server2.registerTool(
2261
2261
  "browser_profile_sync",
2262
2262
  {
2263
- title: "Sync Local Chrome Profile",
2264
- description: "Refresh an existing MCP Scraper managed local browser profile from the source Chrome profile recorded in its manifest. This overwrites the managed clone, copies browser state files again, skips cache and lock files, and never prints cookie or password values.",
2263
+ title: "Developer: Sync Local Chrome Profile",
2264
+ description: "Developer/local-machine helper only. Refresh an existing MCP Scraper managed local browser profile from the source Chrome profile recorded in its manifest. This overwrites the managed clone, copies browser state files again, skips cache and lock files, and never prints cookie or password values. Do not use this for customer AI visibility setup or reconnects; use browser_profile_onboard at Google and provide the hosted watch_url instead.",
2265
2265
  inputSchema: BrowserProfileSyncInputSchema,
2266
2266
  outputSchema: BrowserProfileSyncOutputSchema,
2267
- annotations: { title: "Sync Local Chrome Profile", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false }
2267
+ annotations: { title: "Developer: Sync Local Chrome Profile", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false }
2268
2268
  },
2269
2269
  async (input) => {
2270
2270
  try {
@@ -2278,7 +2278,7 @@ function registerBrowserAgentMcpTools(server2, opts) {
2278
2278
  session_id: null,
2279
2279
  profile: result.profile,
2280
2280
  source_profile: result.sourceProfile,
2281
- hint: `Refreshed ${result.profile.name}. Restart local browser sessions that were using this profile.`
2281
+ hint: `Developer-only local clone refreshed for ${result.profile.name}. Customer reconnects should use browser_profile_onboard with the same hosted profile name.`
2282
2282
  });
2283
2283
  } catch (err) {
2284
2284
  return errorResult("browser_profile_sync", { error: err instanceof Error ? err.message : String(err) });