mcp-scraper 0.3.13 → 0.3.14
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/dist/bin/api-server.cjs +1 -1
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/browser-agent-stdio-server.cjs +4 -4
- package/dist/bin/browser-agent-stdio-server.cjs.map +1 -1
- package/dist/bin/browser-agent-stdio-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.cjs +4 -4
- package/dist/bin/mcp-scraper-combined-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-scraper-combined-stdio-server.js +3 -3
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +1 -1
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-3QHZPR4U.js +7 -0
- package/dist/chunk-3QHZPR4U.js.map +1 -0
- package/dist/{chunk-QAOIH5U2.js → chunk-AX7UBYLG.js} +5 -5
- package/dist/chunk-AX7UBYLG.js.map +1 -0
- package/dist/{chunk-YGV2XZDT.js → chunk-HM6FHV5U.js} +2 -2
- package/dist/{server-LX65PB7D.js → server-ILIVSPNY.js} +3 -3
- package/docs/mcp-tool-craft-lint.generated.md +1 -1
- package/docs/mcp-tool-manifest.generated.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-BEZJ4G32.js +0 -7
- package/dist/chunk-BEZJ4G32.js.map +0 -1
- package/dist/chunk-QAOIH5U2.js.map +0 -1
- /package/dist/{chunk-YGV2XZDT.js.map → chunk-HM6FHV5U.js.map} +0 -0
- /package/dist/{server-LX65PB7D.js.map → server-ILIVSPNY.js.map} +0 -0
package/dist/bin/api-server.js
CHANGED
|
@@ -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-
|
|
20
|
+
import("../server-ILIVSPNY.js"),
|
|
21
21
|
import("../worker-FG7ZWEGA.js"),
|
|
22
22
|
import("../db-BE4JVB3V.js")
|
|
23
23
|
]);
|
|
@@ -178,7 +178,7 @@ render();
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
// src/version.ts
|
|
181
|
-
var PACKAGE_VERSION = "0.3.
|
|
181
|
+
var PACKAGE_VERSION = "0.3.14";
|
|
182
182
|
|
|
183
183
|
// src/mcp/browser-agent-tool-schemas.ts
|
|
184
184
|
var import_zod = require("zod");
|
|
@@ -875,13 +875,13 @@ function registerBrowserAgentMcpTools(server2, opts) {
|
|
|
875
875
|
const baseUrl2 = opts.baseUrl.replace(/\/$/, "");
|
|
876
876
|
const consoleBase = (opts.consoleBaseUrl ?? opts.baseUrl).replace(/\/$/, "");
|
|
877
877
|
const timeoutMs = opts.timeoutMs ?? 9e4;
|
|
878
|
-
async function req(method, path, body) {
|
|
878
|
+
async function req(method, path, body, requestTimeoutMs = timeoutMs) {
|
|
879
879
|
try {
|
|
880
880
|
const res = await fetch(`${baseUrl2}${path}`, {
|
|
881
881
|
method,
|
|
882
882
|
headers: { "Content-Type": "application/json", "x-api-key": opts.apiKey },
|
|
883
883
|
body: body ? JSON.stringify(body) : void 0,
|
|
884
|
-
signal: AbortSignal.timeout(
|
|
884
|
+
signal: AbortSignal.timeout(requestTimeoutMs)
|
|
885
885
|
});
|
|
886
886
|
const data = await res.json().catch(() => ({}));
|
|
887
887
|
return { ok: res.ok, data };
|
|
@@ -1467,7 +1467,7 @@ function registerBrowserAgentMcpTools(server2, opts) {
|
|
|
1467
1467
|
first_party_domain: input.first_party_domain,
|
|
1468
1468
|
reset: input.reset,
|
|
1469
1469
|
export: input.export
|
|
1470
|
-
});
|
|
1470
|
+
}, Math.max(timeoutMs, (input.wait_ms ?? (input.prompt ? 9e4 : 8e3)) + 3e4));
|
|
1471
1471
|
if (!res.ok) return errorResult("browser_capture_fanout", res.data, input.session_id);
|
|
1472
1472
|
const hosted = res.data?.result ?? res.data;
|
|
1473
1473
|
let exports2 = res.data?.exports ?? null;
|