nuxt-ui-mcp

nuxt-ui-mcp is a cursor rule for Cursor from YuDefine/nuxt-supabase-starter. It costs 0 tokens per session (2,610 once invoked), scanned A, original, MIT.

A project rule requiring developers to consult the current official Nuxt UI documentation through a remote reference tool before designing or writing Nuxt UI code. It covers components, composables, icons, themes, and configuration.

In plain words
What is it for?
It helps select and configure Nuxt UI components during design and implementation, including their properties, slots, composables, icons, and theme settings.
Why use it?
Nuxt UI changes between versions, so remembered component properties, slots, and theming options may be outdated or wrong. Checking the current documentation reduces runtime errors and poor component choices.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Codex.

Good fit It helps select and configure Nuxt UI components during design and implementation, including their properties, slots, composables, icons, and theme settings.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yudefine/nuxt-supabase-starter/nuxt-ui-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nuxt-ui-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/nuxt-ui-mcp.svg)](https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/nuxt-ui-mcp)
Your own site
<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/nuxt-ui-mcp"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/nuxt-ui-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02610
Opus 5 $0.00000 $0.01305
Sonnet 5 $0.00000 $0.00522
Haiku 4.5 $0.00000 $0.00261

Measured today against content hash 41bfa7787eaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

nuxt-ui-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/.cursor/rules/nuxt-ui-mcp.mdc · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nuxt UI MCP(強制走 nuxt-ui-remote)

核心命題:Nuxt UI 是 fast-moving 套件(v2 → v3 重寫、ui-pro 持續迭代、components / composables / icons 隨版本演變)。模型訓練資料對 component prop / slot / theming API 的記憶幾乎一定過時或錯誤,硬寫出來的 code 看起來合理但 runtime 會壞。nuxt-ui-remote MCP 是 Nuxt UI 官方最新 docs 的唯一可信來源。

此規則優先於個別 skill 說明與其他規則。


範圍

以下全部屬於本規則「Nuxt UI 實做」範圍,MUST 走 MCP:

  • @nuxt/ui v3 / v4(現行主線)— components、composables、icons、theming、app.config.tsui.* 區塊
  • @nuxt/ui v2(legacy,少數舊專案)
  • @nuxt/ui-pro(Pro 版高階 component 與 template)
  • Nuxt UI 官方 templates(starter / dashboard / saas 等結構與配置)

判斷標準:任何會寫進 .vue / .ts / app.config.ts / nuxt.config.ts 且觸及 U* component、use* composable(Nuxt UI 自家)、ui.* theming key、@nuxt/ui* import 的內容,都算 Nuxt UI 實做。

設計階段同樣在範圍內

path scope 含 specs/plans/**/{spec,plan,design-review}.md不是只有實作檔。因為這條規則要擋的有兩層,而它們發生在不同階段:

問的問題 發生階段 寫錯的代價
API surface 這個 prop / slot 存在嗎、叫什麼 .vue 改幾行
元件選擇 這個場景該用哪些元件、怎麼組 寫 proposal / design 時 整段重寫

只在實作階段載入這條規則,等於只擋住便宜的那一層。元件選擇在設計文件寫下「用 USlideover 400px」的當下就定了,到實作階段才想起要查 MCP,能修的只剩 prop 名稱——架構已經不能動。

設計階段的具體要求(候選 ≥2、寫明淘汰理由)見 design skill § Step 1.9 Component Candidates。


Hard rule — API surface 層

MUST

  1. 寫任何 Nuxt UI component / composable / theming / config 之前,呼叫對應 nuxt-ui-remote MCP tool 取得當前版本的真實 API:
    • search-components / get-component / get-component-metadata — component prop / slot / emit
    • search-composables — composable signature
    • search-icons — icon name 對照
    • get-example / list-examples — 官方推薦寫法
    • get-template / list-templates — template 結構
    • get-documentation-page / search-documentation — 一般 docs / theming / config
    • get-migration-guide — v2 → v3 / 跨版本 BC
  2. 取得 MCP 回傳後寫 code;引用的 prop / slot / API 必須能對應到 MCP 回傳內容。

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines 41bfa7787eaa
  2. 4d ago First seen · 141 lines · 0 tokens per session scan A cb26331aa45f

Subscribe to this mod's changes

nuxt-ui-mcp is a cursor rule published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,610 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.