Skip to content

fix(deps): bump @mcp-b/global to 6.1.0 to clear @modelcontextprotocol/server advisories - #7742

Merged
vanceingalls merged 2 commits into
mainfrom
clippy/mcpb-global-6-20261114
Nov 15, 2026
Merged

vanceingalls merged 2 commits into
mainfrom
clippy/mcpb-global-6-20261114

Conversation

@joelgallardoclippy-lgtm

@joelgallardoclippy-lgtm joelgallardoclippy-lgtm commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What

Bumps @mcp-b/global in @hyperframes/studio from ^5.0.1 to ^6.1.0, so @modelcontextprotocol/server and @modelcontextprotocol/core resolve to 2.4.0 instead of 2.0.0. Updates the WebMCP tests and comments for the 6.x behavior.

Why

@modelcontextprotocol/server 2.0.0 is affected by:

Every @mcp-b/global 5.x release and 6.0.x exact-pin @modelcontextprotocol/server 2.0.0, so neither a lock refresh nor an override inside 5.x can clear these. 6.1.0 is the first release that pins 2.4.0. Dependabot does not raise these (it reads only workspace package.json ranges); bun audit does.

Related work

No open Renovate PR covers @mcp-b/global. A separate lock-refresh PR clears the other bun audit highs (zod, smol-toml, aws-cdk-lib); both touch bun.lock, so whichever lands second needs a lock re-merge.

How

  • packages/studio/package.json: @mcp-b/global ^6.1.0.

  • bun.lock: @mcp-b/* 5.0.1 -> 6.1.0, @modelcontextprotocol/server/core 2.0.0 -> 2.4.0 (with zod 4.6.7 under them), adds @w3c/webmcp-polyfill 0.1.0 and webmcp-types 0.1.10, drops @mcp-b/webmcp-types and its @types/* deps.

  • 6.x installs the W3C WebMCP polyfill and calls execute(input, { signal }). Studio handlers already treat options as optional, so no runtime code changed; comments that described 5.x-only behavior now say "before 6.0".

  • The real-package tests drive the 6.x surface: the polyfill only installs in a secure context (jsdom leaves isSecureContext undefined, so the tests set it), and the write-tool test now goes through an MCP tools/call over the tab transport instead of the 5.x bridge registry.

  • useStudioAgentTools.polyfill.test.tsx goes from two cases to one: the dropped case drove the 5.x native-modelContext mirror and .tools registry, which 6.x no longer has and Studio never reaches (it loads the polyfill only when the browser has no native modelContext). The kept case asserts a real save through MCP tools/call; the "input alone" regression test in useStudioAgentTools.test.tsx stays.

  • The suite now calls cleanupWebModelContext() in afterAll, because 6.x sends a deferred tools-changed event that otherwise fires after jsdom teardown.

Behavior change: 6.x does not install outside a secure context (for example Studio over plain http on a LAN IP) or on browsers without Promise.withResolvers / AbortSignal.any / URL.parse (such as Safari before 18). There Studio's loader already degrades cleanly: no agent tools, and it reports the existing webmcp.polyfill_failed event. Studio's own-page-only transport settings (iframeServer: false, tabServer.allowedOrigins) are unchanged and still honoured, and Studio passes no exposedTo, so a framing site is offered no tools.

Release age: @mcp-b/global/transports/webmcp-polyfill/webmcp-ts-sdk 6.1.0 published 2026-11-10; @modelcontextprotocol/server 2.4.0 2026-10-23; @w3c/webmcp-polyfill 0.1.0 2026-11-03; webmcp-types 0.1.10 2026-09-28. All at least three days old.

No visible change

Dependency bump plus comment updates in types.ts and useStudioAgentTools.ts; no UI code changes. Studio renders the same; only the agent-facing WebMCP polyfill underneath it changes version.

Test plan

  • bun install --frozen-lockfile
  • bun why @modelcontextprotocol/server: only 2.4.0
  • bun audit before/after: the three high and one moderate @modelcontextprotocol/server advisories are gone
  • NODE_ENV=test vitest run src/webmcp in studio: 16 files, 183 tests passed, run exits 0 (3 consecutive runs), including the real-package polyfill and transport tests
  • studio tsc --noEmit
  • Unit tests updated
  • Manual testing performed
  • Documentation updated (n/a)

🤖 Generated with Claude Code

…/server advisories

@mcp-b/global 5.x and 6.0.x pin @modelcontextprotocol/server 2.0.0, which is
affected by GHSA-f897-62hf-6gxq, GHSA-46jr-4wx8-v453, GHSA-jm63-cq47-j5jp and
GHSA-rvq5-wwqv-78pq (>=2.0.0 <2.3.0). 6.1.0 is the first release that pins
server 2.4.0.

6.x installs the W3C WebMCP polyfill and passes { signal } to execute; the
real-package tests now drive the 6.x surface (secure context, MCP tools/call).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6.x's BrowserMcpServer sends a tools-changed event on a timer after the
last tool unregisters. Without cleanupWebModelContext() it fired after jsdom
teardown and vitest failed the run on an unhandled rejection. Also scope the
transport test's header to the MCP transports it actually checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 267 (base branch 267), smooth 97 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (8)

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed at 8b45961

Need: yes · Size: dependency update plus compatible tests/comments · Reuse: existing Studio polyfill loader, registration and transport policy · Simpler: already minimal · Structure: fine (checked loader, hook, registrar and the new dependency's frame policy; no split)
Risk: medium — changes the browser agent bridge and drops fallback support in unsupported contexts.

The lock changes are limited to the MCP bridge family, MCP server/core 2.4.0, the W3C polyfill/types, their zod resolution and removed obsolete type dependencies. The only dependency declaration change is Studio's @mcp-b/global range.

I traced the actual Studio caller: native document.modelContext bypasses the dynamic import. If the real 6.x package does not install, loadModelContextPolyfill() reports webmcp.polyfill_failed and returns null; useStudioAgentTools() exits without registering tools. The editor remains mounted. Thus plain HTTP on a LAN address and older browsers lose this agent bridge, rather than losing Studio. This is a browser capability change despite unchanged editor UI.

The existing MCP tab transport remains same-window/same-origin, and iframeServer:false is honored. The separate new W3C frame protocol is not disabled by that option; its registered tools default to no cross-origin exposure, with origin checks on discovery/execution. The updated transport test covers MCP traffic, not that separate W3C protocol. The real-package save test now exercises JSON-RPC tools/call instead of removed 5.x internals; existing input-only and abort tests remain.

Validation: clean frozen install, full build and Studio typecheck passed. WebMCP tests 185 passed across 17 files: the committed 183 tests plus two temporary review probes using the real package and Studio hook, one insecure and one simulating missing older-browser URL.parse. Both probes kept the editor mounted, installed no modelContext and observed the expected failure telemetry. Probes were removed afterward. This is jsdom validation, not a native Safari or signed-in dev walkthrough. Independent code review found no blocker.

Base-versus-head bun audit --json confirms removal of the named three MCP-server highs and one moderate, with no new advisory; MCP server/core resolve to 2.4.0. The request-size advisory, validation advisory, and shared-transport advisory ranges exclude that server version. Other vulnerable packages remain outside this update.

Nit: mention the insecure-context/older-browser agent-bridge restriction in release notes so users do not interpret missing tools as an editor failure.

Verdict: APPROVE
Reasoning: the patched dependency remains compatible with Studio's tool boundary and preserves a working editor when the fallback is unavailable.

— Rames

@vanceingalls
vanceingalls added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit beeb17e Nov 15, 2026
134 of 135 checks passed
@vanceingalls
vanceingalls deleted the clippy/mcpb-global-6-20261114 branch November 15, 2026 06:19
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.

3 participants