MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / withFileArgs

Method withFileArgs

src/config/ServerConfig.ts:286–294  ·  view source on GitHub ↗

* Produces a new ServerConfig with updated config-file arguments, * preserving this config's CLI arguments, config path, and environment.

(fileArgs: Partial<ParsedArguments>)

Source from the content-addressed store, hash-verified

284 * preserving this config's CLI arguments, config path, and environment.
285 */
286 withFileArgs(fileArgs: Partial<ParsedArguments>): ServerConfig {
287 return ServerConfig.create({
288 cliArgs: {...this.#cliArgs},
289 fileArgs,
290 configPath: this.#configPath,
291 env: this.#env,
292 suppressUsageStatisticsNotice: true,
293 });
294 }
295
296 /**
297 * Produces a new {@link ServerConfig} that takes reloadable options from

Callers 2

#reloadConfigMethod · 0.80

Calls 1

createMethod · 0.45

Tested by

no test coverage detected