Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Agent guide

For AI agents

beui-vue exposes a static, agent-friendly surface. Install the skill, connect the MCP server below, or hit the raw endpoints directly. Coding agents (Claude, Codex, Cursor, Amp) can list components, fetch source with all deps, and drop files into the user's project.

Agent skill

The skill teaches coding agents to fetch the live registry first, pick the closest items[].name install slug, inspect it, then install with shadcn-vue and compose from the generated source. Use it when you want agents to choose existing beui-vue components instead of inventing custom motion widgets.

Shellterminal
npx skills add stickerwu/beui-vue --skill beui-vue

MCP server

The fastest path: connect the beui-vue MCP server and your agent can list, search and install components directly. Hosted at https://beui.stickerwu.net/mcp.

Shellterminal
# Claude Code
claude mcp add --transport http beui-vue https://beui.stickerwu.net/mcp

# Codex
codex mcp add beui-vue --url https://beui.stickerwu.net/mcp

# Amp
amp mcp add beui-vue https://beui.stickerwu.net/mcp

Any other client: add it manually to your MCP config.

JSONmcp.json
{
  "mcpServers": {
    "beui-vue": {
      "type": "http",
      "url": "https://beui.stickerwu.net/mcp"
    }
  }
}

Tools: list_components, search_components, get_component, get_install_command. The server reads the live registry, so new components show up without a redeploy.

Endpoints

  • /llms.txtllms.txt

    Markdown index in llmstxt.org format.

    Open
  • /r/index.jsonRegistry index

    JSON catalogue of every installable component.

    Open
  • /r/{slug}.jsonshadcn-vue item

    Install item with every file's content, npm dependencies and the usage note.

Agent flow

Two calls, then install. Each item carries every file it needs.

TSagent.ts
// 1. Discover what exists
const index = await fetch('https://beui.stickerwu.net/r/index.json').then((r) => r.json());

// 2. Fetch a component, every file included
const item = await fetch(`https://beui.stickerwu.net/r/${slug}.json`).then((r) => r.json());

// 3. Write files into the user's project
for (const file of item.files) {
  await writeFile(`src/${file.target}`, file.content);
}

// 4. Install external deps
await runShell(['npm', 'install', ...item.dependencies]);

shadcn-vue flow

The shadcn-vue item installs source files and package dependencies. @beui-vue is in the shadcn-vue registry directory, so the short name works in any project with a components.json.

Shellterminal
# Registry namespace (shadcn-vue directory)
npx shadcn-vue@latest add @beui-vue/animated-toast-stack

# Direct URL, no namespace needed
npx shadcn-vue@latest add https://beui.stickerwu.net/r/animated-toast-stack.json

Entry shape

Shared helpers (e.g. core/motion.ts and the shared styles.css) ship inline as extra files, and docs says which file to import.

JSONr/button-base.json
{
  "name": "button-base",
  "type": "registry:item",
  "title": "Button",
  "description": "Spring-pressed Button plus StatefulButton, MagneticButton, and MetallicButton variants.",
  "categories": ["motion"],
  "dependencies": ["@vueuse/core@^14.0.0", "[email protected]"],
  "files": [
    { "path": "components/beui/ButtonBase.vue", "type": "registry:file", "content": "..." },
    { "path": "components/beui/core/motion.ts", "type": "registry:file", "content": "..." },
    { "path": "components/beui/styles.css", "type": "registry:file", "content": "..." }
  ],
  "meta": { "page": "https://beui.stickerwu.net/components/motion/button/button-base" },
  "docs": "Use it with: import ButtonBase from '@/components/beui/ButtonBase.vue'"
}