[Bug]: Windows: the installer starts the tray with Inno Setup RedirectionGuard, so uvx servers fail with "untrusted mount point (os error 448)"
Summary
When the Windows installer starts MCPProxy at the end of setup ("Launch MCPProxy" checked), every uvx stdio server fails to start. The error is The path cannot be traversed because it contains an untrusted mount point. (os error 448).
The cause is the Windows RedirectionGuard process mitigation. Inno Setup 6.7.0 and later enable it on the Setup process by default. Inno Setup 6.7.0 to 6.7.3 have a bug: a [Run] entry with the postinstall flag inherits the mitigation. The v0.73.0 installer is built with Inno Setup 6.7.1, and so are earlier ones (see "Affected versions"). Thus the tray, mcpproxy.exe and all upstream child processes run with RedirectionGuard on. RedirectionGuard blocks junctions that a standard user created. uv makes such junctions for its managed Python versions, for example cpython-3.15-windows-x86_64-none.
If you start MCPProxy from the Start menu, the mitigation is off and all servers connect.
Environment
- Windows 11 Pro 10.0.26200, x64
- MCPProxy v0.73.0, installed with
mcpproxy-setup-v0.73.0-amd64.exefrom the GitHub release (upgrade over an earlier version, default folderC:\Program Files\MCPProxy) - The setup file data header is
Inno Setup Setup Data (6.7.0). The release CI log (run 42389120521) showsCompiler engine version: Inno Setup 6.7.1. - uv with managed Python on a Dev Drive (
V:\.uv\python). uv created the minor-version links as junctions, as a standard user:cpython-3.15-windows-x86_64-none->cpython-3.15.0-windows-x86_64-nonecpython-3.14-windows-x86_64-none->cpython-3.14.8-windows-x86_64-none
- Upstream servers that use
uvx(for examplemcp-server-fetch,mcp-server-time,mcp-server-git) and one uv tool executable (comfy-mcp.exe)
Steps to reproduce
- Install uv and let it manage a Python version, so that
%UV_PYTHON_INSTALL_DIR%(or the default uv Python folder) has a minor-version junction. - Configure one
uvxstdio server, for example{"name": "time", "command": "uvx", "args": ["mcp-server-time"]}. - Close MCPProxy.
- Run
mcpproxy-setup-v0.73.0-amd64.exe. Leave "Launch MCPProxy" checked on the last page and click Finish. - Run
mcpproxy upstream list.
Expected result
The uvx servers connect, the same as when MCPProxy starts from the Start menu.
Actual result
The uvx servers show Error. mcpproxy upstream logs time shows:
error: Failed to inspect Python interpreter from managed installations at `V:\.uv\python\cpython-3.15-windows-x86_64-none\python.exe`
cause: Failed to query Python interpreter
cause: failed to query metadata of file `V:\.uv\python\cpython-3.15-windows-x86_64-none\python.exe`: The path cannot be traversed because it contains an untrusted mount point. (os error 448)
A uv tool executable fails the same way:
did not find executable at 'V:\.uv\python\cpython-3.14-windows-x86_64-none\python.exe': The path cannot be traversed because it contains an untrusted mount point.
In my test, 8 uv-based servers showed Error and 2 stayed in Connecting. The same Python through the same junction works from a normal shell.
Evidence
I read the process facts with GetProcessMitigationPolicy (policy 16, ProcessRedirectionTrustPolicy) and GetTokenInformation (TokenElevation, TokenElevationType, TokenIntegrityLevel). A process watcher logged each new mcpproxy, tray and setup process with its parent chain.
| Case | How the tray started | EnforceRedirectionTrust (tray / mcpproxy.exe) |
Elevated | Integrity | Parent of the tray | uvx servers |
|---|---|---|---|---|---|---|
| a | Setup, "Launch MCPProxy" checked | 1 / 1 | no (limited token) | medium | Setup process (exited) | fail, os error 448 |
| e | Setup with /NOREDIRECTIONGUARD, "Launch MCPProxy" checked |
0 / 0 | no (limited token) | medium | Setup process (exited) | all connect |
| b | Setup, "Launch MCPProxy" unchecked, then Start menu | 0 / 0 | no (limited token) | medium | explorer.exe |
all connect |
| c | Start menu, no setup | 0 / 0 | no (limited token) | medium | explorer.exe |
all connect |
More facts from the same runs:
- In case a, all
cmd.exeandnode.exechildren ofmcpproxy.exethat I read also hadEnforceRedirectionTrust= 1. In case e, theuvx.exechildren had 0. - The setup process that the user started was not elevated and had the flag 0. The elevated setup process had the flag 0 when the watcher read it.
- Cases a and e differ only in the
/NOREDIRECTIONGUARDcommand line parameter. So the mitigation comes from Inno Setup, not from MCPProxy and not from elevation. The tray is not elevated in case a.
A short PowerShell script to read the flag:
Add-Type -Name M -Namespace W -MemberDefinition @'
[DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(uint a, bool i, int p);
[DllImport("kernel32.dll")] public static extern bool GetProcessMitigationPolicy(IntPtr h, int p, out uint v, UIntPtr s);
'@
foreach ($p in Get-Process mcpproxy, mcpproxy-tray -ErrorAction SilentlyContinue) {
$v = 0
[void][W.M]::GetProcessMitigationPolicy([W.M]::OpenProcess(0x1000, $false, $p.Id), 16, [ref]$v, [UIntPtr]4)
"{0} pid={1} EnforceRedirectionTrust={2}" -f $p.ProcessName, $p.Id, ($v -band 1)
}
Root cause
scripts/installer.isssetsPrivilegesRequired=admin(line 49) and has noRedirectionGuarddirective, so the Inno Setup defaultyesapplies. The[Run]entry starts the tray withFlags: nowait postinstall skipifsilent(lines 100-104).- Inno Setup 6.7.0 release notes: "Setup and Uninstall now attempt to enable Windows' RedirectionGuard mitigation on their own processes by default. This mitigation, available on Windows 11 and Windows 10 22H2, blocks traversal of NTFS junctions and symbolic links created by unprivileged users (or any non-elevated processes)".
- Inno Setup 6.7.4 release notes (2026-10-28): "When [Setup] section directive RedirectionGuard was enabled (which it is by default), the RedirectionGuard mitigation was inherited by any child processes, which wasn't as documented. For child processes started by Setup with the (normally non-elevated) credentials of the user that started Setup initially, such as those started by [Run] section entries with the runasoriginaluser or postinstall flag, this also wasn't as intended (broken since RedirectionGuard support was introduced in 6.7.0). This is no longer the case for such processes."
- The release workflow runs
choco install innosetup -y(.github/workflows/release.yml:802, alsoprerelease.yml:486). The version is not pinned. The v0.73.0 and v0.72.0 release logs both showInnoSetup v6.7.1 already installedandCompiler engine version: Inno Setup 6.7.1. At the time of writing, the Chocolatey package is still at 6.7.1, sochoco installdoes not get the fix. - The mitigation is inherited down the process tree: Setup ->
mcpproxy-tray.exe->mcpproxy.exe->cmd.exe->uvx.exe-> uv. uv then cannot read its own Python junction.
Affected versions
This is not new in v0.73.0. Every release log that GitHub still keeps, from v0.56.0 (2026-08-13) to v0.73.0, shows Compiler engine version: Inno Setup 6.7.1. Older release logs return HTTP 410, so I cannot see the version for them. Inno Setup 6.7.0 came out on 2026-01-06, so installers built after that date can also be affected.
I saw the same failure after earlier upgrades and restarted MCPProxy by hand each time. I did not measure those runs.
Workarounds
- Close the tray and start MCPProxy again from the Start menu. Or uncheck "Launch MCPProxy" on the last setup page. All servers then connect with no configuration change.
- Give uv the real Python folder instead of the junction, for example
"args": ["--python", "V:\\.uv\\python\\cpython-3.15.0-windows-x86_64-none\\python.exe", "mcp-server-time"]. This breaks when uv replaces that Python version.
You can also run the setup with /NOREDIRECTIONGUARD.
Suggested fix
- Build the installer with Inno Setup 6.7.4 or later and pin the version in
release.ymlandprerelease.yml. Chocolatey does not have 6.7.4 yet, so the workflow must install it from jrsoftware.org or another source. - Until then, add
RedirectionGuard=noto the[Setup]section ofscripts/installer.iss. This turns off the protection for the installer process too, so it is a short-term fix. - Optional: at start,
mcpproxy.execan read its ownProcessRedirectionTrustPolicyand log a clear warning whenEnforceRedirectionTrustis 1. Then the next unknown cause of this kind is easier to find.
Note: the 6.7.4 notes say that if Setup did not have to request administrative privileges (for example, the user started it from an elevated shell), the mitigation is still inherited. Thus a launch from Setup can still get the flag in that case, also with 6.7.4. I did not test this case.
Related uv issues about its minor-version junctions on Windows (different causes): astral-sh/uv#19616 (os error 448 with OneDrive), astral-sh/uv#19622.
Thank you, @ALERTua. This is an unusually complete report: the mitigation-flag table and the GetProcessMitigationPolicy script made the cause unambiguous, and the version check across old release logs told us how far back it goes.
Fix is in #1866, following your suggestions:
- CI now installs a pinned, SHA-256 verified Inno Setup 6.7.4 from the jrsoftware/issrc GitHub release (Chocolatey is still on 6.7.1), for both release and prerelease builds.
scripts/installer.issrefuses to compile with anything older than 6.7.4 (#if Ver < EncodeVer(6,7,4)), so the leak cannot come back by building elsewhere.RedirectionGuardstays on for the Setup process itself.mcpproxy servelogs a WARN, andmcpproxy doctorreports a runtime warning, when the process findsEnforceRedirectionTrustset on itself, with the symptom and the Start-menu workaround spelled out. That covers the residual case you mention (a Setup that did not need to request elevation).- A new Windows CI job compiles the installer with the pinned compiler on every PR.
The next release built after this merges will carry the fixed installer; until then, your workaround 1 (start from the Start menu, or leave "Launch MCPProxy" unchecked) remains the right one.
I am happy to be useful. Thank you for a great product.