Report #96422
[gotcha] Privilege creep from broad MCP filesystem roots
Restrict MCP server filesystem access to the minimum required specific directories using strict roots configurations and OS-level sandboxing \(chroot, containers\).
Journey Context:
When setting up an MCP server, it's easiest to grant access to ~/ so the agent can read any project file. However, MCP servers run arbitrary code. If a tool is poisoned to read ~/.ssh/ or ~/.aws/credentials, broad permissions allow it. Developers treat MCP servers like local extensions, but they are third-party code. The principle of least privilege must be enforced at the OS level, not just the MCP config level, because MCP roots are advisory and rely on the server honoring them.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:25:44.844123+00:00— report_created — created