Skip to content

feat(commands): add MCP command for configuring Ignite UI MCP server#1537

Open
Marina-L-Stoyanova wants to merge 2 commits intofeat/igniteui-mcpfrom
mstoyanoca/mcp_command
Open

feat(commands): add MCP command for configuring Ignite UI MCP server#1537
Marina-L-Stoyanova wants to merge 2 commits intofeat/igniteui-mcpfrom
mstoyanoca/mcp_command

Conversation

@Marina-L-Stoyanova
Copy link
Contributor

Closes # .

Additional information related to this pull request:

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new mcp command to the Ignite UI CLI to configure an MCP server entry for supported AI clients by writing the appropriate client config JSON.

Changes:

  • Introduces a new packages/cli/lib/commands/mcp.ts command that writes MCP server configuration for VS Code and Claude Desktop.
  • Registers the new command in the CLI command index and yargs command list.
  • Extends the known command set (ALL_COMMANDS) with mcp to avoid triggering step-by-step mode.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
packages/cli/lib/commands/types.ts Adds MCP_COMMAND_NAME and includes it in ALL_COMMANDS.
packages/cli/lib/commands/mcp.ts New mcp command implementation that resolves an MCP server entry and writes client config files.
packages/cli/lib/commands/index.ts Exports the new mcp command module.
packages/cli/lib/cli.ts Registers the mcp command with yargs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +99 to +107
async handler(argv: ArgumentsCamelCase) {
GoogleAnalytics.post({
t: "screenview",
cd: "MCP"
});

const client = argv.client as Client;
const entry = resolveMcpEntry();

Comment on lines +14 to +18
const pkgEntry = require.resolve("igniteui-mcp-server");
return { command: "node", args: [pkgEntry] };
} catch {
// Not installed alongside the CLI — download and run on demand via npx
return { command: "npx", args: ["-y", "igniteui-mcp-server"] };
Comment on lines +56 to +58
return JSON.parse(fs.readFileSync(filePath, "utf8")) as T;
} catch {
return fallback;
Comment on lines +85 to +88
const command: CommandModule = {
command: "mcp",
describe: "Configure the Ignite UI MCP server for an AI client",
builder: (yargs) => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants