mcp-browser-dev-tools 0.2.2 → 0.4.0

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/src/config.mjs CHANGED
@@ -1,3 +1,7 @@
1
+ import path from "node:path";
2
+
3
+ import { parseToolSet } from "./tool-sets.mjs";
4
+
1
5
  export const DEFAULT_CDP_BASE_URL = "http://127.0.0.1:9222";
2
6
  export const DEFAULT_FIREFOX_BIDI_WS_URL = "ws://127.0.0.1:9222";
3
7
  export const DEFAULT_EVENT_BUFFER_SIZE = 200;
@@ -129,8 +133,14 @@ export function loadConfig(env = process.env) {
129
133
  logLevel: logging.logLevel,
130
134
  debugStdio: logging.debugStdio,
131
135
  logFile: logging.logFile,
136
+ tools: parseToolSet(env.MCP_BROWSER_TOOLS),
132
137
  userDataDir: env.MCP_BROWSER_USER_DATA_DIR?.trim() || null,
138
+ uploadDirs: (env.MCP_BROWSER_UPLOAD_DIRS ?? "")
139
+ .split(path.delimiter)
140
+ .map((dir) => dir.trim())
141
+ .filter(Boolean),
133
142
  timingLogFile: env.MCP_BROWSER_TIMING_LOG?.trim() || null,
143
+ ffmpegPath: env.MCP_BROWSER_FFMPEG?.trim() || null,
134
144
  protocolVersion:
135
145
  env.MCP_PROTOCOL_VERSION?.trim() || DEFAULT_PROTOCOL_VERSION,
136
146
  };