Minor Changes

Add successfully registration info and reorder the seleciton
main
Scriptwonder 2025-07-28 18:30:33 -04:00
parent 7dbb03b84e
commit 92ad2c5031
2 changed files with 16 additions and 15 deletions

View File

@ -28,6 +28,20 @@ namespace UnityMcpBridge.Editor.Data
configStatus = "Not Configured", configStatus = "Not Configured",
}, },
new() new()
{
name = "Claude Code",
windowsConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".claude.json"
),
linuxConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".claude.json"
),
mcpType = McpTypes.ClaudeCode,
configStatus = "Not Configured",
},
new()
{ {
name = "Cursor", name = "Cursor",
windowsConfigPath = Path.Combine( windowsConfigPath = Path.Combine(
@ -63,20 +77,6 @@ namespace UnityMcpBridge.Editor.Data
mcpType = McpTypes.VSCode, mcpType = McpTypes.VSCode,
configStatus = "Not Configured", configStatus = "Not Configured",
}, },
new()
{
name = "Claude Code",
windowsConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".claude.json"
),
linuxConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".claude.json"
),
mcpType = McpTypes.ClaudeCode,
configStatus = "Not Configured",
},
}; };
// Initialize status enums after construction // Initialize status enums after construction

View File

@ -957,7 +957,7 @@ namespace UnityMcpBridge.Editor.Windows
process.WaitForExit(); process.WaitForExit();
// Check for success or already exists // Check for success or already exists
if (output.Contains("Added stdio MCP server") || errors.Contains("already exists")) if (output.Contains("Added stdio MCP server") || errors.Contains("already exists"))
{ {
@ -968,6 +968,7 @@ namespace UnityMcpBridge.Editor.Windows
CheckMcpConfiguration(claudeClient); CheckMcpConfiguration(claudeClient);
} }
Repaint(); Repaint();
UnityEngine.Debug.Log("UnityMCP server successfully registered from Claude Code.");
} }