Stateful Sandboxes for Stateless Agents: Designing Durable Volumes for MCP Tool Workspaces
When an agent edits files and runs tests through MCP tools, what should still be there if its sandbox restarts? At AGNTCon + MCPCon Japan in Tokyo, I walked through how I decide what to keep, who can access it, and how long it should last.
I use Kubernetes PersistentVolumes and JuiceFS CSI to make those decisions concrete. The examples cover isolating workspaces across tenants, sharing inputs read-only, and using snapshots and remounts to let an agent pick up where it left off. I also discuss why dependency caches and published artifacts need different retention policies.
Resources
Watch on YouTube View slides (PDF)- MCP
- Agent Sandboxes
- Kubernetes
- JuiceFS