@@ -739,7 +739,7 @@ private void DrawClientConfigurationCompact(McpClient mcpClient)
739739 EditorGUILayout . LabelField ( installText , installHintStyle , GUILayout . Height ( 22 ) , GUILayout . Width ( textSize . x + 2 ) , GUILayout . ExpandWidth ( false ) ) ;
740740 GUIStyle helpLinkStyle = new GUIStyle ( EditorStyles . linkLabel ) { fontStyle = FontStyle . Bold } ;
741741 GUILayout . Space ( 6 ) ;
742- if ( GUILayout . Button ( "[CLICK ]" , helpLinkStyle , GUILayout . Height ( 22 ) , GUILayout . ExpandWidth ( false ) ) )
742+ if ( GUILayout . Button ( "[HELP ]" , helpLinkStyle , GUILayout . Height ( 22 ) , GUILayout . ExpandWidth ( false ) ) )
743743 {
744744 Application . OpenURL ( "https://github.com/CoplayDev/unity-mcp/wiki/Troubleshooting-Unity-MCP-and-Claude-Code" ) ;
745745 }
@@ -764,7 +764,7 @@ private void DrawClientConfigurationCompact(McpClient mcpClient)
764764 EditorGUILayout . LabelField ( installText2 , installHintStyle2 , GUILayout . Height ( 22 ) , GUILayout . Width ( sz . x + 2 ) , GUILayout . ExpandWidth ( false ) ) ;
765765 GUIStyle helpLinkStyle2 = new GUIStyle ( EditorStyles . linkLabel ) { fontStyle = FontStyle . Bold } ;
766766 GUILayout . Space ( 6 ) ;
767- if ( GUILayout . Button ( "[CLICK ]" , helpLinkStyle2 , GUILayout . Height ( 22 ) , GUILayout . ExpandWidth ( false ) ) )
767+ if ( GUILayout . Button ( "[HELP ]" , helpLinkStyle2 , GUILayout . Height ( 22 ) , GUILayout . ExpandWidth ( false ) ) )
768768 {
769769 Application . OpenURL ( "https://github.com/CoplayDev/unity-mcp/wiki/Troubleshooting-Unity-MCP-and-Cursor,-VSCode-&-Windsurf" ) ;
770770 }
@@ -1050,22 +1050,29 @@ private void ShowManualInstructionsWindow(string configPath, McpClient mcpClient
10501050 // Use switch statement to handle different client types
10511051 switch ( mcpClient . mcpType )
10521052 {
1053- case McpTypes . VSCode :
1054- // Create VSCode-specific configuration with proper format
1055- var vscodeConfig = new
1056- {
1057- servers = new
1058- {
1059- unityMCP = new
1060- {
1061- command = "uv" ,
1062- args = new [ ] { "--directory" , pythonDir , "run" , "server.py" } ,
1063- type = "stdio"
1064- }
1065- }
1066- } ;
1067- manualConfigJson = JsonConvert . SerializeObject ( vscodeConfig , jsonSettings ) ;
1068- break ;
1053+ case McpTypes . VSCode :
1054+ // Resolve uv so VSCode launches the correct executable even if not on PATH
1055+ string uvPathManual = FindUvPath ( ) ;
1056+ if ( uvPathManual == null )
1057+ {
1058+ UnityEngine . Debug . LogError ( "UV package manager not found. Cannot generate manual configuration." ) ;
1059+ return ;
1060+ }
1061+ // Create VSCode-specific configuration with proper format
1062+ var vscodeConfig = new
1063+ {
1064+ servers = new
1065+ {
1066+ unityMCP = new
1067+ {
1068+ command = uvPathManual ,
1069+ args = new [ ] { "--directory" , pythonDir , "run" , "server.py" } ,
1070+ type = "stdio"
1071+ }
1072+ }
1073+ } ;
1074+ manualConfigJson = JsonConvert . SerializeObject ( vscodeConfig , jsonSettings ) ;
1075+ break ;
10691076
10701077 default :
10711078 // Create standard MCP configuration for other clients
0 commit comments