This template is built to be "Agent-First." By utilizing the Model Context Protocol (MCP), AI agents can understand and interact with your application with minimal context ingestion.
These MCP servers are highly useful and highly recommended for a smooth development experience. Adding them to your AI configuration allows the assistant to understand your project's unique structure in real-time.
To get started, simply copy and paste the mcp_config.json provided below into your local configuration file (e.g., ~/.gemini/antigravity/mcp_config.json for Antigravity users).
mcp_config.json{
"mcpServers": {
"nuxt": {
"serverUrl": "https://nuxt.com/mcp"
},
"nuxt-ui": {
"serverUrl": "https://ui.nuxt.com/mcp"
},
"nac-schema-inspector": {
"command": "npx",
"args": [
"-y",
"mcp-server-fetch-typescript"
],
"env": {
"ALLOWED_URLS": "[\"http://localhost:3000/api/_meta?format=md&token=YOUR_ENCODED_TOKEN\"]"
}
}
}
}
Provides deep, real-time knowledge of the Nuxt 4 ecosystem.
app/ directory conventions.Essential for maintaining the premium aesthetics of the template.
U- component metadata to build sophisticated, consistent interfaces.Since nuxt-auto-crud is a headless engine driven by runtime reflection, traditional source code analysis isn't enough for AI. This server acts as the agent's "eyes" into the live system.
/api/_meta manifest.For maximum efficiency, AI agents follow this two-step loop:
nac-schema-inspector to map the current data structures.nuxt and nuxt-ui intelligence to write framework-native, UI-compliant code.To enable this workflow, add the following to your mcp_config.json. Don't forget to replace YOUR_ENCODED_TOKEN with your actual token from your .env file (see the encoding tip below).
The NUXT_API_SECRET_TOKEN used in the ALLOWED_URLS often contains a plus sign (+). When configuring the MCP server, you must URI-encode the + character as %2B. Failure to do this will result in a signature mismatch during discovery.
Example:
...token=AbC+123...token=AbC%2B123MCP Servers (Agentic Integration)
Overview of the Model Context Protocol (MCP) servers used for discovery and execution within the nuxt-auto-crud ecosystem.
Deploying Nuxt App to Cloudflare Pages/Workers
This guide provides the technical workflow for deploying a Nuxt application (created from the `Nuxt Auto-CRUD Template`) to Cloudflare using D1 (SQLite/libSQL) and Wrangler.