+ {{ current.message }} +
+ +``` + +::themed-video{light="/assets/blog/v4-7/webmcp-agent-run-light.mp4" light-poster="/assets/blog/v4-7/webmcp-agent-run-light.png" dark="/assets/blog/v4-7/webmcp-agent-run-dark.mp4" dark-poster="/assets/blog/v4-7/webmcp-agent-run-dark.png" controls loop class="rounded-lg"} +:: + +Nuxt also registers a `navigate` tool listing your pages, warns at build time about bindings that can't become tools (or descriptions that don't follow Chrome's [tool design guidance](https://github.com/GoogleChromeLabs/webmcp-tools)), and in development writes the tools of each page you visit to `.nuxt/webmcp/schema.json`, ready for [`webmcp-evals`](https://github.com/GoogleChromeLabs/webmcp-tools/tree/main/webmcp-evals). + +::note +The WebMCP spec is still moving, and the API is in early preview in Chrome behind a flag. In browsers without it, nothing registers and your app behaves exactly as before. +:: + +::read-more{to="/docs/guide/ai/webmcp"} +Read the WebMCP guide. +:: + +## 🔎 All Your Problems in One Place + +Nuxt 4.6 brought [`my-bad`](https://github.com/danielroe/my-bad) error pages to development. In 4.7, with `my-bad` v1 and [`vite-plugin-checker` v1](https://github.com/fi3ework/vite-plugin-checker/releases/tag/v1.0.0), the same badge in the corner of your page also collects _problems_ ([#36918](https://github.com/nuxt/nuxt/pull/36918)): + +- type errors, when you enable `typescript.typeCheck` +- any other checker you add to Vite, such as ESLint +- Vue compiler warnings that used to be lost in the terminal ([#36967](https://github.com/nuxt/nuxt/pull/36967)) +- Nuxt's own warnings from scanning your app, such as duplicate component names or conflicting imports ([#36969](https://github.com/nuxt/nuxt/pull/36969)) + +Each source becomes a 'problem set'. The badge sums them up in one pill, and clicking it opens a drawer beside the page, grouped by source, with source snippets, links to the rule docs and a button to open each one in your editor. + +{.dark:hidden} +{.hidden.dark:block} + +{.dark:hidden} +{.hidden.dark:block} + +If you're using [Nuxt DevTools v4](/blog/devtools-v4), the same problems are also in a Problems panel in the DevTools dock. + +{.dark:hidden} +{.hidden.dark:block} + +Type checking in development used to mean type checking in production builds too. Thanks to [@sakaintp](https://github.com/sakaintp), you can now choose ([#36164](https://github.com/nuxt/nuxt/pull/36164)): + +```ts [nuxt.config.ts] +export default defineNuxtConfig({ + typescript: { + typeCheck: 'dev', // `true`, 'build' or 'dev' + }, +}) +``` + +This is handy if you already run `nuxt typecheck` as a separate CI step. + +## 🩺 Template Diagnostics + +The Vue compiler can't know about your pages or your server components, but Nuxt can. So Nuxt now checks your templates for a few mistakes that only make sense with that knowledge ([#36754](https://github.com/nuxt/nuxt/pull/36754)): + +- a `Widget unavailable
+ + +