ast-editor
Related Servers
Alternatives to ast-editor
- AlicenseAqualityBmaintenanceEnables AI assistants to search and analyze codebases using Abstract Syntax Tree (AST) pattern matching with ast-grep. Supports structural code search, pattern testing, and AST visualization across multiple programming languages.4467MIT
- AlicenseNot gradedqualityDmaintenanceProvides advanced code structure and semantic analysis through Abstract Syntax Trees (AST) and Abstract Semantic Graphs (ASG) across multiple programming languages. It enables tasks like incremental parsing, complexity analysis, and AST diffing to help models understand and navigate codebases.36MIT
Related Servers
- AlicenseNot gradedqualityDmaintenanceA modular MCP server for code analysis using ast-grep, enabling structural pattern matching and transformations across multiple languages.MIT
- AlicenseBqualityDmaintenanceAdvanced code search and transformation MCP server for AI assistants. Combines ugrep's speed with intelligent replace capabilities, dry-run previews, and language-aware refactoring across 11 tools.110MIT
- AlicenseNot gradedqualityAmaintenanceStandalone MCP server for code structure analysis using tree-sitter. Directory trees, symbol definitions, and call graphs without reading raw source files. Supports Rust, Python, Go, Java, TypeScript, Fortran, JavaScript, C/C++, and C#. Benchmarked up to 68% fewer tokens vs native tools.6Apache 2.0
- AlicenseAqualityBmaintenanceA robust, language-agnostic Model Context Protocol (MCP) server that provides AI coding agents with the ability to edit files surgically via Abstract Syntax Trees (AST) instead of relying on token-heavy, brittle search-and-replace or diff operations.289MIT
- AlicenseAqualityCmaintenanceMCP server that combines Read+Edit file operations into single tool calls. 80-95% fewer tool calls formulti-file refactoring across Claude, Cursor, Windsurf, and more.39 npm3MIT
- AlicenseNot gradedqualityFmaintenanceA runtime-free MCP server that converts source code into AST🌲, regardless of language.87MIT
TDQS
Scored across 28 tools
Most tools are clearly scoped to distinct operations (replace body vs. replace signature vs. replace whole function), and the descriptions include explicit 'Don't use this when' guidance. However, the large number of overlapping edit tools (replace_function, replace_function_body, replace_in_body, replace_signature, add_parameter, remove_parameter) could still cause an agent to pause and choose carefully, especially with insert_in_body vs. insert_sibling vs. add_top_level.
The naming pattern is mostly consistent verb_noun (replace_function, replace_signature, add_import, remove_import, delete_key, add_key, list_symbols, read_symbol). Minor deviations exist: 'edit_leading_comment' uses 'edit' instead of 'replace'/'update', and 'insert_sibling' uses 'insert' while the body-level tool is 'insert_in_body' — but the pattern is still predictable and readable.
28 tools is on the heavy side for a code-editing server, though each tool targets a fairly specific operation. The count is justified by the breadth of languages and file types supported, but it approaches the threshold where an agent may struggle to select among many similar edit operations.
The tool surface covers the full lifecycle of code editing: reading structure (list_symbols, read_symbol, read_imports, find_references), adding/removing/replacing functions, methods, fields, imports, parameters, docstrings, comments, and config values. The only minor gap is the absence of a dedicated 'rename symbol' tool, but that can be composed from replace_signature and replace_in_body/find_references.