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

Function parseConfig

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

Source from the content-addressed store, hash-verified

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

Callers 6

createHandlerFunction · 0.70
createPageToolFunction · 0.70
handlePageToolCallFunction · 0.70
createBrowserlessToolFunction · 0.70

Calls 1

parseConfigMethod · 0.80

Tested by

no test coverage detected