Repository navigation
Types the Chrome 156 toolactivated and toolcancel events on document.modelContext.
Library
- Chrome 156.0.8076.0 moves
toolactivatedandtoolcancelfromwindowtodocument.modelContext(WebMCP PR #245).ModelContextnow declaresontoolactivated/ontoolcanceland typedaddEventListener/removeEventListeneroverloads for them; event names outside the map fall back to the plainEventTargetsignature instead of failing to compile. - New exported types:
ToolActivatedEvent,ToolCancelEvent(bothEventplus atoolNamestring) andModelContextEventMap. - No runtime change. The polyfill still fires only
toolchange; on Chrome ≤155 the two new events fire onwindow.
The bridge extension stays at 0.2.2 and webmcp-server at 0.2.0.
Validated with 306 tests, including 7 type-level tests, plus library and extension builds, lint, and type checks.
Full changelog: https://github.com/agentcathq/webmcp-react/blob/v1.2.1/CHANGELOG.md