sprawl mount
📌 1. The Target Problem
AI agents run with full host filesystem permissions and can exfiltrate SSH keys or database secrets. Blocking filesystem access entirely prevents models from reading legitimate shared dependencies, APIs, or documentation templates on disk.
⚙️ 2. Usage & Options
sprawl mount <add|remove|list>
Options & Flags
add <path> --alias NAME: Mounts a path to the given alias prefix.remove <alias>: Deregisters a path mount.list: Displays all configured directory mounts.
🔍 3. How it Works (Under the Hood)
- Registers directory paths and keys under
allowed_mountsin.agents/sprawl_manifest.yml. - Updates the Claude Desktop/IDE MCP configurations (
mcp_config.json). - Validates agent read/write/list queries at the MCP level, returning JSON-RPC block codes if the target is out of bounds.
🩺 4. Troubleshooting
- Agent fails to find files in mount directory
- Resolution: Ensure the agent is instructed to use the
@<alias>/path syntax (e.g.@shared-lib/utils.py) to access mounted files.