What are the best tools for AI agent file access?
Choose a filesystem MCP server to open project files, a sandbox to restrict shell access, or Pushary to ask before an agent edits outside its approved scope.

Use the Filesystem MCP server when your agent needs to open and edit files in a specific folder. Use a sandbox when the agent also runs shell commands. Add Pushary when you want a person to decide whether a supported edit can cross the boundary agreed for one task.
| What you need | Where to start | What to check |
|---|---|---|
| Let an MCP client search and edit project files | Filesystem MCP server | List its allowed directories. Give it only the project folder it needs. |
| Restrict files a shell command can read or change | Your agent's sandbox | Check read and write settings separately. Test both with disposable files. |
| Ask before an edit touches a second folder | Pushary scope approval with a supported hook | Confirm the hook sees this session and the approved scope includes a path rule. |
Does a filesystem server give the agent read-only access?
The reference server includes write, edit and move tools. Giving it a folder can allow changes wherever its operating-system account has write access. For a read-only document search, expose a read-only mount or use an account with read-only permissions. Try reading a sample document, then check that a write to a disposable file in the same folder fails. Filesystem MCP server documentation
What if the agent can run shell commands?
An MCP server's directory list applies to calls through that server. A shell has its own access. For example, Claude Code's Bash sandbox can restrict filesystem access for commands and their child processes. Check which tools run outside that sandbox before giving the agent sensitive files. Claude Code sandbox documentation
How do I approve an edit outside the task?
Suppose you ask an agent to fix a typo in your help pages. You want it to edit docs/ freely and ask before touching src/.
- Connect your agent to Pushary and enable its supported hook.
- Ask the agent to propose
docs/as the allowed path for this session. Review the path on your phone. Check that the returned scope is ratified, the hook has seen the session and the path rule appears underenforces. - In a disposable checkout, ask for a harmless change under
src/using the agent's Edit tool. The hook should stop the edit for a scope decision. Decline and check that the file is unchanged.
The scope hook checks supported edit and write calls that carry a path. Reads, shell commands and MCP calls fall outside that check. Keep the sandbox in place for those shell commands. See exactly what Pushary checks.

Building Pushary so an AI agent can reach you on your phone and wait for a yes before it does something you would not want.