You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MCP_README.md
+188-7Lines changed: 188 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ This document describes the Model Context Protocol (MCP) server implementation f
4
4
5
5
## Overview
6
6
7
-
The MCP server provides a programmatic interface for AI assistants to interact with Ignite UI CLI functionality. It follows the [Model Context Protocol](https://modelcontextprotocol.io/) specification.
7
+
The MCP server provides a programmatic interface for AI assistants to interact with Ignite UI CLI functionality. It follows the [Model Context Protocol](https://modelcontextprotocol.io/) specification and implements all three core MCP primitives: **Tools**, **Resources**, and **Prompts**.
8
8
9
9
## Packages
10
10
11
11
### @igniteui/cli MCP Server
12
12
13
-
The CLI package includes an `mcp` command that exposes key CLI functionality through MCP tools.
13
+
The CLI package includes an `mcp` command that exposes key CLI functionality through MCP tools for **all Ignite UI frameworks**: Angular, React, WebComponents, and jQuery.
14
14
15
15
#### Usage
16
16
@@ -41,22 +41,75 @@ Add the following configuration to your MCP host:
41
41
}
42
42
```
43
43
44
+
#### MCP Capabilities
45
+
46
+
The server implements:
47
+
- ✅ **Tools** - 8 executable functions for project management
48
+
- ✅ **Resources** - Contextual data access (via tools)
2.**Choose Component** from the table (e.g., grid)
173
+
174
+
3.**Add Component** using suggested command:
175
+
```bash
176
+
ng g @igniteui/angular-schematics:component grid myGrid
177
+
```
178
+
Or:
179
+
```bash
180
+
ig add grid myGrid
181
+
```
182
+
183
+
4.**Start Application**
184
+
```bash
185
+
ng serve # or ig start
186
+
```
187
+
188
+
### Multi-Framework Support
189
+
190
+
The same MCP server works for all frameworks:
191
+
192
+
**For React:**
193
+
```json
194
+
{
195
+
"tool": "ig_list_components_with_commands",
196
+
"arguments": { "framework": "react" }
197
+
}
198
+
```
199
+
200
+
**For WebComponents:**
201
+
```json
202
+
{
203
+
"tool": "ig_list_components_with_commands",
204
+
"arguments": { "framework": "webcomponents" }
205
+
}
206
+
```
207
+
91
208
## Development
92
209
93
210
### Building
@@ -102,6 +219,11 @@ npm run build
102
219
npm test
103
220
```
104
221
222
+
All MCP tests passing:
223
+
- ✅ MCP command tests (3/3)
224
+
- ✅ MCP Server Extended Tests (10/10)
225
+
- ✅ MCP Server Capabilities (3/3)
226
+
105
227
### Linting
106
228
107
229
```bash
@@ -110,13 +232,72 @@ npm run lint
110
232
111
233
## Implementation Details
112
234
113
-
- Both packages use the `@modelcontextprotocol/sdk` library
235
+
### Architecture
236
+
237
+
- Both packages use the `@modelcontextprotocol/[email protected]` library
114
238
- The MCP server uses stdio transport for communication
115
239
- When run in a TTY (interactive terminal), the command displays usage instructions
116
240
- When run non-interactively (e.g., from an MCP host), it starts the MCP server
117
241
242
+
### Server Capabilities
243
+
244
+
```typescript
245
+
capabilities: {
246
+
tools: {}, // Executable functions
247
+
resources: {}, // Contextual data sources
248
+
prompts: {}, // Interaction templates
249
+
}
250
+
```
251
+
252
+
### Table Formatting
253
+
254
+
The enhanced list tools provide formatted tables that show:
255
+
- Component name and description
256
+
-**Two command options**: CLI command AND schematic command (for Angular)
257
+
- Framework-specific start commands
258
+
- Clear next steps guidance
259
+
260
+
This addresses the key requirement for developers to see both command options side-by-side and know how to start their application after adding a component.
261
+
262
+
## Integration with Angular CLI MCP
263
+
264
+
For complete Angular development, configure both MCP servers:
265
+
266
+
```json
267
+
{
268
+
"mcpServers": {
269
+
"angular-cli": {
270
+
"command": "npx",
271
+
"args": ["-y", "@angular/cli", "mcp"]
272
+
},
273
+
"igniteui-cli": {
274
+
"command": "npx",
275
+
"args": ["-y", "igniteui-cli", "mcp"]
276
+
}
277
+
}
278
+
}
279
+
```
280
+
281
+
This allows AI assistants to:
282
+
- Use Angular CLI tools for core Angular operations (build, serve, test, generate standard components)
283
+
- Use Ignite UI CLI tools for Ignite UI-specific operations (add Ignite UI components, configure themes)
0 commit comments