unity-mcp icon indicating copy to clipboard operation
unity-mcp copied to clipboard

System Requirements UV check ignores Path Override setting

Open fjamesprice opened this issue 10 months ago • 2 comments

Version: MCP for Unity v9.0.3

Description: The "System Requirements" panel shows "UV Package Manager: Not Found" even when the UV Path override is correctly configured in Advanced Settings and the server launches successfully.

Expected Behavior: When a valid UV path override is set in Advanced Settings (showing green indicator), the System Requirements check should recognize UV as available.

Actual Behavior: Advanced Settings shows UV Path with green indicator ✓ Server starts and runs perfectly ✓ System Requirements still shows "Not Found" with red indicator ✗ Warning message "Missing dependencies" is displayed Root Cause: PlatformDetectorBase.DetectUv() only tries bare uvx/uv commands via PATH and doesn't use PathResolverService.GetUvxPath() which respects the override.

Code References: PathResolverService.GetUvxPath() correctly checks EditorPrefs.GetString(EditorPrefKeys.UvxPathOverride) first PlatformDetectorBase.TryFindUvInPath() hardcodes new[] { "uvx", "uv" } as bare commands without checking the override Steps to Reproduce:

Install UV to a non-PATH location (e.g., C:\Users.local\bin\uvx.exe) Set UV Path override in Advanced Settings → shows green dot Open MCP Setup window → System Requirements shows "Not Found" Click Start Server → server runs successfully despite the warning Suggested Fix: Have DetectUv() call MCPServiceLocator.Paths.GetUvxPath() to get the executable path (which respects overrides) instead of only trying bare commands.

fjamesprice avatar Jan 09 '26 22:01 fjamesprice

Title: System Requirements UV check ignores Path Override setting - Additional Observation

Content:

While investigating the issue with the System Requirements panel not recognizing the UV Path override, I noticed an interesting observation. Both the Local Setup Window and the Toggle MCP Window appear to use different logic for verifying the existence of UVX. This might be contributing to the inconsistent behavior we're seeing.

Could the developers responsible for the Local Setup Window and Toggle MCP Window components please clarify if the difference in UVX validation logic is intentional?

whatevertogo avatar Jan 11 '26 09:01 whatevertogo

i think Advanced Settings: Only checks File.Exists(uvxPath).

System Requirements: Executes TryValidateUvExecutable(uvxPath), i.e., uvx --version.

whatevertogo avatar Jan 11 '26 09:01 whatevertogo