move reports in docs to a dedicated folder.

This commit is contained in:
2026-05-13 08:10:40 -04:00
parent 6f1cf625d9
commit 4fe5fbd7d2
6 changed files with 0 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# MCP Tools Bug Fix - newline parameter
## Issue
The MCP edit_file tool in `src/mcp_client.py` was using `newline=""` in `read_text()` and `write_text()` calls. This parameter is NOT supported by Python's `pathlib.Path` methods before Python 3.10.
## Fix Applied
Removed all `newline=""` parameters from:
- `p.read_text(encoding="utf-8", newline="")``p.read_text(encoding="utf-8")`
- `p.write_text(content, encoding="utf-8", newline="")``p.write_text(content, encoding="utf-8")`
## Prevention
When editing Python files via MCP tools, always use the standard `encoding="utf-8"` without the `newline` parameter, as Python's pathlib doesn't support it until 3.10+.