tree-ast-grep-mcp
Version:
Simple, direct ast-grep wrapper for AI coding agents. Zero abstractions, maximum performance.
56 lines • 1.76 kB
TypeScript
import { AstGrepBinaryManager } from '../core/binary-manager.js';
import { WorkspaceManager } from '../core/workspace-manager.js';
/**
* Simple, direct replace tool that just calls ast-grep run --rewrite with minimal overhead
*/
export declare class SimpleReplaceTool {
private binaryManager;
private workspaceManager;
constructor(binaryManager: AstGrepBinaryManager, workspaceManager: WorkspaceManager);
execute(params: any): Promise<any>;
private parseResults;
static getSchema(): {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
pattern: {
type: string;
description: string;
};
replacement: {
type: string;
description: string;
};
code: {
type: string;
description: string;
};
paths: {
type: string;
items: {
type: string;
};
description: string;
};
language: {
type: string;
description: string;
};
dryRun: {
type: string;
default: boolean;
description: string;
};
timeoutMs: {
type: string;
default: number;
description: string;
};
};
required: string[];
};
};
}
//# sourceMappingURL=simple-replace.d.ts.map