Skip to content

Commit dad7237

Browse files
committed
Replace the phrase "Python server" with "MCP server"
1 parent 93f0823 commit dad7237

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

MCPForUnity/Editor/Helpers/McpPathResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
namespace MCPForUnity.Editor.Helpers
88
{
99
/// <summary>
10-
/// Shared helper for resolving Python server directory paths with support for
10+
/// Shared helper for resolving MCP server directory paths with support for
1111
/// development mode, embedded servers, and installed packages
1212
/// </summary>
1313
public static class McpPathResolver
1414
{
1515
private const string USE_EMBEDDED_SERVER_KEY = "MCPForUnity.UseEmbeddedServer";
1616

1717
/// <summary>
18-
/// Resolves the Python server directory path with comprehensive logic
18+
/// Resolves the MCP server directory path with comprehensive logic
1919
/// including development mode support and fallback mechanisms
2020
/// </summary>
2121
public static string FindPackagePythonDirectory(bool debugLogsEnabled = false)

MCPForUnity/Editor/Helpers/PackageInstaller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace MCPForUnity.Editor.Helpers
55
{
66
/// <summary>
7-
/// Handles automatic installation of the Python server when the package is first installed.
7+
/// Handles automatic installation of the MCP server when the package is first installed.
88
/// </summary>
99
[InitializeOnLoad]
1010
public static class PackageInstaller
@@ -33,7 +33,7 @@ private static void InstallServerOnFirstLoad()
3333
// Only log success if server was actually embedded and copied
3434
if (ServerInstaller.HasEmbeddedServer())
3535
{
36-
McpLog.Info("Python server installation completed successfully.");
36+
McpLog.Info("MCP server installation completed successfully.");
3737
}
3838
}
3939
catch (System.Exception)

MCPForUnity/Editor/Helpers/TelemetryHelper.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static void EnableTelemetry()
8181
}
8282

8383
/// <summary>
84-
/// Send telemetry data to Python server for processing
84+
/// Send telemetry data to MCP server for processing
8585
/// This is a lightweight bridge - the actual telemetry logic is in Python
8686
/// </summary>
8787
public static void RecordEvent(string eventType, Dictionary<string, object> data = null)
@@ -106,16 +106,16 @@ public static void RecordEvent(string eventType, Dictionary<string, object> data
106106
telemetryData["data"] = data;
107107
}
108108

109-
// Send to Python server via existing bridge communication
110-
// The Python server will handle actual telemetry transmission
111-
SendTelemetryToPythonServer(telemetryData);
109+
// Send to MCP server via existing bridge communication
110+
// The MCP server will handle actual telemetry transmission
111+
SendTelemetryToMcpServer(telemetryData);
112112
}
113113
catch (Exception e)
114114
{
115115
// Never let telemetry errors interfere with functionality
116116
if (IsDebugEnabled())
117117
{
118-
Debug.LogWarning($"Telemetry error (non-blocking): {e.Message}");
118+
McpLog.Warn($"Telemetry error (non-blocking): {e.Message}");
119119
}
120120
}
121121
}
@@ -183,7 +183,7 @@ public static void RecordToolExecution(string toolName, bool success, float dura
183183
RecordEvent("tool_execution_unity", data);
184184
}
185185

186-
private static void SendTelemetryToPythonServer(Dictionary<string, object> telemetryData)
186+
private static void SendTelemetryToMcpServer(Dictionary<string, object> telemetryData)
187187
{
188188
var sender = Volatile.Read(ref s_sender);
189189
if (sender != null)
@@ -197,15 +197,15 @@ private static void SendTelemetryToPythonServer(Dictionary<string, object> telem
197197
{
198198
if (IsDebugEnabled())
199199
{
200-
Debug.LogWarning($"Telemetry sender error (non-blocking): {e.Message}");
200+
McpLog.Warn($"Telemetry sender error (non-blocking): {e.Message}");
201201
}
202202
}
203203
}
204204

205205
// Fallback: log when debug is enabled
206206
if (IsDebugEnabled())
207207
{
208-
Debug.Log($"<b><color=#2EA3FF>MCP-TELEMETRY</color></b>: {telemetryData["event_type"]}");
208+
McpLog.Info($"Telemetry: {telemetryData["event_type"]}");
209209
}
210210
}
211211

MCPForUnity/Editor/Windows/MCPForUnityEditorWindowNew.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ private void OnClearPythonClicked()
743743
{
744744
MCPServiceLocator.Paths.ClearMcpServerOverride();
745745
UpdatePathOverrides();
746-
McpLog.Info("Python server path override cleared");
746+
McpLog.Info("MCP server path override cleared");
747747
}
748748

749749
private void OnBrowseUvClicked()

MCPForUnity/Editor/Windows/MCPForUnityEditorWindowNew.uxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<ui:VisualElement class="advanced-settings-content">
2727
<ui:Label text="Path Overrides (leave empty for auto-detection):" class="advanced-label" />
2828

29-
<!-- Python Server Path Override -->
29+
<!-- MCP Server Path Override -->
3030
<ui:VisualElement class="override-row">
31-
<ui:Label text="Python Server Path:" class="override-label" />
31+
<ui:Label text="MCP Server Path:" class="override-label" />
3232
<ui:VisualElement class="status-indicator-small" name="mcp-server-path-status" />
3333
</ui:VisualElement>
3434
<ui:VisualElement class="path-override-controls">

docs/v6_NEW_UI_CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The new MCP Editor Window is a complete rebuild using **UI Toolkit (UXML/USS)**
4242
## What's New
4343

4444
### UI Enhancements
45-
- **Advanced Settings Foldout** - Collapsible section for path overrides (Python server, UV, Claude CLI)
45+
- **Advanced Settings Foldout** - Collapsible section for path overrides (MCP server, UV, Claude CLI)
4646
- **Visual Path Validation** - Green/red indicators show whether override paths are valid
4747
- **Bridge Health Indicator** - Separate from connection status, shows handshake and ping/pong results
4848
- **Manual Connection Test Button** - Verify bridge health on demand without reconnecting
@@ -167,7 +167,7 @@ Debug.Log($"Configured: {summary.SuccessCount}, Failed: {summary.FailureCount}")
167167
**Purpose:** Resolves paths to required tools with override support
168168

169169
**Key Methods:**
170-
- `GetMcpServerPath()` - Python server directory
170+
- `GetMcpServerPath()` - MCP server directory
171171
- `GetUvPath()` - UV executable path
172172
- `GetClaudeCliPath()` - Claude CLI path
173173
- `SetMcpServerOverride(path)` / `ClearMcpServerOverride()` - Manage overrides

0 commit comments

Comments
 (0)