# Implementation Plan: Python Structural MCP Tools

## Phase 1: Core Logic Implementation
- [x] Task: Create `scripts/py_struct_tools.py` to house shared AST and regex manipulation logic. [d044ccb]
- [x] Task: Implement the "Surgical Indentation Shifter" utility to enforce 1-space indentation context without destructive full-file formatting. [d044ccb]
- [x] Task: Implement `py_remove_def` core logic. [d044ccb]
- [x] Task: Implement `py_add_def` core logic. [d044ccb]
- [x] Task: Implement `py_move_def` core logic. [d044ccb]
- [x] Task: Implement `py_region_wrap` core logic. [d044ccb]
- [x] Task: Conductor - User Manual Verification 'Phase 1: Core Logic Implementation' (Protocol in workflow.md) [578d9a2]

## Phase 2: MCP Client Integration
- [x] Task: Register JSON schemas for `py_remove_def`, `py_add_def`, `py_move_def`, and `py_region_wrap` in `src/mcp_client.py`. [8b25727]
- [x] Task: Implement dispatch handlers in `src/mcp_client.py` to bridge the native tool calls to the `./scripts/py_struct_tools.py` logic. [8b25727]
- [x] Task: Update the `TOOL_NAMES` and `MUTATING_TOOLS` constants to include the new capabilities. [8b25727]
- [x] Task: Conductor - User Manual Verification 'Phase 2: MCP Client Integration' (Protocol in workflow.md) [8b25727]

## Phase 3: Testing & Validation
- [x] Task: Create `tests/test_py_struct_tools.py` and write unit tests for the indentation shifter and AST extraction logic. [0393282]
- [x] Task: Write integration tests verifying the execution of the new tools via the MCP dispatcher. [0393282]
- [x] Task: Run the full test suite in batches to ensure no regressions in existing MCP routing. [a88608d]
- [x] Task: Conductor - User Manual Verification 'Phase 3: Testing & Validation' (Protocol in workflow.md) [a88608d]