@aashari/boilerplate-mcp-server
Version:
TypeScript MCP server boilerplate with STDIO and HTTP transport support, CLI tools, and extensible architecture
35 lines (34 loc) • 1.08 kB
TypeScript
/**
* Utility for testing CLI commands with real execution
*/
export declare class CliTestUtil {
/**
* Executes a CLI command and returns the result
*
* @param args - CLI arguments to pass to the command
* @param options - Test options
* @returns Promise with stdout, stderr, and exit code
*/
static runCommand(args: string[], options?: {
timeoutMs?: number;
env?: Record<string, string>;
}): Promise<{
stdout: string;
stderr: string;
exitCode: number;
}>;
/**
* Validates that stdout contains expected strings/patterns
*/
static validateOutputContains(output: string, expectedPatterns: (string | RegExp)[]): void;
/**
* Validates TOON output format
* TOON uses "key: value" syntax for objects
*/
static validateToonOutput(output: string): void;
/**
* Validates Markdown output format
* @deprecated Use validateToonOutput for new code - output is now TOON by default
*/
static validateMarkdownOutput(output: string): void;
}