дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
The MCP server's instructions and get_workspace_roots only asked for the roots when the user asked about directories or a change looked like it might span projects. An agent that took its working directory for the whole workspace never got there, and missed the projects attached in the IDE. Both now say to call get_workspace_roots before the first project-related operation in a session, and spell out what the answer means: projectRoot is the project the connection serves and the default base for paths, roots is the workspace scope to search and read rather than a list of projects to change, and neither changes the agent's working directory or permissions. The instructions also say to ask again after the user switches or attaches a project. Clients that load tool descriptions lazily still see the rule in the initialize instructions. Fixes #5751