From 4d30cb1b734a54e2c6342bc303aacd6668bc2fb5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 4 Dec 2026 13:22:26 -0800 Subject: [PATCH] Docs: say when a UI tool reports a window connection error docs/mcp.md now says that a UI-only tool returns the window-required message in a headless session, including one the closed-app choice started, and returns the window lookup, launch or authentication error otherwise. --- docs/mcp.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/mcp.md b/docs/mcp.md index 2fd8648262..421575e3cc 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -44,6 +44,11 @@ launch|headless|error` overrides the choice for one server. A session that went documents don't move under the agent. While agents may not use VectorCraft, plain `mcp` runs headless with only the folders given on its command line, as before. +A UI-only tool returns the window-required message when the session is headless. This includes when the +closed-app policy selects headless mode, such as `--when-closed headless` with a stale connection file +whose port has no listener. For plain `mcp`, the tool returns any error reported by window lookup, +launch, or authentication. + Preferences › AI Integrations shows the switch's state, the port agents connect on, Control Port (0: any free port), the two folders and the closed-app choice. Without the `AI-MCP` flag it only says that agents use VectorCraft without a window. The same settings are the UI command `prefs.agents {controlPort?, readRoot?,