-
Notifications
You must be signed in to change notification settings - Fork 8
ai config
The ai-config command sets up AI coding assistant integration for your Ignite UI project. In a single command, it:
- Configures MCP servers — writes the MCP config file for your chosen coding assistant with the Ignite UI MCP server entries
- Copies skill files — adds framework-specific skill guides into your agent directories
- Sets up instruction files — populates each agent's instruction file with project-specific guidance Most common usage:
ig ai-config --assistants generic --agents claude| Flag | Values | Default |
|---|---|---|
--assistants |
generic, vscode, cursor, gemini, junie, none
|
Prompted interactively; generic in non-interactive mode |
--agents |
generic, claude, copilot, cursor, codex, windsurf, gemini, junie, none
|
Prompted interactively; generic + claude in non-interactive mode |
| Coding Assistant | Choice value | Config Path | Root Key |
|---|---|---|---|
| Generic (Claude Code, VS Code, and others) | generic |
.mcp.json |
mcpServers |
| VS Code (GitHub Copilot) | vscode |
.vscode/mcp.json |
servers |
| Cursor | cursor |
.cursor/mcp.json |
mcpServers |
| Gemini | gemini |
.gemini/settings.json |
mcpServers |
| JetBrains Junie | junie |
.junie/mcp/mcp.json |
mcpServers |
| Agent | Skills Directory | Instruction File |
|---|---|---|
| Generic | .agents/skills |
AGENTS.md |
| Claude | .claude/skills |
.claude/CLAUDE.md |
| Copilot | .github/skills |
.github/copilot-instructions.md |
| Cursor | .cursor/skills |
.cursor/rules/cursor.mdc |
| Codex | .codex/skills |
.codex/instructions.md |
| Windsurf | .windsurf/skills |
.windsurf/rules/guidelines.md |
| Gemini | .gemini/skills |
.gemini/GEMINI.md |
| Junie | .junie/skills |
.junie/guidelines.md |
Run inside an existing Ignite UI project to add or update your AI configuration at any time:
# Interactive — prompts for coding assistants, then agents
ig ai-config
# Non-interactive — specify both assistants and agents
ig ai-config --assistants cursor --agents claude copilot
ig ai-config --assistants generic vscode --agents claude generic cursor
# Skip MCP configuration only
ig ai-config --assistants none --agents claude generic
# Skip skill files and instructions only (MCP servers are still configured)
ig ai-config --assistants vscode --agents noneAI configuration runs after the project structure is generated but before dependencies are installed.
# Interactive — prompts for AI assistants and agents after scaffolding
ig new my-app --framework=angular --type=igx-ts
# Non-interactive — specify assistants and agents upfront
ig new my-app --framework=angular --type=igx-ts --agents claude copilot --assistants generic
# Skip AI configuration entirely
ig new my-app --framework=angular --type=igx-ts --agents none --assistants noneSequence during ig new <name>:
- Project files are generated
- AI configuration runs inside the new project directory
- Git is initialized (unless
--skip-git) - Dependencies are installed (unless
--skip-install) Because AI configuration runs before packages are installed, skill files fall back to the CLI's built-in templates. Re-runig ai-configafter installing packages to pick up the latest skill files.
Running ig new without a project name launches a step-by-step wizard. After choosing your framework, project type, and theme, you'll be prompted for coding assistants and agents. The wizard mirrors the options in the tables above, with Generic and Claude pre-selected by default.
For Angular CLI projects, AI configuration is available as a schematic:
# Interactive — prompts for coding assistants and agents
ng generate @igniteui/angular-schematics:ai-config
# With specific assistants and agents
ng generate @igniteui/angular-schematics:ai-config --assistants cursor --agents claude copilot
# Runs automatically as part of ng add (defaults: agents ["claude", "generic"], assistants ["generic"])
ng add igniteui-angularWhen run via the Angular schematic, an additional angular-cli MCP server entry is included automatically alongside the Ignite UI servers.
Skill files are framework-specific guides copied into each agent's skills directory. They are sourced from your installed Ignite UI package and kept in sync each time you run ig ai-config — existing files are only updated if their content has changed.
Tip: If you run
ig ai-configbefore installing packages (e.g. with--skip-install), the CLI falls back to built-in templates. Re-run the command after installing to pick up the skill files from your installed version. If you see a warning that no skill files were found, check that your project has anignite-ui-cli.jsonor apackage.jsonwith Ignite UI dependencies.
The command writes (or merges into) the config file for your chosen coding assistant. Existing third-party MCP server entries are always preserved — the command merges, never overwrites.
Generic, Cursor, Gemini, and Junie (.mcp.json and equivalents, root key mcpServers):
{
"mcpServers": {
"igniteui-cli": {
"command": "npx",
"args": ["-y", "igniteui-cli", "mcp"]
},
"igniteui-theming": {
"command": "npx",
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
}
}
}VS Code / GitHub Copilot (.vscode/mcp.json, root key servers):
{
"servers": {
"igniteui-cli": {
"command": "npx",
"args": ["-y", "igniteui-cli", "mcp"]
},
"igniteui-theming": {
"command": "npx",
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
}
}
}Angular schematic — also adds an angular-cli server:
{
"mcpServers": {
"angular-cli": {
"command": "npx",
"args": ["-y", "@angular/cli", "mcp"]
}
}
}