docs(mcp): Document new Python structural tools
This commit is contained in:
@@ -87,6 +87,10 @@ These use `file_cache.ASTParser` (tree-sitter) or stdlib `ast` for structural co
|
||||
| `py_check_syntax` | `path` | Quick syntax validation via `ast.parse()`. |
|
||||
| `py_get_hierarchy` | `path`, `class_name` | Scans directory for subclasses of a given class. |
|
||||
| `py_get_docstring` | `path`, `name` | Extracts docstring for module, class, or function. |
|
||||
| `py_remove_def` | `path`, `name` | Excises a definition using AST boundaries. |
|
||||
| `py_add_def` | `path`, `name`, `new_content`, `anchor_type`, `anchor_symbol` | Inserts code with automatic 1-space indentation normalization. |
|
||||
| `py_move_def` | `src_path`, `dest_path`, `name`, `dest_name`, `anchor_type`, `anchor_symbol` | Relocates code across files/contexts. |
|
||||
| `py_region_wrap` | `path`, `start_line`, `end_line`, `region_name` | Wraps line range in `#region` / `#endregion` tags. |
|
||||
|
||||
### C/C++ AST Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user