Installation

Learn how to set up the Katlux Toolkit in your Nuxt 3 application. Choose between a basic quickstart or a complete, production-ready setup.

1. Initialize Nuxt

Create a new Nuxt 3 project using the official CLI:

Bash
npx nuxi@latest init my-katlux-app
cd my-katlux-app
2. Install Core Toolkit

Install the core Katlux package:

Bash
npm install @katlux/toolkit@alpha
3. Configure Nuxt Module

Register the module in your nuxt.config.ts file:

TypeScript
export default defineNuxtConfig({
	modules: [
		'@katlux/toolkit'
	]
})
4. Test Usage

Use Katlux components globally in your Vue files:

Vue
<template lang="pug">
KButton(type="primary") Hello Katlux!
</template>
🤖 AI Assistant Integration & MCP Server (Optional)

If you use AI coding assistants (Cursor, Antigravity, Claude, Copilot, Windsurf), Katlux provides both modular AI skill files and a high-performance Model Context Protocol (MCP) server.

The MCP server gives your assistant surgical, on-demand tool access to component APIs, exact SVG icons, design tokens, and self-correction code validation — saving 90%+ tokens per query.

Bash
npx @katlux/toolkit katlux-add-ref

Running katlux-add-ref installs the Katlux skills at .agents/skills/katlux-* and auto-configures the Katlux MCP server for Cursor, Antigravity, and VS Code automatically.

Zero Manual Config: The command automatically writes or updates .cursor/mcp.json, .agents/mcp_config.json, and .vscode/mcp.json with zero manual editing required.

Automatically configured by katlux-add-ref. To manually register the MCP server, add to .cursor/mcp.json:

JSON
{
  "mcpServers": {
    "katlux": {
      "command": "npx",
      "args": ["-y", "@katlux/mcp"]
    }
  }
}
🛠️ Developer Guide & Contributing

For advanced monorepo development, creating custom presets, or contributing to Katlux:

📖 View Developer Guide