"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.yargsMcpCommand = void 0;
exports.yargsMcpCommand = {
    command: 'mcp',
    describe: 'Starts the Nx MCP server.',
    builder: (y) => y
        .version(false)
        .strict(false)
        .parserConfiguration({
        'unknown-options-as-args': true,
        'populate--': true,
    })
        .usage('')
        .help(false)
        .showHelp(async () => {
        await (await Promise.resolve().then(() => require('./mcp'))).showHelp();
        process.exit(0);
    }),
    handler: async (args) => {
        await (await Promise.resolve().then(() => require('./mcp'))).mcpHandler(args);
        process.exit(0);
    },
};
