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

Function parseConfig

tests/ToolHandler.test.ts:62–74  ·  view source on GitHub ↗
(argv: string[] = [])

Source from the content-addressed store, hash-verified

60 });
61
62 function parseConfig(argv: string[] = []) {
63 const locator = new ConfigLocator();
64 sinon.stub(locator, 'locate').returns(undefined);
65 return new ConfigParser(
66 '1.0.0',
67 ['node', 'script.js', ...argv],
68 {
69 CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS: 'true',
70 },
71 false,
72 locator,
73 ).parseConfig();
74 }
75
76 it('calls getPageById for page scoped tools when pageId is provided', async () => {
77 let handlerCalled = false;

Callers 4

createHandlerFunction · 0.70
createPageToolFunction · 0.70
createBrowserlessToolFunction · 0.70

Calls 1

parseConfigMethod · 0.80

Tested by

no test coverage detected