"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MCPStartCommand = void 0;
const chalk_1 = __importDefault(require("chalk"));
const mycontext_server_1 = require("../mcp/mycontext-server");
class MCPStartCommand {
    register(program) {
        program
            .command("mcp:start")
            .description("Start the MyContext MCP Server for GitLab Duo integration")
            .option("-p, --path <path>", "Path to the project root", process.cwd())
            .action(async (options) => {
            try {
                console.error(chalk_1.default.blue.bold("🚀 Starting MyContext MCP Server..."));
                const server = new mycontext_server_1.MyContextMCPServer(options.path);
                await server.start();
            }
            catch (error) {
                console.error(chalk_1.default.red("❌ Failed to start MCP server:"), error.message);
                process.exit(1);
            }
        });
    }
}
exports.MCPStartCommand = MCPStartCommand;
//# sourceMappingURL=mcp-start.js.map