logoalt Hacker News

nikita2206today at 11:04 AM1 replyview on HN

Just watching filesystem for file changes and updating the in-memory view of the file on any change? This isn’t really relevant to MCP, though one option is to provide a different tool to the AI agent for file modifications, which would make modifications through the file editor itself.


Replies

vayliantoday at 11:10 AM

> Just watching filesystem for file changes

This is non-trivial, if you want to do it efficiently. On Linux you can set up an inotify listener for individual files, but not for entire directories. This also breaks down if you are working with data on non-local drives.