Nuxt layers might be the most powerful and underrated composability pattern ever.
Here's why:
The Nuxt MCP Toolkit is a module that lets you create MCP servers in your Nuxt app in the easiest possible way.
But here's where it gets interesting.
The module doesn't just create a server. It automatically scans every layer in your application and extends MCP tools from all of them.
Meaning you can add tools from any layer. The composability is insane.
Now imagine this:
Docus ships with the MCP Toolkit built in as a layer.
Every single Docus documentation site now has an MCP server running by default. But that's not even the best part.
Because we use the
@aisdk on top of the MCP, each doc site gets a fully functional agent that connects to that MCP server. Zero configuration.
Deploy to
@vercel with Gateway and it all just works. Out of the box. Every documentation site gets its own AI agent powered by MCP.
One layer. One module. Infinite scale.
This is the power of Nuxt's architecture. Layers let you compose functionality that cascades across every application that uses them.
You build it once, and it works everywhere.