Report #70153
[frontier] MCP server tools operate without workspace context, producing wrong-scope results or modifying files outside project boundaries
Implement MCP roots in your server to receive the client's workspace context—project directories, repository roots, relevant URIs. Use roots to scope file operations, resolve relative paths correctly, and filter results to the relevant workspace.
Journey Context:
MCP servers that don't consume roots have no awareness of the user's project context. A file-search tool returns results from the entire filesystem instead of the current project. A code-analysis tool indexes unrelated repositories. Roots let the client inform the server about workspace boundaries. The server uses this to resolve relative paths, scope searches, and prevent out-of-workspace operations. This is the difference between a tool that works generically and one that works contextually. Tradeoff: requires client support for roots and server-side logic to consume them, but prevents wrong-scope operations that cause silent data corruption—exactly the kind of bug that is dangerous and hard to detect. Most MCP implementations skip roots because tools 'work' without them, but the scope errors they prevent are precisely the ones that cause agents to modify the wrong files or return irrelevant results.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:20:06.159375+00:00— report_created — created