mcp-scraper 0.3.2 → 0.3.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/README.md +11 -7
- package/dist/bin/api-server.cjs +13 -6
- 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 +21 -18
- 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 +24 -19
- 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 +4 -2
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-BLB4CEFA.js +7 -0
- package/dist/chunk-BLB4CEFA.js.map +1 -0
- package/dist/{chunk-HRTCMLZB.js → chunk-IZ3YH6HC.js} +22 -19
- package/dist/chunk-IZ3YH6HC.js.map +1 -0
- package/dist/{chunk-KO223PSJ.js → chunk-YFR36CPB.js} +5 -3
- package/dist/chunk-YFR36CPB.js.map +1 -0
- package/dist/{server-N5LM3PEO.js → server-DU3W7QTG.js} +12 -7
- package/dist/{server-N5LM3PEO.js.map → server-DU3W7QTG.js.map} +1 -1
- package/docs/mcp-tool-craft-lint.generated.md +1 -1
- package/docs/mcp-tool-manifest.generated.json +10 -10
- package/package.json +1 -1
- package/dist/chunk-HRTCMLZB.js.map +0 -1
- package/dist/chunk-KO223PSJ.js.map +0 -1
- package/dist/chunk-VB65G7PS.js +0 -7
- package/dist/chunk-VB65G7PS.js.map +0 -1
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
harvestTimeoutBudget,
|
|
100
100
|
liveWebToolAnnotations,
|
|
101
101
|
outputBaseDir
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YFR36CPB.js";
|
|
103
103
|
import {
|
|
104
104
|
CaptchaError,
|
|
105
105
|
RECAPTCHA_INSTRUCTIONS,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
loadImportedBrowserProfile,
|
|
141
141
|
localBrowserModeEnabled
|
|
142
142
|
} from "./chunk-DUEW4EOO.js";
|
|
143
|
-
import "./chunk-
|
|
143
|
+
import "./chunk-BLB4CEFA.js";
|
|
144
144
|
|
|
145
145
|
// src/api/outbound-sanitize.ts
|
|
146
146
|
var KEY_RENAMES = {
|
|
@@ -13577,11 +13577,16 @@ async function ensureProfile(k, name) {
|
|
|
13577
13577
|
if (!isProfileConflict(err)) throw err;
|
|
13578
13578
|
}
|
|
13579
13579
|
}
|
|
13580
|
+
function explicitProxyId(value) {
|
|
13581
|
+
const trimmed = value?.trim();
|
|
13582
|
+
return trimmed || void 0;
|
|
13583
|
+
}
|
|
13580
13584
|
async function createSession(opts = {}) {
|
|
13581
13585
|
const k = client();
|
|
13582
|
-
const resolvedProxyId = opts.proxyId
|
|
13586
|
+
const resolvedProxyId = explicitProxyId(opts.proxyId);
|
|
13583
13587
|
const resolvedProfileName = opts.profileName ?? browserServiceProfileName();
|
|
13584
13588
|
const resolvedSaveProfileChanges = opts.saveProfileChanges ?? browserServiceProfileSaveChanges();
|
|
13589
|
+
const disableDefaultProxy = opts.disableDefaultProxy ?? !resolvedProxyId;
|
|
13585
13590
|
if (resolvedProfileName && resolvedSaveProfileChanges === true) {
|
|
13586
13591
|
await ensureProfile(k, resolvedProfileName);
|
|
13587
13592
|
}
|
|
@@ -13597,7 +13602,7 @@ async function createSession(opts = {}) {
|
|
|
13597
13602
|
} : {}
|
|
13598
13603
|
});
|
|
13599
13604
|
const runtimeSessionId = browser.session_id;
|
|
13600
|
-
if (
|
|
13605
|
+
if (disableDefaultProxy) {
|
|
13601
13606
|
try {
|
|
13602
13607
|
await k.browsers.update(runtimeSessionId, { disable_default_proxy: true });
|
|
13603
13608
|
} catch {
|
|
@@ -13989,7 +13994,7 @@ function buildBrowserAgentRoutes() {
|
|
|
13989
13994
|
proxyId: typeof body.proxy_id === "string" ? body.proxy_id : void 0,
|
|
13990
13995
|
profileName: typeof body.profile === "string" ? body.profile : void 0,
|
|
13991
13996
|
saveProfileChanges: typeof body.save_profile_changes === "boolean" ? body.save_profile_changes : void 0,
|
|
13992
|
-
disableDefaultProxy: body.disable_default_proxy ===
|
|
13997
|
+
disableDefaultProxy: typeof body.disable_default_proxy === "boolean" ? body.disable_default_proxy : void 0,
|
|
13993
13998
|
viewport: body.viewport && typeof body.viewport === "object" ? body.viewport : void 0
|
|
13994
13999
|
});
|
|
13995
14000
|
runtimeSessionId = created.runtimeSessionId;
|
|
@@ -14405,7 +14410,7 @@ async function selectSession(id) {
|
|
|
14405
14410
|
}
|
|
14406
14411
|
|
|
14407
14412
|
async function openSession() {
|
|
14408
|
-
const r = await api('POST', '/sessions', { label: 'console' });
|
|
14413
|
+
const r = await api('POST', '/sessions', { label: 'console', disable_default_proxy: true });
|
|
14409
14414
|
if (r.ok) { await refreshSessions(); selectSession(r.data.session_id); }
|
|
14410
14415
|
else alert('Open failed: ' + JSON.stringify(r.data));
|
|
14411
14416
|
}
|
|
@@ -15722,4 +15727,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
15722
15727
|
export {
|
|
15723
15728
|
app
|
|
15724
15729
|
};
|
|
15725
|
-
//# sourceMappingURL=server-
|
|
15730
|
+
//# sourceMappingURL=server-DU3W7QTG.js.map
|