tree-ast-grep-mcp
Version:
Simple, direct ast-grep wrapper for AI coding agents. Zero abstractions, maximum performance.
19 lines • 696 B
TypeScript
import { AstGrepMCPError } from '../types/errors.js';
/**
* Normalizes ast-grep command failures into actionable MCP diagnostics.
*/
export declare class AstGrepErrorTranslator {
/**
* Map raw stderr output to a concise human readable message.
*/
static translateCliError(stderr: string, context: any): string;
/**
* Build an MCP error object with contextual remediation guidance.
*/
static createUserFriendlyError(error: Error, context: any): AstGrepMCPError;
/**
* Format an MCP error into a multi-line troubleshooting message.
*/
static formatContextualError(error: AstGrepMCPError): string;
}
//# sourceMappingURL=error-handler.d.ts.map