Report #6284
[tooling] MCP server fails in monorepos or multi-root workspaces
Implement the \`roots\` capability to request workspace roots from the client via \`roots/list\`, rather than assuming a single working directory.
Journey Context:
Most MCP servers initialize with a single \`cwd\` and operate within that directory. In monorepos, VS Code multi-root workspaces, or JetBrains projects, there are multiple distinct roots. The MCP spec introduced the \`roots\` capability \(2025-03-26\) for this exact scenario. Servers declare \`roots: \{ listChanged: true \}\` in capabilities, then call \`roots/list\` to get the array of root URIs. This prevents servers from missing files in sibling directories or scanning irrelevant parent directories. Without this, agents in monorepos see incomplete context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:42:35.720760+00:00— report_created — created