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

Method withFileArgs

src/config/ServerConfig.ts:280–288  ·  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

278 * preserving this config's CLI arguments, config path, and environment.
279 */
280 withFileArgs(fileArgs: Partial<ParsedArguments>): ServerConfig {
281 return ServerConfig.create({
282 cliArgs: {...this.#cliArgs},
283 fileArgs,
284 configPath: this.#configPath,
285 env: this.#env,
286 suppressUsageStatisticsNotice: true,
287 });
288 }
289
290 /**
291 * 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