Skip to content

v1.2.1

Latest

Choose a tag to compare

@kashishhora kashishhora released this 01 Oct 00:49
2798e68

Types the Chrome 156 toolactivated and toolcancel events on document.modelContext.

Library

  • Chrome 156.0.8076.0 moves toolactivated and toolcancel from window to document.modelContext (WebMCP PR #245). ModelContext now declares ontoolactivated / ontoolcancel and typed addEventListener / removeEventListener overloads for them; event names outside the map fall back to the plain EventTarget signature instead of failing to compile.
  • New exported types: ToolActivatedEvent, ToolCancelEvent (both Event plus a toolName string) and ModelContextEventMap.
  • No runtime change. The polyfill still fires only toolchange; on Chrome ≤155 the two new events fire on window.

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