Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Editor/Windows/UnityMCPEditorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class UnityMCPEditorWindow : EditorWindow

private List<string> possiblePaths = new()
{
Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "Packages", "com.justinpbarnett.unity-mcp", "Python", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Library", "PackageCache", "com.justinpbarnett.unity-mcp@*", "Python", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Packages", "com.justinpbarnett.unity-mcp", "Python", "server.py"))
Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python~", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "Packages", "com.justinpbarnett.unity-mcp", "Python~", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Library", "PackageCache", "com.justinpbarnett.unity-mcp@*", "Python~", "server.py")),
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Packages", "com.justinpbarnett.unity-mcp", "Python~", "server.py"))
};

[MenuItem("Window/Unity MCP")]
Expand Down Expand Up @@ -342,7 +342,7 @@ private string GetPythonDirectory(List<string> possiblePaths)

foreach (var dir in matchingDirs)
{
string candidatePath = Path.Combine(dir, "Python", "server.py");
string candidatePath = Path.Combine(dir, "Python~", "server.py");

if (File.Exists(candidatePath))
{
Expand Down Expand Up @@ -457,7 +457,7 @@ private void ShowManualInstructionsWindow(string configPath, McpClient mcpClient

private string FindPackagePythonDirectory()
{
string pythonDir = "/path/to/your/unity-mcp/Python";
string pythonDir = "/path/to/your/unity-mcp/Python~";

try
{
Expand All @@ -472,7 +472,7 @@ private string FindPackagePythonDirectory()
if (package.name == "com.justinpbarnett.unity-mcp")
{
string packagePath = package.resolvedPath;
string potentialPythonDir = Path.Combine(packagePath, "Python");
string potentialPythonDir = Path.Combine(packagePath, "Python~");

if (Directory.Exists(potentialPythonDir) &&
File.Exists(Path.Combine(potentialPythonDir, "server.py")))
Expand All @@ -490,7 +490,7 @@ private string FindPackagePythonDirectory()
// If not found via Package Manager, try manual approaches
// First check for local installation
string[] possibleDirs = {
Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python"))
Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python~"))
};

foreach (var dir in possibleDirs)
Expand Down
8 changes: 0 additions & 8 deletions Python.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/__init__.py.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Python/__pycache__.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/config.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/pyproject.toml.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/server.py.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Python/tools.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/__init__.py.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Python/tools/__pycache__.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/execute_menu_item.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/manage_asset.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/manage_editor.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/manage_gameobject.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/manage_scene.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/manage_script.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/tools/read_console.py.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/unity_connection.py.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Python/unity_mcp.egg-info.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Python/uv.lock.meta

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.