Skip to content

Commit 92ad2c5

Browse files
committed
Minor Changes
Add successfully registration info and reorder the seleciton
1 parent 7dbb03b commit 92ad2c5

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

UnityMcpBridge/Editor/Data/McpClients.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ public class McpClients
2828
configStatus = "Not Configured",
2929
},
3030
new()
31+
{
32+
name = "Claude Code",
33+
windowsConfigPath = Path.Combine(
34+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
35+
".claude.json"
36+
),
37+
linuxConfigPath = Path.Combine(
38+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
39+
".claude.json"
40+
),
41+
mcpType = McpTypes.ClaudeCode,
42+
configStatus = "Not Configured",
43+
},
44+
new()
3145
{
3246
name = "Cursor",
3347
windowsConfigPath = Path.Combine(
@@ -63,20 +77,6 @@ public class McpClients
6377
mcpType = McpTypes.VSCode,
6478
configStatus = "Not Configured",
6579
},
66-
new()
67-
{
68-
name = "Claude Code",
69-
windowsConfigPath = Path.Combine(
70-
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
71-
".claude.json"
72-
),
73-
linuxConfigPath = Path.Combine(
74-
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
75-
".claude.json"
76-
),
77-
mcpType = McpTypes.ClaudeCode,
78-
configStatus = "Not Configured",
79-
},
8080
};
8181

8282
// Initialize status enums after construction

UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ private void RegisterWithClaudeCode(string pythonDir)
957957
process.WaitForExit();
958958

959959

960-
960+
961961
// Check for success or already exists
962962
if (output.Contains("Added stdio MCP server") || errors.Contains("already exists"))
963963
{
@@ -968,6 +968,7 @@ private void RegisterWithClaudeCode(string pythonDir)
968968
CheckMcpConfiguration(claudeClient);
969969
}
970970
Repaint();
971+
UnityEngine.Debug.Log("UnityMCP server successfully registered from Claude Code.");
971972

972973

973974
}

0 commit comments

Comments
 (0)