Commit 8a355ef
fix: align DevTools host/network integration with upstream 1.2.0 mcp.js (#16)
Upstream chrome-devtools-mcp 1.2.0 reworked mcp.js: it exports Host and
NetworkManager and no longer expects consumers to install host bindings
themselves. The fork's overrideDevToolsGlobals() still ran the obsolete
DevTools.Host.InspectorFrontendHost.installInspectorFrontendHost(...) call and
carried a duplicate McpHostBindingAdapter (a stale copy of upstream's
McpHostBindings that even missed the real loadNetworkResource). Against the
1.2.0 bundle these crash with "Cannot read properties of undefined (reading
'InspectorFrontendHost')".
Drop the manual install and the duplicate adapter to match upstream 1.2.0,
which installs nothing here and relies on mcp.js. The follow-on
"NetworkManager undefined" error was a stale incremental build artifact,
fixed by a clean rebuild.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 556ec85 commit 8a355ef
2 files changed
Lines changed: 3 additions & 259 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
This file was deleted.
0 commit comments