MCP native user-directory management is a platform capability, not a UI-layer capability. The UI package can render and coordinate MCP settings for desktop, web, and mobile, but it must not call Electron preload APIs directly.
packages/ui depends on IPlatformService for native MCP operations./remote forwards MCP platform requests through the existing shared-host attachment app-payload path to the desktop window that owns the host.The platform abstraction owns these operations:
loadMcpFromUserDirectorysaveMcpToUserDirectorymigrateLegacyCommonMcpThis keeps Electron-specific window.zcode access inside desktop renderer bootstrap code and preserves UI reuse across desktop, web, and mobile remote control.
auto:先尝试 modern
server/discover,只在 transport-specific legacy evidence 下回退 initialize;显式 legacy 配置
继续跳过探测。node_repl 固定使用 MCP 2026-07-28;每次 js 使用一次性执行 kernel,不使用
Mcp-Session-Id,也不新增模型可见的 Browser context handle。_meta 是 client 提供的请求上下文,不是授权事实;宿主必须用私有 stdio/pipe token、当前
session registry 和 handle binding 重新校验。workspaceKey 共享无状态 node_repl process;第三方 server 默认保持
session isolation。/remote 只复用 desktop shared-host attachment 已有的 Agent/MCP runtime;relay 和
desktop main 不保存 MCP tool/kernel state 或 conversation state。desktop-continuous 与 mobile web-remote-replayable 的消息投递边界不因 MCP process
共享而改变。完整合同见 docs/mcp-stateless-node-repl.md。
通用 client 协商合同见 docs/mcp-dual-era-version-negotiation.md。