|
| 1 | +# Ignite UI MCP Server - Usage Guide |
| 2 | + |
| 3 | +This guide provides examples of how to use the Ignite UI MCP server with AI assistants and MCP clients. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +### Setting up with Claude Desktop |
| 8 | + |
| 9 | +1. Install the MCP server globally: |
| 10 | + ```bash |
| 11 | + npm install -g @igniteui/mcp-server |
| 12 | + ``` |
| 13 | + |
| 14 | +2. Add to your Claude Desktop config file: |
| 15 | + |
| 16 | + **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` |
| 17 | + |
| 18 | + **Windows**: `%APPDATA%/Claude/claude_desktop_config.json` |
| 19 | + |
| 20 | + ```json |
| 21 | + { |
| 22 | + "mcpServers": { |
| 23 | + "igniteui": { |
| 24 | + "command": "npx", |
| 25 | + "args": ["-y", "@igniteui/mcp-server"] |
| 26 | + } |
| 27 | + } |
| 28 | + } |
| 29 | + ``` |
| 30 | + |
| 31 | +3. Restart Claude Desktop |
| 32 | + |
| 33 | +## Example Use Cases |
| 34 | + |
| 35 | +### 1. Creating a New Angular Project |
| 36 | + |
| 37 | +Ask Claude: |
| 38 | +``` |
| 39 | +Create a new Ignite UI Angular project called "my-dashboard" with the side-nav template |
| 40 | +``` |
| 41 | + |
| 42 | +The MCP server will: |
| 43 | +- Create a new Angular project with Ignite UI components |
| 44 | +- Use the `igx-ts` project type |
| 45 | +- Apply the `side-nav` template |
| 46 | +- Set up the project structure |
| 47 | + |
| 48 | +### 2. Creating a React Application |
| 49 | + |
| 50 | +Ask Claude: |
| 51 | +``` |
| 52 | +Create a React app named "data-viewer" using Ignite UI for React with TypeScript |
| 53 | +``` |
| 54 | + |
| 55 | +The MCP server will: |
| 56 | +- Create a React project with the `igr-ts` project type |
| 57 | +- Configure TypeScript |
| 58 | +- Set up Ignite UI for React components |
| 59 | + |
| 60 | +### 3. Creating a Web Components Project |
| 61 | + |
| 62 | +Ask Claude: |
| 63 | +``` |
| 64 | +I need a Web Components project called "widget-app" using Ignite UI |
| 65 | +``` |
| 66 | + |
| 67 | +The MCP server will: |
| 68 | +- Create a project with the `igc-ts` project type |
| 69 | +- Set up Ignite UI for Web Components |
| 70 | + |
| 71 | +### 4. Upgrading to Licensed Version |
| 72 | + |
| 73 | +Ask Claude: |
| 74 | +``` |
| 75 | +Upgrade my current Ignite UI project to use the licensed version instead of trial |
| 76 | +``` |
| 77 | + |
| 78 | +The MCP server will: |
| 79 | +- Update package.json to use licensed Ignite UI packages |
| 80 | +- Optionally run npm install to apply changes |
| 81 | + |
| 82 | +### 5. Finding Component Documentation |
| 83 | + |
| 84 | +Ask Claude: |
| 85 | +``` |
| 86 | +Show me documentation for the Ignite UI data grid component in Angular |
| 87 | +``` |
| 88 | + |
| 89 | +The MCP server will: |
| 90 | +- Provide a search URL for the data grid documentation |
| 91 | +- Include Angular-specific context |
| 92 | +- Link to code examples and API documentation |
| 93 | + |
| 94 | +## Tool Reference |
| 95 | + |
| 96 | +### create_igniteui_project |
| 97 | + |
| 98 | +Creates a new Ignite UI project for the specified framework. |
| 99 | + |
| 100 | +**Example Request:** |
| 101 | +```json |
| 102 | +{ |
| 103 | + "name": "create_igniteui_project", |
| 104 | + "arguments": { |
| 105 | + "name": "my-app", |
| 106 | + "framework": "angular", |
| 107 | + "projectType": "igx-ts", |
| 108 | + "template": "side-nav", |
| 109 | + "skipGit": false, |
| 110 | + "skipInstall": false |
| 111 | + } |
| 112 | +} |
| 113 | +``` |
| 114 | + |
| 115 | +**Supported Frameworks:** |
| 116 | +- `angular` - Ignite UI for Angular |
| 117 | +- `react` - Ignite UI for React |
| 118 | +- `webcomponents` - Ignite UI for Web Components |
| 119 | +- `jquery` - Ignite UI for jQuery |
| 120 | + |
| 121 | +**Project Types by Framework:** |
| 122 | +- Angular: `igx-ts` (TypeScript) |
| 123 | +- React: `es6`, `igr-es6`, `igr-ts` (TypeScript) |
| 124 | +- Web Components: `igc-ts` (TypeScript) |
| 125 | +- jQuery: `js` |
| 126 | + |
| 127 | +**Common Templates:** |
| 128 | +- `empty` - Minimal project structure |
| 129 | +- `side-nav` - Application with side navigation |
| 130 | +- `side-nav-auth` - Application with side navigation and authentication |
| 131 | + |
| 132 | +### upgrade_to_licensed |
| 133 | + |
| 134 | +Upgrades a project from trial to licensed Ignite UI packages. |
| 135 | + |
| 136 | +**Example Request:** |
| 137 | +```json |
| 138 | +{ |
| 139 | + "name": "upgrade_to_licensed", |
| 140 | + "arguments": { |
| 141 | + "projectPath": "./my-app", |
| 142 | + "skipInstall": false |
| 143 | + } |
| 144 | +} |
| 145 | +``` |
| 146 | + |
| 147 | +**Supported Project Types:** |
| 148 | +- Angular `igx-ts` projects |
| 149 | +- React `igr-ts` projects |
| 150 | +- Web Components `igc-ts` projects |
| 151 | + |
| 152 | +**Note:** jQuery projects do not support this upgrade path. |
| 153 | + |
| 154 | +### generate_from_docs |
| 155 | + |
| 156 | +Searches Ignite UI documentation for components and code examples. |
| 157 | + |
| 158 | +**Example Request:** |
| 159 | +```json |
| 160 | +{ |
| 161 | + "name": "generate_from_docs", |
| 162 | + "arguments": { |
| 163 | + "component": "data-grid", |
| 164 | + "framework": "angular" |
| 165 | + } |
| 166 | +} |
| 167 | +``` |
| 168 | + |
| 169 | +**Common Components:** |
| 170 | +- `grid` / `data-grid` - Data grid component |
| 171 | +- `chart` - Chart components |
| 172 | +- `combo` - Combo box component |
| 173 | +- `tree` - Tree component |
| 174 | +- `dialog` - Dialog component |
| 175 | + |
| 176 | +## Troubleshooting |
| 177 | + |
| 178 | +### MCP Server Not Responding |
| 179 | + |
| 180 | +1. Verify the server is installed: |
| 181 | + ```bash |
| 182 | + npm list -g @igniteui/mcp-server |
| 183 | + ``` |
| 184 | + |
| 185 | +2. Test the server manually: |
| 186 | + ```bash |
| 187 | + npx @igniteui/mcp-server |
| 188 | + ``` |
| 189 | + |
| 190 | +3. Check Claude Desktop logs for errors |
| 191 | + |
| 192 | +### Project Creation Fails |
| 193 | + |
| 194 | +- Ensure the project name is valid (starts with a letter, alphanumeric) |
| 195 | +- Check that the directory doesn't already exist |
| 196 | +- Verify you have internet connection for package downloads |
| 197 | +- Try with `skipInstall: true` to debug installation issues |
| 198 | + |
| 199 | +### Upgrade Command Not Working |
| 200 | + |
| 201 | +- Verify you're in an Ignite UI project directory |
| 202 | +- Check that `ignite-ui-cli.json` exists in the project root |
| 203 | +- Ensure the project type is supported (igx-ts, igr-ts, or igc-ts) |
| 204 | + |
| 205 | +## Advanced Usage |
| 206 | + |
| 207 | +### Custom Themes |
| 208 | + |
| 209 | +When creating a project, you can specify a custom theme: |
| 210 | + |
| 211 | +``` |
| 212 | +Create an Angular app with the bootstrap theme |
| 213 | +``` |
| 214 | + |
| 215 | +### Skipping Installation |
| 216 | + |
| 217 | +For faster project creation during development: |
| 218 | + |
| 219 | +``` |
| 220 | +Create a React app named "test-app" but skip npm install |
| 221 | +``` |
| 222 | + |
| 223 | +### Multiple Projects |
| 224 | + |
| 225 | +You can create multiple projects in succession: |
| 226 | + |
| 227 | +``` |
| 228 | +Create three projects: an Angular app called "admin", a React app called "client", and a Web Components app called "widgets" |
| 229 | +``` |
| 230 | + |
| 231 | +## Learn More |
| 232 | + |
| 233 | +- [Ignite UI for Angular Documentation](https://www.infragistics.com/products/ignite-ui-angular) |
| 234 | +- [Ignite UI for React Documentation](https://www.infragistics.com/products/ignite-ui-react) |
| 235 | +- [Ignite UI for Web Components Documentation](https://www.infragistics.com/products/ignite-ui-web-components) |
| 236 | +- [Ignite UI CLI Wiki](https://github.com/IgniteUI/igniteui-cli/wiki) |
| 237 | +- [Model Context Protocol](https://modelcontextprotocol.io/) |
0 commit comments