UNPKG

xc-mcp

Version:

MCP server that wraps Xcode command-line tools for iOS/macOS development workflows

32 lines 1.09 kB
/** * Error formatting utilities for token-efficient error responses * * Condenses verbose Apple framework errors into concise, actionable messages. * Parses nested error dictionaries and extracts only the relevant failure reason. */ /** * Parse and condense Apple error output * * Apple errors often include deeply nested dictionaries with redundant information. * This extracts the core failure reason and filters out noise. * * Example input: * ``` * Simulator device failed to terminate com.example.app. * Info: ["NSLocalizedFailureReason": found nothing to terminate, ...] * ``` * * Example output: * ``` * found nothing to terminate * ``` */ export declare function condenseAppleError(errorOutput: string): string; /** * Format error for LLM response * * Takes raw stderr and returns a concise error message suitable for MCP tools. * Avoids dumping entire error dictionaries while preserving actionable information. */ export declare function formatToolError(stderr: string, defaultMessage?: string): string; //# sourceMappingURL=error-formatter.d.ts.map