feat(python-tools): Implement core logic for structural MCP tools

This commit is contained in:
2026-05-13 21:42:19 -04:00
parent ed3323fdf4
commit d044ccb2e0
2 changed files with 188 additions and 6 deletions
@@ -1,12 +1,12 @@
# Implementation Plan: Python Structural MCP Tools
## Phase 1: Core Logic Implementation
- [ ] Task: Create `scripts/py_struct_tools.py` to house shared AST and regex manipulation logic.
- [ ] Task: Implement the "Surgical Indentation Shifter" utility to enforce 1-space indentation context without destructive full-file formatting.
- [ ] Task: Implement `py_remove_def` core logic.
- [ ] Task: Implement `py_add_def` core logic.
- [ ] Task: Implement `py_move_def` core logic.
- [ ] Task: Implement `py_region_wrap` core logic.
- [x] Task: Create `scripts/py_struct_tools.py` to house shared AST and regex manipulation logic. [fa82c1a]
- [x] Task: Implement the "Surgical Indentation Shifter" utility to enforce 1-space indentation context without destructive full-file formatting. [fa82c1a]
- [x] Task: Implement `py_remove_def` core logic. [fa82c1a]
- [x] Task: Implement `py_add_def` core logic. [fa82c1a]
- [x] Task: Implement `py_move_def` core logic. [fa82c1a]
- [x] Task: Implement `py_region_wrap` core logic. [fa82c1a]
- [ ] Task: Conductor - User Manual Verification 'Phase 1: Core Logic Implementation' (Protocol in workflow.md)
## Phase 2: MCP Client Integration