mcp-camoufox 0.6.1 → 0.6.2

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 (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -138,8 +138,13 @@ async function ensureCamoufoxBinary() {
138
138
  console.error("[mcp-camoufox] Please wait 2-5 minutes...");
139
139
  console.error("=".repeat(60) + "\n");
140
140
  const cmd = platform === "win32" ? "npx.cmd" : "npx";
141
+ // CRITICAL: redirect child stdout → parent stderr.
142
+ // stdio:'inherit' would pollute MCP JSON-RPC stdout channel with download
143
+ // progress text, causing client parse errors like:
144
+ // "invalid character 'C' looking for beginning of value"
145
+ // (issue #1: 'C' = first byte of "Camoufox..." progress message).
141
146
  execSync(`${cmd} camoufox-js fetch`, {
142
- stdio: "inherit", timeout: 900000,
147
+ stdio: ["ignore", 2, 2], timeout: 900000,
143
148
  env: { ...process.env, npm_config_yes: "true" },
144
149
  });
145
150
  console.error("\n[mcp-camoufox] Download complete.\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-camoufox",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "MCP server for stealth browser automation via Camoufox — 79 tools, Chrome DevTools MCP-level power with anti-bot stealth",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",