UNPKG

tree-ast-grep-mcp

Version:

Simple, direct ast-grep wrapper for AI coding agents. Zero abstractions, maximum performance.

56 lines 1.74 kB
import { AstGrepBinaryManager } from '../core/binary-manager.js'; import { WorkspaceManager } from '../core/workspace-manager.js'; /** * Direct replace tool that calls ast-grep run --rewrite with minimal overhead */ export declare class ReplaceTool { 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=replace.d.ts.map