Nuxt 4.7.0 was released on 23 November 2026. It’s a big minor release: experimental WebMCP support that turns your template actions into tools for in-browser AI agents, an opt-in preview of Nitro v3, validated runtime config, server-side error boundaries, three security fixes, and noticeably faster SSR. This guide focuses on the parts you can use today and how to upgrade without surprises.

Upgrade first (it includes security fixes)

The Nuxt team recommends this command:

npx nuxt upgrade --dedupe

It refreshes your lockfile and pulls in Nuxt CLI 4.1 and the other dependencies Nuxt relies on. According to the v4.7.0 release notes, the release fixes three security issues:

  • Route rules on _payload.json (medium). With a wildcard cache, swr or isr rule plus a more specific rule for a page, one user’s page data could be cached and served to another.
  • Encoded slashes on catch-all routes (medium). This was an incomplete earlier fix that affected route rules such as appMiddleware on a catch-all page.
  • Dev server runtime config (low, development only). This affects nuxt dev when it’s reachable from an untrusted network.

If you use cache, swr or isr route rules on pages with user-specific data, the team says to purge any CDN or edge cache that may already hold a _payload.json after upgrading.

Heads-up items

  • Nuxt DevTools is no longer installed with Nuxt. Add @nuxt/devtools to devDependencies if you use it.
  • Nuxt 4.7 requires vue ^3.5.46 and warns if yours is older (NUXT_B7042).
  • Template diagnostics are on. You may see new NUXT_B4025 warnings for a <NuxtLink> whose static to doesn’t match any page. Add the external prop for server routes, files in public/ or other sites.
  • @nuxt/rspack-builder and <NuxtClientFallback> are deprecated in favour of @nuxt/rsbuild-builder and <NuxtErrorBoundary retry-on-client>.

WebMCP: let browser agents use your app safely

WebMCP is a proposed browser API that lets a page offer tools to AI agents running in the browser. An agent can then “add to cart” or “submit the contact form” by calling a tool instead of guessing which button to click. Nuxt 4.7 can generate those tools from your templates.

Enable it in nuxt.config.ts:

export default defineNuxtConfig({
  experimental: {
    webmcp: true,
  },
})

Tools from template actions

Tag a function with @tool in its JSDoc and bind it to @click or @submit. Nuxt registers a tool named after the function, using the JSDoc summary as its description:

<script setup lang="ts">
const { data: products } = await useFetch('/api/products')
const cart = useCart()

/**
 * Add one of a product to the cart. Use when the user wants to buy something.
 * @tool
 */
function addToCart (sku: string) {
  cart.value.push(sku)
}
</script>

<template>
  <ul>
    <li v-for="product in products" :key="product.sku">
      {{ product.name }}
      <button :disabled="!product.inStock" @click="addToCart(product.sku)">
        Add
      </button>
    </li>
  </ul>
</template>

This registers an add_to_cart tool. According to the Nuxt WebMCP guide:

  • The arguments come from the template, so the agent can’t pass a SKU that isn’t on the page.
  • Inside a v-for, the agent picks an item by its :key, and a shared list_targets tool lists the items on screen.
  • :disabled controls whether the tool, or one of its targets, can run.

You can describe risk with flags after @tool: readonly, consequential (hard to undo, so the browser or agent may ask the user first), confirm (the user must complete the action) and values (send current form values to the agent as defaults):

/**
 * Place the order for everything in the cart. Use when the user is ready to pay.
 * @tool consequential
 */
function checkout () {}

Form tools with schema validation

A @tool function bound to @submit becomes a form tool. A call writes the form’s v-model fields and then submits the form, so your own validation and submit handler run. Add a Standard Schema such as Zod with @input:

<script setup lang="ts">
import { z } from 'zod'

const contactSchema = z.object({
  email: z.email(),
  message: z.string().min(5),
})
const form = reactive({ email: '', message: '' })

/**
 * Send a message to the shop. Use when the user has a question about an order.
 * @tool
 * @input contactSchema
 */
async function sendMessage () {
  await $fetch('/api/contact', { method: 'POST', body: form })
  return 'Sent.'
}
</script>

Form tools only fill fields that are rendered and not disabled or read-only. Password fields and payment-card autocomplete fields are never published as defaults. The guide still warns you to validate and authorise every submission on the server, as you would for any other request.

Tools from code and an activity indicator

For actions that don’t map to one control, use defineAgentTool() and useAgentTool(), then show the user what the agent is doing with useAgentActivity():

<script setup lang="ts">
import { z } from 'zod'

const searchProducts = defineAgentTool({
  name: 'search_products',
  description: 'Find products by name. Use when the user asks what is for sale.',
  input: z.object({ query: z.string() }),
  annotations: { readOnlyHint: true },
  execute: ({ query }, { signal }) =>
    $fetch('/api/products', { query: { q: query }, signal }),
})

useAgentTool(searchProducts)

const { current, stop } = useAgentActivity()
</script>

<template>
  <p v-if="current">
    {{ current.message }} <button @click="stop">Stop</button>
  </p>
</template>

Trying it locally

The guide says WebMCP is in early preview in Chrome and isn’t on by default. Enable chrome://flags/#enable-webmcp-testing (or start Chrome with --enable-features=WebMCP), open your app on localhost, and use an agent that calls WebMCP tools, such as the Model Context Tool Inspector extension. In browsers without WebMCP, nothing registers and your app behaves as before. During nuxt dev, Nuxt writes each page’s tools to .nuxt/webmcp/schema.json.

Nitro v3 preview: one dependency to try it

You can now build a Nuxt 4 app with Nitro v3, the server engine Nuxt 5 is built on:

npm install nitro

If nitro is in your package.json, Nuxt builds with Nitro v3. Remove it to go back. The release notes call this highly experimental (Nitro v3 is still a release candidate), so try it on a branch, not in production. Two changes bite most often:

  • Route rules: /blog/* now also matches /blog/2026/hello. Nuxt warns about rules whose meaning changes (NUXT_B4029) and stops on rules with more than one wildcard. Rewrite /api/*/items/** as /api/:id/items/**.
  • Imports: server code that imported a package your app didn’t list in package.json used to fall back to Nuxt’s dependencies. With Nitro v3, nuxt dev fails with an error like Cannot find package 'ufo'. Add every package your server code imports.

See Testing Nitro v3 in the upgrade guide.

Validated runtime config

Any runtimeConfig value can now be a Standard Schema. Missing or invalid environment variables stop the server at startup with a single error listing every problem:

import { z } from 'zod'

export default defineNuxtConfig({
  runtimeConfig: {
    apiSecret: z.string(), // required at runtime
    public: {
      mode: z.enum(['preview', 'production']).default('production'),
    },
  },
})

The release notes say the schema itself never ends up in your server bundle.

Performance, briefly

On the starter app from e18e’s framework benchmarks, the team measured SSR throughput rising from 245 to 292 requests per second, server output shrinking from 2.17 MB to 1.23 MB, and initial page load dropping from 14 requests to 3 compared with v4.6.4. There’s also a new opt-in experimental.staticRoutes that builds the route matcher once instead of per request, if you don’t add routes at runtime. Measure on your own app before and after.

Takeaway

Upgrade to Nuxt 4.7 now for the security fixes, then experiment. Turn on experimental.webmcp and tag one or two safe actions with @tool, add schemas to your runtime config, and try Nitro v3 on a branch so you’re ready for Nuxt 5.