Skip to content

Use AbortSignal to unregister tools when available#104

Merged
beaufortfrancois merged 2 commits into
mainfrom
signal
Mar 27, 2026
Merged

Use AbortSignal to unregister tools when available#104
beaufortfrancois merged 2 commits into
mainfrom
signal

Conversation

@beaufortfrancois
Copy link
Copy Markdown
Collaborator

Following upcoming webmachinelearning/webmcp#147 and https://chromium-review.googlesource.com/c/chromium/src/+/7681371, this PR uses a new AbortSignal option to unregister tools when calling registerTool(tool, options) instead of calling the deprecated unregisterTool().

This PR supersedes #91

FYI @domfarolino

Comment thread demos/react-flightsearch/src/webmcp.ts Outdated
Comment thread demos/shared/types/webmcp.d.ts
Copy link
Copy Markdown
Member

@andreban andreban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@beaufortfrancois beaufortfrancois merged commit 1b97181 into main Mar 27, 2026
3 checks passed
@beaufortfrancois beaufortfrancois deleted the signal branch March 27, 2026 10:03
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.

4 participants