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

Function createConfigParser

tests/McpServer.test.ts:38–50  ·  view source on GitHub ↗
(argv: string[] = [])

Source from the content-addressed store, hash-verified

36 });
37
38 function createConfigParser(argv: string[] = []) {
39 const locator = new ConfigLocator();
40 sinon.stub(locator, 'locate').returns(undefined);
41 return new ConfigParser(
42 '1.0.0',
43 ['node', 'script.js', ...argv],
44 {
45 CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: 'true',
46 },
47 false,
48 locator,
49 );
50 }
51
52 function parseConfig(argv: string[] = []) {
53 return createConfigParser(argv).parseConfig();

Callers 2

parseConfigFunction · 0.85
createTestServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected