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

Method constructor

src/ToolHandler.ts:274–284  ·  view source on GitHub ↗
(
    tool: AnyToolDefinition,
    config: ReadonlyServerConfig,
    private readonly getContext: () => Promise<McpContext>,
    private readonly abandonPendingBrowserAttemptOnTimeout: () => void,
  )

Source from the content-addressed store, hash-verified

272 #disabledReason?: string;
273
274 constructor(
275 tool: AnyToolDefinition,
276 config: ReadonlyServerConfig,
277 private readonly getContext: () => Promise<McpContext>,
278 private readonly abandonPendingBrowserAttemptOnTimeout: () => void,
279 ) {
280 this.#tool = tool;
281 this.#config = config;
282 this.#registeredInputSchema = zod.object(tool.schema).strict();
283 this.#updateStatus(tool);
284 }
285
286 get registeredInputSchema(): zod.ZodObject<
287 zod.ZodRawShape,

Callers

nothing calls this directly

Calls 1

#updateStatusMethod · 0.95

Tested by

no test coverage detected