|
| 1 | +# Setting Up the Ignite UI CLI MCP Server |
| 2 | + |
| 3 | +> **Part of the [`igniteui-angular-components`](../SKILL.md) skill hub.** |
| 4 | +
|
| 5 | +## Contents |
| 6 | + |
| 7 | +- [VS Code](#vs-code) |
| 8 | +- [Cursor](#cursor) |
| 9 | +- [Claude Desktop](#claude-desktop) |
| 10 | +- [WebStorm / JetBrains IDEs](#webstorm--jetbrains-ides) |
| 11 | +- [Verifying the Setup](#verifying-the-setup) |
| 12 | + |
| 13 | +The Ignite UI CLI MCP server enables AI assistants to generate production-ready theming code. It must be configured in your editor before the theming tools become available. |
| 14 | + |
| 15 | +## VS Code |
| 16 | + |
| 17 | +Create or edit `.vscode/mcp.json` in your project: |
| 18 | + |
| 19 | +```json |
| 20 | +{ |
| 21 | + "servers": { |
| 22 | + "igniteui-cli": { |
| 23 | + "command": "npx", |
| 24 | + "args": ["-y", "igniteui-cli@next", "mcp"] |
| 25 | + } |
| 26 | + } |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +This works whether `igniteui-cli` is installed locally in `node_modules` or needs to be pulled from the npm registry — `npx -y` handles both cases. |
| 31 | + |
| 32 | +## Cursor |
| 33 | + |
| 34 | +Create or edit `.cursor/mcp.json`: |
| 35 | + |
| 36 | +```json |
| 37 | +{ |
| 38 | + "mcpServers": { |
| 39 | + "igniteui-cli": { |
| 40 | + "command": "npx", |
| 41 | + "args": ["-y", "igniteui-cli@next", "mcp"] |
| 42 | + } |
| 43 | + } |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +## Claude Desktop |
| 48 | + |
| 49 | +Edit the Claude Desktop config file: |
| 50 | +- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` |
| 51 | +- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` |
| 52 | + |
| 53 | +```json |
| 54 | +{ |
| 55 | + "mcpServers": { |
| 56 | + "igniteui-cli": { |
| 57 | + "command": "npx", |
| 58 | + "args": ["-y", "igniteui-cli@next", "mcp"] |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | +``` |
| 63 | + |
| 64 | +## WebStorm / JetBrains IDEs |
| 65 | + |
| 66 | +1. Go to **Settings → Tools → AI Assistant → MCP Servers** |
| 67 | +2. Click **+ Add MCP Server** |
| 68 | +3. Set Command to `npx` and Arguments to `igniteui-cli@next mcp` |
| 69 | +4. Click OK and restart the AI Assistant |
| 70 | + |
| 71 | +## Verifying the Setup |
| 72 | + |
| 73 | +After configuring the MCP server, ask your AI assistant: |
| 74 | + |
| 75 | +> "List all available Ignite UI components" |
| 76 | +
|
| 77 | +If the MCP server is running, the `list_components` tool will return all available components for the detected framework. |
0 commit comments