Skip to content

fix: add MSIX package app path detection for Claude#126

Merged
Jeomon merged 1 commit intoCursorTouch:mainfrom
YoanWai:fix/claude-msix-app-path
Mar 25, 2026
Merged

fix: add MSIX package app path detection for Claude#126
Jeomon merged 1 commit intoCursorTouch:mainfrom
YoanWai:fix/claude-msix-app-path

Conversation

@YoanWai
Copy link
Copy Markdown
Contributor

@YoanWai YoanWai commented Mar 25, 2026

Summary

  • Adds a paths module (src/windows_mcp/paths.py) that resolves the Claude Desktop data directory dynamically
  • Probes the MSIX package path (%LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude) first, then falls back to the standard %APPDATA%\Claude
  • Uses a glob on the package-family prefix so the publisher-id hash does not need to be hardcoded
  • Exposes get_claude_data_dir(), get_claude_config_path(), and is_msix_install() helpers

Test plan

  • 9 unit tests added covering: MSIX priority over standard path, standard fallback, missing env vars, glob matching any publisher-id suffix, config file detection, is_msix_install() flag
  • Manual verification on a Windows machine with Claude installed via MSIX (Microsoft Store)
  • Manual verification on a Windows machine with Claude installed via standard installer

Closes #102

When Claude Desktop is installed as a Windows Package App (MSIX), its
data directory moves from %APPDATA%\Claude to a per-package location
under %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude.

Add a paths module that probes both locations (MSIX first, then
standard) so the extension directory can be resolved dynamically
regardless of installation type.

Closes CursorTouch#102
@Jeomon Jeomon merged commit 1e22ef3 into CursorTouch:main Mar 25, 2026
@YoanWai
Copy link
Copy Markdown
Contributor Author

YoanWai commented Mar 25, 2026

Hi, I just realized the commit on #126 went in with my work email instead of my personal one (thebook90yw@gmail.com). Would you be able to amend the author email and force push? If that's too much trouble, no worries. Sorry about the mix up.

Jeomon added a commit that referenced this pull request Mar 25, 2026
fix: add MSIX package app path detection for Claude
@Jeomon
Copy link
Copy Markdown
Member

Jeomon commented Mar 25, 2026

Done I made the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Extension fails when Claude is installed as Windows Package App (AppData\Roaming\Claude path not found)

2 participants