---
title: "Use with your AI agent"
description: "Set up Claude Code, Cursor, Codex, Kiro, GitHub Copilot, Windsurf, Gemini CLI or OpenCode to install and use our loaders for you."
url: "https://dotsengine.dev/docs/ai-agents"
markdown: "https://dotsengine.dev/docs/ai-agents.md"
updated: 2026-12-01
prompt: "Read https://dotsengine.dev/docs/ai-agents.md. Set up the agent I use with the steps for that agent: add the @dots-engine registry to components.json, install the Dots Engine skill, and connect the shadcn MCP server. Then install the dot-matrix item. Done when the skill file exists, the MCP server is connected, and dot-matrix/dot-matrix.tsx is in the ui folder that components.json names (components/ui, or src/components/ui in Vite and TanStack Start)."
---

# Use with your AI agent

Set up Claude Code, Cursor, Codex, Kiro, GitHub Copilot, Windsurf, Gemini CLI or OpenCode to install and use our loaders for you.

> The other pages of this site, each with its Markdown copy, are listed in [llms.txt](https://dotsengine.dev/llms.txt).

Your coding agent can install our loaders and write the code that uses them. Set it up once, in three parts:

- **The registry** in `components.json`, so the agent can install items by name.
- **The agent skill**: one file that tells the agent what we ship, how to install it and which docs to read.
- **The shadcn MCP server**: tools that let the agent search our registry and install items.

## Before you start

Your project needs shadcn. If it has no `components.json` yet, run `npx shadcn@latest init` once. Then add our registry to `components.json`:

```json
{
  "registries": {
    "@dots-engine": "https://dotsengine.dev/r/{name}.json"
  }
}
```

## Set up your agent

Pick your agent. Each tab has the same three steps.

### Claude Code

**1. Install the skill.** Claude Code reads skills from `.claude/skills` in your project:

```bash
mkdir -p .claude/skills/dots-engine
curl -fsSL -o .claude/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Run this command in your project folder:

```bash
npx shadcn@latest mcp init --client claude
```

**3. Check it.** Restart Claude Code, then run `/mcp`. The list shows the `shadcn` server.

### Cursor

**1. Install the skill.** Cursor reads skills from `.cursor/skills` in your project:

```bash
mkdir -p .cursor/skills/dots-engine
curl -fsSL -o .cursor/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Run this command in your project folder:

```bash
npx shadcn@latest mcp init --client cursor
```

**3. Check it.** Restart Cursor. Open **Cursor Settings → MCP** and turn on the `shadcn` server.

### Codex

**1. Install the skill.** Codex reads skills from `.agents/skills` in your project:

```bash
mkdir -p .agents/skills/dots-engine
curl -fsSL -o .agents/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Add this to `~/.codex/config.toml`:

```toml
[mcp_servers.shadcn]
command = "npx"
args = ["shadcn@latest", "mcp"]
```

**3. Check it.** Restart Codex. The shadcn CLI cannot write this file for Codex, so you add it yourself.

### Kiro

**1. Install the skill.** Kiro reads skills from `.kiro/skills` in your project:

```bash
mkdir -p .kiro/skills/dots-engine
curl -fsSL -o .kiro/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Add this to `.kiro/settings/mcp.json`:

```json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}
```

**3. Check it.** Restart Kiro. The server shows in the **MCP servers** panel.

### GitHub Copilot

**1. Install the skill.** GitHub Copilot reads skills from `.github/skills` in your project:

```bash
mkdir -p .github/skills/dots-engine
curl -fsSL -o .github/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Run this command in your project folder:

```bash
npx shadcn@latest mcp init --client vscode
```

**3. Check it.** Restart VS Code. Open `.vscode/mcp.json` and select **Start** above the `shadcn` server.

### Windsurf

**1. Install the skill.** Windsurf reads skills from `.windsurf/skills` in your project:

```bash
mkdir -p .windsurf/skills/dots-engine
curl -fsSL -o .windsurf/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Add this to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}
```

**3. Check it.** Restart Windsurf. In the Cascade panel, open **MCP** and check that `shadcn` is on.

### Gemini CLI

**1. Install the skill.** Gemini CLI reads skills from `.gemini/skills` in your project:

```bash
mkdir -p .gemini/skills/dots-engine
curl -fsSL -o .gemini/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Add this to `.gemini/settings.json`:

```json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}
```

**3. Check it.** Restart Gemini CLI, then run `/mcp`. Run `/skills list` to see the skill.

### OpenCode

**1. Install the skill.** OpenCode reads skills from `.opencode/skills` in your project:

```bash
mkdir -p .opencode/skills/dots-engine
curl -fsSL -o .opencode/skills/dots-engine/SKILL.md https://dotsengine.dev/.well-known/agent-skills/dots-engine/SKILL.md
```

**2. Connect the shadcn MCP server.** Run this command in your project folder:

```bash
npx shadcn@latest mcp init --client opencode
```

**3. Check it.** Restart OpenCode. Its MCP list shows the `shadcn` server.

## Try it

Name our registry in your request, so the agent looks in the right place:

- "Show me the loaders in @dots-engine."
- "Install the dot-matrix engine from @dots-engine and show a radar loader while the chat streams."
- "Install the progress-ring-circle example and drive it from the upload progress."

## Other agents

- **An agent that reads skills:** save `SKILL.md` in the folder where it loads skills, in a `dots-engine` folder.
- **An MCP client:** run `npx shadcn@latest mcp` as a local (stdio) server.
- **An agent that reads web pages:** point it at [llms.txt](https://dotsengine.dev/llms.txt). It lists every docs page as Markdown.

## Keep it current

Your copy of the skill does not update itself. Run the `curl` command again to replace it. [Agent skill](https://dotsengine.dev/docs/agent-skill.md) shows how to check if it changed.
