Skip to content

Commit fb7ebfd

Browse files
committed
refactor: update branding from UNITY-MCP to MCP-FOR-UNITY across all log messages and warnings
1 parent c2b00e7 commit fb7ebfd

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

UnityMcpBridge/Editor/Helpers/PortManager.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static int GetPortWithFallback()
4848
string.Equals(storedConfig.project_path ?? string.Empty, Application.dataPath ?? string.Empty, StringComparison.OrdinalIgnoreCase) &&
4949
IsPortAvailable(storedConfig.unity_port))
5050
{
51-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Using stored port {storedConfig.unity_port} for current project");
51+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Using stored port {storedConfig.unity_port} for current project");
5252
return storedConfig.unity_port;
5353
}
5454

@@ -57,7 +57,7 @@ public static int GetPortWithFallback()
5757
{
5858
if (WaitForPortRelease(storedConfig.unity_port, 1500))
5959
{
60-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Stored port {storedConfig.unity_port} became available after short wait");
60+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Stored port {storedConfig.unity_port} became available after short wait");
6161
return storedConfig.unity_port;
6262
}
6363
// Prefer sticking to the same port; let the caller handle bind retries/fallbacks
@@ -78,7 +78,7 @@ public static int DiscoverNewPort()
7878
{
7979
int newPort = FindAvailablePort();
8080
SavePort(newPort);
81-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Discovered and saved new port: {newPort}");
81+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Discovered and saved new port: {newPort}");
8282
return newPort;
8383
}
8484

@@ -91,18 +91,18 @@ private static int FindAvailablePort()
9191
// Always try default port first
9292
if (IsPortAvailable(DefaultPort))
9393
{
94-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Using default port {DefaultPort}");
94+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Using default port {DefaultPort}");
9595
return DefaultPort;
9696
}
9797

98-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Default port {DefaultPort} is in use, searching for alternative...");
98+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Default port {DefaultPort} is in use, searching for alternative...");
9999

100100
// Search for alternatives
101101
for (int port = DefaultPort + 1; port < DefaultPort + MaxPortAttempts; port++)
102102
{
103103
if (IsPortAvailable(port))
104104
{
105-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Found available port {port}");
105+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Found available port {port}");
106106
return port;
107107
}
108108
}
@@ -211,7 +211,7 @@ private static void SavePort(int port)
211211
string legacy = Path.Combine(GetRegistryDirectory(), RegistryFileName);
212212
File.WriteAllText(legacy, json);
213213

214-
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: Saved port {port} to storage");
214+
if (IsDebugEnabled()) Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Saved port {port} to storage");
215215
}
216216
catch (Exception ex)
217217
{

UnityMcpBridge/Editor/Helpers/ServerInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public static bool RepairPythonEnvironment()
246246
return false;
247247
}
248248

249-
Debug.Log("<b><color=#2EA3FF>UNITY-MCP</color></b>: Python environment repaired successfully.");
249+
Debug.Log("<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Python environment repaired successfully.");
250250
return true;
251251
}
252252
catch (Exception ex)

UnityMcpBridge/Editor/Helpers/ServerPathResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static bool TryResolveWithinPackage(UnityEditor.PackageManager.PackageIn
113113
if (warnOnLegacyPackageId && p.name == LegacyId)
114114
{
115115
Debug.LogWarning(
116-
"UnityMCP: Detected legacy package id 'com.justinpbarnett.unity-mcp'. " +
116+
"MCP For Unity: Detected legacy package id 'com.justinpbarnett.unity-mcp'. " +
117117
"Please update Packages/manifest.json to 'com.coplaydev.unity-mcp' to avoid future breakage.");
118118
}
119119

UnityMcpBridge/Editor/UnityMcpBridge.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static void LogBreadcrumb(string stage)
4646
{
4747
if (IsDebugEnabled())
4848
{
49-
Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: [{stage}]");
49+
Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: [{stage}]");
5050
}
5151
}
5252

@@ -227,7 +227,7 @@ public static void Start()
227227
// Don't restart if already running on a working port
228228
if (isRunning && listener != null)
229229
{
230-
Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge already running on port {currentUnityPort}");
230+
Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: UnityMcpBridge already running on port {currentUnityPort}");
231231
return;
232232
}
233233

@@ -310,7 +310,7 @@ public static void Start()
310310

311311
isRunning = true;
312312
isAutoConnectMode = false;
313-
Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge started on port {currentUnityPort}.");
313+
Debug.Log($"<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: UnityMcpBridge started on port {currentUnityPort}.");
314314
Task.Run(ListenerLoop);
315315
EditorApplication.update += ProcessCommands;
316316
// Write initial heartbeat immediately
@@ -343,7 +343,7 @@ public static void Stop()
343343
listener?.Stop();
344344
listener = null;
345345
EditorApplication.update -= ProcessCommands;
346-
Debug.Log("<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge stopped.");
346+
Debug.Log("<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: UnityMcpBridge stopped.");
347347
}
348348
catch (Exception ex)
349349
{

UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ private void RegisterWithClaudeCode(string pythonDir)
16231623
var existingClient = mcpClients.clients.FirstOrDefault(c => c.mcpType == McpTypes.ClaudeCode);
16241624
if (existingClient != null) CheckClaudeCodeConfiguration(existingClient);
16251625
Repaint();
1626-
UnityEngine.Debug.Log("<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMCP already registered with Claude Code.");
1626+
UnityEngine.Debug.Log("<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: UnityMCP already registered with Claude Code.");
16271627
}
16281628
else
16291629
{
@@ -1636,7 +1636,7 @@ private void RegisterWithClaudeCode(string pythonDir)
16361636
var claudeClient = mcpClients.clients.FirstOrDefault(c => c.mcpType == McpTypes.ClaudeCode);
16371637
if (claudeClient != null) CheckClaudeCodeConfiguration(claudeClient);
16381638
Repaint();
1639-
UnityEngine.Debug.Log("<b><color=#2EA3FF>UNITY-MCP</color></b>: Registered with Claude Code.");
1639+
UnityEngine.Debug.Log("<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: Registered with Claude Code.");
16401640
}
16411641

16421642
private void UnregisterWithClaudeCode()

0 commit comments

Comments
 (0)