You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The comtypes gen-cache startup race reported in #357 / #374 and fixed by PR #358 is still hitting users in the wild, because the Claude Desktop extension directory still distributes v0.7.2, which predates the fix. Please push an updated extension build (current release v0.8.5 already contains uia/comtypes_cache.py / safe_get_module()) to the Claude Desktop extension channel.
Environment
Windows 11 Home, build 26200
Windows-MCP installed from the Claude Desktop extension directory: %APPDATA%\Claude\Claude Extensions\ant.dir.cursortouch.windows-mcp
Claude Desktop spawned three server instances within ~25 s (one per session, plus a shared pool). The comtypes cache was being regenerated at that moment; two instances started fine, the third read a partially written module and died:
ImportError: cannot import name 'PropertyConditionFlags_None'
from 'comtypes.gen._944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0'
Claude log:
2026-08-31T07:52:13.692Z [Windows-MCP] [error] Couldn't start for Cowork and Code sessions. Error: Connection closed
2026-08-31 15:52:13 [error] [LocalMcpServerManager] Failed to connect to Windows-MCP: Connection closed
The gen-cache files (_944DE083...py, UIAutomationClient.py) have mtime 15:52:13 local — exactly the crash moment. Earlier intermittent Server transport closed unexpectedly → "Server disconnected" alerts on 08-25/08-26 match the same pattern. The user experiences this as random "Server disconnected" popups.
Confirmation that the shipped 0.7.2 lacks the fix
In the installed extension:
src/windows_mcp/uia/comtypes_cache.py does not exist
src/windows_mcp/uia/core.py:68 still calls comtypes.client.GetModule("UIAutomationCore.dll") directly, no lock, no corrupt-cache recovery
Checked against the repo: src/windows_mcp/uia/comtypes_cache.pyis present at tag v0.8.5, so the fix just never reached the extension channel.
Ask
Publish a current build (v0.8.5 or later) to the Claude Desktop / Anthropic extension directory so DXT users get the #358 fix. Until then, every extension install re-hits the race after each venv rebuild or concurrent cold start.
Workaround for other users landing here
Pre-generate the cache once in a single process (with Claude Desktop closed):
uv --directory "$env:APPDATA\Claude\Claude Extensions\ant.dir.cursortouch.windows-mcp" run python -c "import comtypes.client; comtypes.client.GetModule('UIAutomationCore.dll')"
The crash is transient and self-heals once the cache is complete, but it recurs after extension updates rebuild the venv.
Summary
The comtypes gen-cache startup race reported in #357 / #374 and fixed by PR #358 is still hitting users in the wild, because the Claude Desktop extension directory still distributes v0.7.2, which predates the fix. Please push an updated extension build (current release v0.8.5 already contains
uia/comtypes_cache.py/safe_get_module()) to the Claude Desktop extension channel.Environment
%APPDATA%\Claude\Claude Extensions\ant.dir.cursortouch.windows-mcpmanifest.json/_update_metadata.json: version 0.7.2,downloadedAt= 2026-07-30 — one day before PR Fix corrupted comtypes.gen cache from concurrent generation #358 was merged (2026-07-31)Fresh occurrence (2026-08-31)
Claude Desktop spawned three server instances within ~25 s (one per session, plus a shared pool). The comtypes cache was being regenerated at that moment; two instances started fine, the third read a partially written module and died:
Claude log:
The gen-cache files (
_944DE083...py,UIAutomationClient.py) have mtime 15:52:13 local — exactly the crash moment. Earlier intermittentServer transport closed unexpectedly→ "Server disconnected" alerts on 08-25/08-26 match the same pattern. The user experiences this as random "Server disconnected" popups.Confirmation that the shipped 0.7.2 lacks the fix
In the installed extension:
src/windows_mcp/uia/comtypes_cache.pydoes not existsrc/windows_mcp/uia/core.py:68still callscomtypes.client.GetModule("UIAutomationCore.dll")directly, no lock, no corrupt-cache recoveryChecked against the repo:
src/windows_mcp/uia/comtypes_cache.pyis present at tag v0.8.5, so the fix just never reached the extension channel.Ask
Publish a current build (v0.8.5 or later) to the Claude Desktop / Anthropic extension directory so DXT users get the #358 fix. Until then, every extension install re-hits the race after each venv rebuild or concurrent cold start.
Workaround for other users landing here
Pre-generate the cache once in a single process (with Claude Desktop closed):
The crash is transient and self-heals once the cache is complete, but it recurs after extension updates rebuild the venv.