Skip to content

[filesystem] write_file silently returns success but never writes to disk on Windows #4138

@6GeMiNi9

Description

@6GeMiNi9

Describe the bug
write_file silently returns success without writing the file to disk on Windows. edit_file, read_file, and list_directory work correctly on the same paths — only write_file is broken.

To Reproduce
Configure the filesystem server against any local directory.
Call write_file with a path to a new file. Response: File created successfully.
Call read_file on the same path. Response: ENOENT: no such file or directory.
Verify externally (Explorer, Test-Path). File does not exist.

Expected behavior
Either write the file, or return an error. Silently returning success while doing nothing leaves the caller unable to detect the failure.
Logs
None visible client-side. Server response is a normal success payload.
Additional context

OS: Windows 11
Claude Desktop: Last
Reproduces with both isUsingBuiltInNodeForMcp: true and system Node
Ruled out: NTFS permissions (PowerShell writes work), Defender, Controlled Folder Access, OneDrive, paths with spaces
Survives full Claude Desktop uninstall + %APPDATA%\Claude wipe + reinstall
edit_file writes persist on the same directory; only write_file is affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions