feat(ai-config): mcp config add assistant choices#1684
Merged
damyanpetev merged 32 commits intoMay 13, 2026
Conversation
…date related prompts Co-authored-by: Copilot <copilot@github.com>
…and enhance related prompts Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the AI configuration flow to make MCP server configuration assistant-agnostic (VS Code vs Cursor/Claude Code/etc.) and to separate MCP configuration from AI “skills and instructions” generation.
Changes:
- Adds assistant-specific MCP config targets (path + root key) and updates MCP writer to support multiple assistants.
- Extends both the CLI command and Angular schematic to accept/prompt for “assistant(s)” separately from “agent(s)”.
- Updates/extends unit and schematic tests and schema prompts/messages to reflect the split between MCP configuration and skills/instructions.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| spec/unit/ai-config-spec.ts | Updates CLI unit tests for new assistant/agent prompting and MCP behavior. |
| packages/ng-schematics/src/cli-config/index.ts | Updates schematic logic to configure MCP per selected assistant(s). |
| packages/ng-schematics/src/cli-config/index_spec.ts | Adds schematic tests for assistant-specific MCP output paths and root keys. |
| packages/ng-schematics/src/cli-config/ai-config-schema.json | Adds assistant option (prompt + enum) and updates agent prompt messaging. |
| packages/core/util/mcp-config.ts | Introduces assistant MCP config map and changes addMcpServers to be assistant-based. |
| packages/cli/lib/commands/ai-config.ts | Adds assistant prompting/selection and routes MCP config generation accordingly. |
Comments suppressed due to low confidence (1)
packages/cli/lib/commands/ai-config.ts:143
- The handler configures MCP servers via
configureMCP(assistants)and then callsconfigure(agents)which also configures MCP (defaulting to VS Code). This causes duplicate writes and ignores the user’s assistant selection (e.g. selecting--assistant noneor choosing “None” interactively still results in VS Code MCP configuration). Pass the selected assistants intoconfigure(...)and/or refactor so MCP is configured exactly once and respects an explicit “none” selection.
if (!assistants?.length) {
assistants = await promptForAssistant();
}
if (!agents?.length) {
agents = await promptForAgents();
}
GoogleAnalytics.post({
t: "event",
ec: "$ig ai-config",
ea: `agent: ${agents.join(", ") || "none"}`
});
if (assistants.length) {
configureMCP(assistants);
}
if (!agents.length) {
Util.log("No AI configuration selected. Skipping.");
return;
}
await configure(agents);
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ng agent selection logic
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…fy related commands
…fy related commands
…ckage installation
… adjust default values in schema
…eter and adjust mcp file paths
e00b27e to
487bb0a
Compare
damyanpetev
reviewed
May 12, 2026
| choices: [...AI_AGENT_CHOICES, "none"] as string[], | ||
| type: "array" | ||
| }) | ||
| .option("assistants", { |
Member
There was a problem hiding this comment.
Or, have we considered naming this something else, like --mcp?
Member
|
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>
…setup for clarity
damyanpetev
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…date related prompts
Description
enhance MCP configuration for multiple coding assistants
Related Issue
Closes #
Type of Change
Affected Packages
igniteui-cli(packages/cli)@igniteui/cli-core(packages/core)@igniteui/angular-templates(packages/igx-templates)@igniteui/angular-schematics(packages/ng-schematics)@igniteui/mcp-server(packages/igniteui-mcp)Checklist
npm run test)npm run build)npm run lint)Additional Context