Skip to content

Update dependency @mcp-b/webmcp-polyfill to v3 - #8673

Merged
pubkey merged 2 commits into
masterfrom
renovate/mcp-b-webmcp-polyfill-3.x
Jun 29, 2026
Merged

pubkey merged 2 commits into
masterfrom
renovate/mcp-b-webmcp-polyfill-3.x

Conversation

@renovate

@renovate renovate Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@mcp-b/webmcp-polyfill (source) 2.3.2 → 3.0.0 age confidence

Release Notes

WebMCP-org/npm-packages (@​mcp-b/webmcp-polyfill)

v3.0.0

Major Changes
  • 4f3cc5e: Track the May 27, 2026 WebMCP draft that moves the modelContext getter from Navigator to Document.

    • @mcp-b/webmcp-polyfill now installs document.modelContext as the canonical surface. navigator.modelContext is kept as a deprecated, backward-compatible alias that returns the same ModelContext instance and emits a one-time runtime deprecation warning on first access. Tools registered on either surface are observable on the other. Native detection now checks both surfaces so the polyfill no-ops when the browser exposes WebMCP on either.
    • @mcp-b/webmcp-types adds the Document.modelContext global augmentation and marks Navigator.modelContext as @deprecated. Chrome 150 deprecated navigator.modelContext and will remove it in a future release; the deprecated alias remains available in this release as a migration fallback.
    • Breaking: the removed provideContext() and clearContext() APIs remain absent from the strict WebMCP types and polyfill runtime. Consumers still calling those legacy APIs should migrate to explicit registerTool() and unregisterTool() calls.

    Migration:

    const modelContext = document.modelContext || navigator.modelContext;
    if (modelContext) {
      modelContext.registerTool({
        /* ... */
      });
    }

    Tracks webmachinelearning/webmcp#173 and webmachinelearning/webmcp#184.

Patch Changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/mcp-b-webmcp-polyfill-3.x branch 30 times, most recently from 7a4a240 to 4c5f5fc Compare June 27, 2026 05:18
@renovate
renovate Bot force-pushed the renovate/mcp-b-webmcp-polyfill-3.x branch 3 times, most recently from 8a7d38f to 4bd0af9 Compare June 28, 2026 19:54
@renovate
renovate Bot force-pushed the renovate/mcp-b-webmcp-polyfill-3.x branch from 4bd0af9 to 7d210ed Compare June 28, 2026 21:08
@pubkey

pubkey commented Jun 29, 2026

Copy link
Copy Markdown
Owner

@copilot

  ✔ migration with multiple collections (38ms)

webmcp.test.ts
[WebMCPPolyfill] navigator.modelContext is deprecated. The May 27, 2026 WebMCP draft moved the modelContext getter from Navigator to Document — use document.modelContext instead. See webmachinelearning/webmcp#184.
✔ should register query tool when registerWebMCP is called
[WebMCPPolyfill] navigator.modelContext.unregisterTool() is deprecated. The April 23, 2026 WebMCP draft removed it in favor of registerTool(tool, { signal }) — pass an AbortSignal and abort it to unregister.
1) should wait for changes using wait_changes tool

1323 passing (2m)
1 failing

  1. webmcp.test.ts
    should wait for changes using wait_changes tool:
    TypeError: Cannot read properties of undefined (reading 'listTools')
    at getTools (file:///home/runner/work/rxdb/rxdb/test/unit/webmcp.test.ts:27:62)
    at Context. (file:///home/runner/work/rxdb/rxdb/test/unit/webmcp.test.ts:107:23)

Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@copilot

  ✔ migration with multiple collections (38ms)

...

Fixed in d831b4d. I reset the WebMCP polyfill state between tests (cleanupWebMCPPolyfill() in beforeEach/afterEach) so navigator.modelContextTesting is reliably reinstalled, and the wait_changes test now passes.

Copilot AI requested a review from pubkey June 29, 2026 11:43
@renovate

renovate Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@pubkey
pubkey merged commit 847dfa9 into master Jun 29, 2026
24 checks passed
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