import { runKanbanMcpServer } from "../mcp/server.js";
export function isMcpSubcommand(argv) {
    return argv[0] === "mcp";
}
function parseMcpCliOptions(args) {
    let help = false;
    for (const arg of args) {
        if (arg === "--help" || arg === "-h") {
            help = true;
        }
    }
    return {
        help,
    };
}
function printMcpHelp() {
    process.stdout.write("kanban mcp\n");
    process.stdout.write("Run Kanban as a local MCP stdio server.\n");
    process.stdout.write("\n");
    process.stdout.write("Usage:\n");
    process.stdout.write("  kanban mcp\n");
    process.stdout.write("  kanban mcp --help\n");
}
export async function runMcpSubcommand(argv) {
    const options = parseMcpCliOptions(argv.slice(1));
    if (options.help) {
        printMcpHelp();
        return;
    }
    await runKanbanMcpServer(process.cwd());
}
//# sourceMappingURL=mcp.js.map