We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b4e8f commit 1e30fe3Copy full SHA for 1e30fe3
src/mcp_text_editor/text_editor.py
@@ -218,7 +218,7 @@ async def edit_file_contents(
218
self._validate_file_path(file_path)
219
try:
220
if not os.path.exists(file_path):
221
- if expected_hash != "": # Only allow empty hash for new files
+ if expected_hash not in ["", None]: # Allow null hash
222
return {
223
"result": "error",
224
"reason": "File not found and non-empty hash provided",
0 commit comments