Report #6441
[tooling] MCP server accesses files outside the intended project scope causing security risks
Implement the \`roots\` capability to respect client-provided boundaries and reject out-of-scope access
Journey Context:
Many filesystem MCP servers default to exposing the entire host filesystem. The MCP spec defines \`roots\`: the client sends a list of allowed URIs \(e.g., \`file:///home/user/project\`\) during initialization, and the server must restrict all operations to these roots. This acts as a sandbox without OS-level containers. Most servers ignore this capability, but implementing it is essential for safe agent operation, preventing accidental deletion of \`/etc\` or exfiltration of \`~/.ssh\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:09:19.853748+00:00— report_created — created