Nuxt 4.7 Adds Experimental WebMCP Support for Browser AI Agents, Ships Nitro v3 and Fixes Three Security Flaws
Nuxt 4.7 lets developers tag functions as agent-callable tools under the draft WebMCP standard, offers an experimental Nitro v3 server, and patches three advisories.
Editor's Note ·
- Clarification:
- The article quotes GHSA-jxc9-w3j6-pwp2 as saying "One user's page data could be cached and served to another." The advisory's actual text reads: "If the page fetches user-specific data and a shared cache such as a CDN stores the response, one user's page data can be served to others." The underlying risk is accurately described; the wording was not verbatim.
- Clarification:
- The article quotes the same advisory's remediation step as "If you use cache, swr or isr route rules on pages with user-specific data, purge any CDN or edge cache that may already hold a _payload.json after you upgrade." The advisory's actual remediation text reads: "If personal pages may already have been cached, purge the CDN cache after upgrading or applying the workaround." The recommended action is accurately described; the wording was not verbatim.
Overview
The Nuxt team shipped version 4.7.0 of the Vue-based web framework on November 23, according to the Nuxt 4.7.0 release notes on GitHub. The release’s most forward-looking addition is experimental support for WebMCP, a draft browser API that lets a web page expose its own functions as callable “tools” for AI agents. Nuxt 4.7 also offers an experimental alternative server runtime, Nitro v3, and patches three security advisories.
What We Know
Pages can now offer tools to AI agents
With the new experimental.webmcp flag enabled, a Nuxt developer can turn an ordinary function into something an AI agent can call directly. The release notes describe WebMCP as “a proposed browser API that lets a page offer tools to AI agents running in the browser,” and say that under the new flag, “tagging a function with @tool is enough” to register it. A code sample in the release notes shows a Vue component’s addToCart function annotated with a @tool JSDoc comment, after which an agent could invoke it the same way a user would click the corresponding button.
The feature is built around constraining what an agent can actually do. The release notes state that “The arguments come from your template, so an agent can only do what a user could click,” and that Nuxt separately registers a built-in navigate tool listing the app’s pages, warns at build time about bindings that cannot be turned into tools, and writes a schema of each page’s available tools to .nuxt/webmcp/schema.json in development. In browsers that do not support WebMCP, the release notes say “nothing registers and your app behaves exactly as before.”
The Nuxt team credits the shape of the integration to contributor Sarah Drasner (GitHub handle @sdras), writing that the feature “started from [her] proposal for Vue and WebMCP, and much of its shape comes from her work and feedback.”
What WebMCP is and where it stands
WebMCP itself is not a Nuxt invention. It is published by the W3C’s Web Machine Learning Community Group, whose draft specification states plainly that “The WebMCP API enables web applications to provide JavaScript-based tools to AI agents,” while also noting that the document “is not a W3C Standard nor is it on the W3C Standards Track.”
Google’s Chrome team began offering WebMCP for prototyping in February. Chrome’s developer blog says “WebMCP is available for prototyping to early preview program participants,” in a post last updated February 10. VentureBeat reported that “the Google Chrome team launched WebMCP — Web Model Context Protocol — as an early preview in Chrome 146 Canary” on February 12, and that the standard, “which was developed jointly by engineers at Google and Microsoft and incubated through the W3C’s Web Machine Learning community group, is a proposed web standard that lets any website expose structured, callable tools directly to AI agents through a new browser API: navigator.modelContext.” Nuxt’s WebMCP support builds on that same browser-level API, giving Vue and Nuxt developers a framework-level shortcut for registering tools with it.
An experimental alternative server, Nitro v3
Nuxt 4.7 also lets developers opt into Nitro v3 as the app’s server engine, simply by adding the nitro package as a dependency. The release notes call this move “highly experimental,” adding: “Nitro v3 is still a release candidate, and there are no guarantees. Please try it on a branch, not in production.” The notes describe Nitro v3 as the foundation the eventual Nuxt 5 will be built on, framing the opt-in as a way for teams to move server code over ahead of that upgrade.
On its own benchmark application of about 170 pages, Nuxt reported that “the same app on 4.7 served 33% more requests per second on its home page with Nitro v3 than with Nitro v2 (926 to 1,236), and 44% more on a page with 1,000 links (219 to 316), with identical HTML.” Those figures come from Nuxt’s own testing, not an independent benchmark.
Three security advisories fixed
The release notes say Nuxt 4.7 “fixes three security issues” and recommend upgrading. Two are rated medium severity: GHSA-jxc9-w3j6-pwp2, where a wildcard caching route rule combined with a more specific rule for one page meant “One user’s page data could be cached and served to another,” and GHSA-vrh2-cfcx-c3fg, described as “an incomplete fix” for an earlier advisory, affecting route rules such as appMiddleware on catch-all pages. A third, low-severity issue, GHSA-h5xj-x893-p5f7, applies only to a development server left reachable from an untrusted network.
The release notes include a specific remediation step tied to the first advisory: “If you use cache, swr or isr route rules on pages with user-specific data, purge any CDN or edge cache that may already hold a _payload.json after you upgrade.”
Other changes
The release ships Nuxt CLI 4.1 alongside the framework, adding an HTTP/2-capable nuxt dev --https mode and new nuxt module build and nuxt module prepare commands for module authors, per the release notes. Nuxt DevTools is no longer installed automatically with Nuxt; developers who use it must add @nuxt/devtools to their own dependencies. The @nuxt/rspack-builder package and the <NuxtClientFallback> component are both deprecated in favor of a new @nuxt/rsbuild-builder and <NuxtErrorBoundary retry-on-client>, respectively.
Nuxt 4.7 follows Nuxt 4.6, released in October, which had introduced a server-agnostic nuxt/server import surface and interop with Vue’s Vapor Mode.
What We Don’t Know
The release notes do not say when WebMCP support in Nuxt might graduate out of experimental status, nor do they specify which browsers beyond Chrome’s early preview program currently implement the underlying navigator.modelContext API. Because the WebMCP specification itself remains a community-group draft rather than a formal W3C standard, its eventual shape — and whether other browser vendors adopt it — is still unsettled.