Skip to content

Commit dcbd0d4

Browse files
yotsudaclaude
andcommitted
Fix MSIX detection in Register-MdpToClaudeDesktop
Detect MSIX install by checking for the package directory existence instead of the config file, so the correct path is used even when claude_desktop_config.json has not been created yet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c9136de commit dcbd0d4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Module/MarkdownPointer.psm1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,14 @@ function Register-MdpToClaudeDesktop {
338338
$command = Get-MarkdownPointerMCPPath
339339

340340
# Determine config file path per platform
341+
# MSIX (Microsoft Store) installs virtualize %APPDATA% under Packages\
341342
$configPath = if ($IsWindows) {
342-
Join-Path $env:APPDATA 'Claude\claude_desktop_config.json'
343+
$msixDir = Get-ChildItem "$env:LOCALAPPDATA\Packages\Claude_*" -Directory -ErrorAction SilentlyContinue | Select-Object -First 1
344+
if ($msixDir) {
345+
Join-Path $msixDir.FullName 'LocalCache\Roaming\Claude\claude_desktop_config.json'
346+
} else {
347+
Join-Path $env:APPDATA 'Claude\claude_desktop_config.json'
348+
}
343349
} elseif ($IsMacOS) {
344350
Join-Path $HOME 'Library/Application Support/Claude/claude_desktop_config.json'
345351
} elseif ($IsLinux) {

0 commit comments

Comments
 (0)