mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
In remote development (SSH, WSL, Dev Containers) the built-in IDE MCP server ran only in the desktop shell: openidea-server never started it or answered --mcp-stdio, MCP status and confirmation commands ran locally, and the Settings window showed the desktop's mcpServer settings for a remote window. McpService and the MCP commands move into ide-host, so openidea-server runs its own MCP server per host with a stable ~/.openidea/bin/openidea-server --mcp-stdio bridge. mcpServer.* settings of a remote window apply to the remote host only. Remote MCP confirmation requests show only when this machine trusts the remote project, and their answers route back to the server. Several servers sharing one data directory (several remote windows on a host) each record a discovery entry; the stdio bridge picks the one that has the project open by probing tools/list, and a server leaving promotes a live one. Review follow-ups: the bridge no longer matches the initialize instructions text, a starting server drops entries of servers that stopped listening, the stdio link is written only when the MCP server starts, the MCP settings page reloads its status after Apply (a remote server's settings events reach the project window only), and the unused process-wide MCP executable in ide-agent is gone. Co-authored-by: dengliu <dengliu@users.noreply.github.com>