#!/usr/bin/env node import type { TransportConfig } from "./transport/config.js"; /** * Parse command line arguments for TouchDesigner connection */ export declare function parseArgs(args?: string[]): { host: string; port: number; }; /** * Parse transport configuration from command line arguments * * Detects if HTTP mode is requested via --mcp-http-port flag. * If not specified, defaults to stdio mode. * * @param args - Command line arguments (defaults to process.argv.slice(2)) * @returns Transport configuration (stdio or streamable-http) * * @example * ```bash * # Stdio mode (default) * touchdesigner-mcp-server --host=http://localhost --port=9981 * * # HTTP mode * touchdesigner-mcp-server --mcp-http-port=6280 --mcp-http-host=127.0.0.1 * ``` */ export declare function parseTransportConfig(args?: string[]): TransportConfig; /** * Start TouchDesigner MCP server * * Supports both stdio and HTTP transport modes based on command line arguments. * * @param params - Server startup parameters * @param params.argv - Command line arguments * @param params.nodeEnv - Node environment * * @example * ```bash * # Stdio mode (default) * touchdesigner-mcp-server --host=http://localhost --port=9981 * * # HTTP mode * touchdesigner-mcp-server --mcp-http-port=6280 --host=http://localhost --port=9981 * ``` */ export declare function startServer(params?: { nodeEnv?: string; argv?: string[]; }): Promise;