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

Function createHandler

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

Source from the content-addressed store, hash-verified

660 }
661
662 function createHandler(tool: AnyToolDefinition, mockContext: McpContext) {
663 return new ToolHandler(
664 tool,
665 parseConfig(),
666 async () => mockContext,
667 sinon.spy(),
668 );
669 }
670
671 it('serializes exclusive tools', async () => {
672 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