@dvcol/cdb-mcp
v0.3.0
Published
CDB (Chrome Debugger Bridge) Model Context Protocol adapter.
Maintainers
Readme
@dvcol/cdb-mcp
Node 24+ Model Context Protocol adapter for principal-scoped Chrome Debugger Bridge tools.
pnpm add @dvcol/cdb-mcpimport { createCdbToolSession } from '@dvcol/cdb-mcp';Create one tool session per authenticated principal and dispose it with that principal. See the repository documentation for the authorization model.
Opt-in Node diagnostic channels keep execution details outside agent responses. cdb.mcp.action reports action phases, CDP command outcomes and dispatch boundaries. cdb.mcp.snapshot separates frame discovery, command round trips, artifact reads and formatting; command round trips include provider and transport time. cdb.mcp.hit-test reports element and ancestor-frame geometry and hit nodes for diagnosing coordinate mismatches. Treat hit-test records as private page diagnostics.
Page WebMCP
CDB exposes native main-document WebMCP through browser.list_webmcp_tools and
browser.invoke_webmcp_tools. Discovery requires inspect access; invocation requires
interact access and an exclusive lease. Extension hosts can configure discovery with
defineProvider({ webMcp: { discovery: { include, exclude, enabled } }, ... }).
Filters hide tools from discovery; they do not block direct invocation by name.
See native page WebMCP for references, artifacts, cancellation,
and configuration examples.
