Skip to content

fix: update WebMCP tool registration for async registerTool API - #80

Open
JosipVojkovicAgilo wants to merge 2 commits into
masterfrom
feature/webmcp
Open

fix: update WebMCP tool registration for async registerTool API#80
JosipVojkovicAgilo wants to merge 2 commits into
masterfrom
feature/webmcp

Conversation

@JosipVojkovicAgilo

Copy link
Copy Markdown
Contributor

Chrome 151 changed document.modelContext.registerTool() to return a Promise
(see chromium/webmcp#175). This updates the integration to handle the async API.

Changes

  • registerTool type signatures updated to return Promise<void>
  • registerWebMCPTools made async, using Promise.all for concurrent registration
  • WebMCPProvider useEffect updated to handle async registration while keeping
    the cleanup function synchronous (React requirement)

@medusajs

medusajs Bot commented Jul 3, 2026

Copy link
Copy Markdown
Name Backend Status Storefront Status Preview Link Last Updated
agilo-dtc-starter 🟡 Provisioning - - / - Fri, 03 Jul 2026 11:53:16 GMT

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