docs(mcp): Document new Python structural tools

This commit is contained in:
2026-05-13 22:01:39 -04:00
parent a88608d16a
commit 46a415c9a0
+4
View File
@@ -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_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_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_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 ### C/C++ AST Tools