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

Method constructor

src/ToolHandler.ts:249–259  ·  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

247 #disabledReason?: string;
248
249 constructor(
250 tool: AnyToolDefinition,
251 config: ReadonlyServerConfig,
252 private readonly getContext: () => Promise<McpContext>,
253 private readonly abandonPendingBrowserAttemptOnTimeout: () => void,
254 ) {
255 this.#tool = tool;
256 this.#config = config;
257 this.#registeredInputSchema = zod.object(tool.schema).strict();
258 this.#updateStatus(tool);
259 }
260
261 get registeredInputSchema(): zod.ZodObject<
262 zod.ZodRawShape,

Callers

nothing calls this directly

Calls 1

#updateStatusMethod · 0.95

Tested by

no test coverage detected