Skip to content

Commit 52c004a

Browse files
authored
Merge branch 'main' into feat/script-editing-framing-tests
2 parents 1281ada + 22e8016 commit 52c004a

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

UnityMcpBridge/Editor/Data/McpClients.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public class McpClients
8585
"Claude",
8686
"claude_desktop_config.json"
8787
),
88+
8889
macConfigPath = Path.Combine(
8990
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
9091
"Library",
@@ -98,6 +99,7 @@ public class McpClients
9899
"Claude",
99100
"claude_desktop_config.json"
100101
),
102+
101103
mcpType = McpTypes.ClaudeDesktop,
102104
configStatus = "Not Configured",
103105
},

UnityMcpBridge/Editor/Models/McpClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public class McpClient
66
public string windowsConfigPath;
77
public string macConfigPath;
88
public string linuxConfigPath;
9+
public string macConfigPath; // optional macOS-specific config path
910
public McpTypes mcpType;
1011
public string configStatus;
1112
public McpStatus status = McpStatus.NotConfigured;

UnityMcpBridge/Editor/Windows/MCPForUnityEditorWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,7 @@ private string WriteToConfig(string pythonDir, string configPath, McpClient mcpC
12491249
}
12501250
catch (Exception ex)
12511251
{
1252+
12521253
// If write did not complete, attempt restore from backup without deleting current file first
12531254
try
12541255
{
@@ -1267,6 +1268,7 @@ private string WriteToConfig(string pythonDir, string configPath, McpClient mcpC
12671268
// Only remove backup after a confirmed successful write
12681269
try { if (writeDone && System.IO.File.Exists(backup)) System.IO.File.Delete(backup); } catch { }
12691270
}
1271+
12701272
try
12711273
{
12721274
if (IsValidUv(uvPath)) UnityEditor.EditorPrefs.SetString("MCPForUnity.UvPath", uvPath);

UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ protected virtual void OnGUI()
119119
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
120120
{
121121
displayPath = string.IsNullOrEmpty(mcpClient.macConfigPath)
122+
122123
? configPath
124+
123125
: mcpClient.macConfigPath;
124126
}
125127
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))

UnityMcpBridge/UnityMcpServer~/src/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "MCPForUnityServer"
3-
version = "3.0.0"
3+
version = "3.0.2"
44
description = "MCP for Unity Server: A Unity package for Unity Editor integration via the Model Context Protocol (MCP)."
55
readme = "README.md"
66
requires-python = ">=3.10"

UnityMcpBridge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.coplaydev.unity-mcp",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"displayName": "MCP for Unity",
55
"description": "A bridge that connects an LLM to Unity via the MCP (Model Context Protocol). This allows MCP Clients like Claude Desktop or Cursor to directly control your Unity Editor.\n\nJoin Our Discord: https://discord.gg/y4p8KfzrN4",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)