parent
7dbb03b84e
commit
92ad2c5031
|
|
@ -28,6 +28,20 @@ namespace UnityMcpBridge.Editor.Data
|
|||
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",
|
||||
},
|
||||
new()
|
||||
{
|
||||
name = "Cursor",
|
||||
windowsConfigPath = Path.Combine(
|
||||
|
|
@ -63,20 +77,6 @@ namespace UnityMcpBridge.Editor.Data
|
|||
mcpType = McpTypes.VSCode,
|
||||
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
|
||||
|
|
|
|||
|
|
@ -957,7 +957,7 @@ namespace UnityMcpBridge.Editor.Windows
|
|||
process.WaitForExit();
|
||||
|
||||
|
||||
|
||||
|
||||
// Check for success or already exists
|
||||
if (output.Contains("Added stdio MCP server") || errors.Contains("already exists"))
|
||||
{
|
||||
|
|
@ -968,6 +968,7 @@ namespace UnityMcpBridge.Editor.Windows
|
|||
CheckMcpConfiguration(claudeClient);
|
||||
}
|
||||
Repaint();
|
||||
UnityEngine.Debug.Log("UnityMCP server successfully registered from Claude Code.");
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue