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

Function createHandler

tests/ToolHandler.test.ts:661–668  ·  view source on GitHub ↗
(tool: AnyToolDefinition, mockContext: McpContext)

Source from the content-addressed store, hash-verified

659 }
660
661 function createHandler(tool: AnyToolDefinition, mockContext: McpContext) {
662 return new ToolHandler(
663 tool,
664 parseConfig(),
665 async () => mockContext,
666 sinon.spy(),
667 );
668 }
669
670 it('serializes exclusive tools', async () => {
671 const mockContext = createContext();

Callers 1

Calls 5

createToolsFunction · 0.85
createMockMcpContextFunction · 0.85
failMethod · 0.80
parseConfigFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected