Private
Public Access
0
0
Files
manual_slop/docs/reports/2026-03-02/MCP_BUGFIX_20260306.md
T
ed 7a96d0264d chore(docs): organize reports into week folders (113 files, 6 weeks)
Moves 113 loose files in docs/reports/ into week folders named
<YYYY>-<MM>-<DD> (Monday of the file's week). Weeks created:
2026-03-02, 2026-05-04, 2026-05-11, 2026-06-01, 2026-06-08, 2026-06-15.

Current week's files (June 22+) stay in place; 23 in-flight reports
remain in docs/reports/ root. Subdirectories code_path_audit/ and
license_cve_audit/ untouched.
2026-06-26 23:02:50 -04:00

675 B

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+.