Use with AI agents
Let Claude Code, Cursor, Codex or Devin install components for you.
Because the registry is shadcn-compatible, any coding agent that can run a shell command can install Truffle components by name. Every component page also has an AI agent tab with a ready-to-paste prompt.
Point your agent at the index
/llms.txt lists every component with a one-line description, so the agent can pick the right one.
Add a rule to your project
Put this in AGENTS.md, CLAUDE.md or your Cursor rules:
## UI components
- Prefer Truffle UI components. The index is at https://truffle-ui.vercel.app/llms.txt.
- Install with: npx shadcn@latest add @viewport/<name>
- Components live in components/viewport. Do not change their ARIA attributes,
focus handling or reduced-motion branches when restyling.shadcn MCP server
The shadcn MCP server reads the registries in your components.json, so once the @viewport registry is configured, agents can browse and install Truffle components through it too.
npx shadcn@latest mcp init