Blog
Guides

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.

Aadil Ghani
Aadil Ghani
Founder, Pushary
Nov 25, 20262 min read
Share

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 needWhere to startWhat to check
Let an MCP client search and edit project filesFilesystem MCP serverList its allowed directories. Give it only the project folder it needs.
Restrict files a shell command can read or changeYour agent's sandboxCheck read and write settings separately. Test both with disposable files.
Ask before an edit touches a second folderPushary scope approval with a supported hookConfirm 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/.

  1. Connect your agent to Pushary and enable its supported hook.
  2. 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 under enforces.
  3. 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.

Aadil Ghani
Aadil Ghani
Founder, Pushary

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.

Read next

Guides

The four levels of AI agent oversight: notify, approve, policy, audit

Oversight comes in four levels. Notify is parity now. Approve catches the moment. Policy decides without you, including on the amount. Audit proves what happened.

Jun 6, 2026Updated Sep 22, 20269 min readAadil Ghani
Guides

Allowlist vs denylist for AI agent permissions, and why prefix denylists leak

A denylist tries to name every dangerous command and always misses one. Pair a read-only safe floor with an allowlist instead.

May 28, 2026Updated Nov 25, 20266 min readAadil Ghani
Guides

What is MCP, and how agents use it to notify you and ask for approval

The Model Context Protocol lets agents call external tools. Two of them can ping you and ask for a yes or no before the agent acts.

May 23, 20264 min readAadil Ghani

Let your agents work. Stay in control.

Get the questions that need you on your phone or Mac. Approve, reject, or answer so your agent knows what to do next.