#!/usr/bin/env node /** * MCP Hub Lite CLI Entry Point * Implements 7 core commands: start, stop, status, ui, list, restart, tool-use */ import { Command } from 'commander'; /** * Creates and configures the CLI application using Commander.js * * This function initializes the main CLI program with its name, description, and version, * then registers all available commands to provide a complete command-line interface * for managing the MCP Hub Lite service. * * The CLI provides seven core commands: * - start: Launches the MCP Hub Lite service in daemon or foreground mode * - stop: Gracefully terminates the running service instance * - status: Displays current service status including PID, port, host, and server count * - ui: Opens the web-based user interface in the default browser * - list: Shows all configured MCP servers in a tabular format * - restart: Stops and restarts the service with the same configuration * - tool-use: Manage MCP server tools via API (list-servers, list-tools, get-tool, call-tool) * * Usage examples: * ```bash * # Start service in daemon mode * mcp-hub-lite start * * # Start service in foreground mode on custom port * mcp-hub-lite start --port 8080 --foreground * * # Stop the running service * mcp-hub-lite stop * * # Check service status * mcp-hub-lite status * * # Open web UI * mcp-hub-lite ui * * # List all configured servers * mcp-hub-lite list * * # Restart the service * mcp-hub-lite restart * ``` * * @returns {Command} The configured CLI program instance ready for parsing * * @example * ```typescript * const cli = createCli(); * cli.parse(); // Parse command line arguments and execute * ``` * * @see {@link startCommand} - Implementation of the start command * @see {@link stopCommand} - Implementation of the stop command * @see {@link statusCommand} - Implementation of the status command * @see {@link uiCommand} - Implementation of the ui command * @see {@link listCommand} - Implementation of the list command * @see {@link restartCommand} - Implementation of the restart command * @see {@link toolUseCommand} - Implementation of the tool-use command */ export declare function createCli(): Command; //# sourceMappingURL=index.d.ts.map