Skip to content

refactor: remove clearContext() from WebMCP polyfill#16

Merged
naji247 merged 1 commit intomainfrom
analyze-providecontext-removal
Mar 6, 2026
Merged

refactor: remove clearContext() from WebMCP polyfill#16
naji247 merged 1 commit intomainfrom
analyze-providecontext-removal

Conversation

@kashishhora
Copy link
Member

Remove the deprecated clearContext() method from the WebMCP polyfill API to align with Chrome 147.0.7721.0's removal of provideContext() and clearContext().

No breaking changes—the React hook (useMcpTool) never used clearContext() and continues to use only registerTool()/unregisterTool() for its lifecycle. All 149 tests pass.

Chrome 147.0.7721.0 is removing provideContext() and clearContext() in favor
of an additive registerTool()/unregisterTool() model. This change removes the
deprecated clearContext() method from our polyfill layer to stay aligned with
the updated W3C specification.

No user-facing impact: the React hook (useMcpTool) never used clearContext()
and continues to use only registerTool()/unregisterTool() for its lifecycle.
@naji247 naji247 merged commit 5cd3632 into main Mar 6, 2026
3 checks passed
@naji247 naji247 deleted the analyze-providecontext-removal branch March 6, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants