@aashari/mcp-server-atlassian-bitbucket
Version:
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MC
37 lines (36 loc) • 1.17 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 Markdown output format
*/
static validateMarkdownOutput(output: string): void;
/**
* Extracts and parses JSON from CLI output
* Handles output that may contain log lines before the JSON
*
* @param output - The CLI output string
* @returns Parsed JSON object or null if no valid JSON found
*/
static extractJsonFromOutput(output: string): Record<string, unknown> | null;
}