Merge pull request #184 from msanatan/add-windsurf

Auto-configure Windsurf
main
Shutong Wu 2025-08-01 12:48:15 -04:00 committed by GitHub
commit bc16ca6024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 29 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
# AI-related files # AI-related files
.cursorrules .cursorrules
.cursorignore .cursorignore
.windsurf
.codeiumignore
CLAUDE.md CLAUDE.md
# Code-copy related files # Code-copy related files

View File

@ -77,6 +77,24 @@ namespace UnityMcpBridge.Editor.Data
mcpType = McpTypes.VSCode, mcpType = McpTypes.VSCode,
configStatus = "Not Configured", configStatus = "Not Configured",
}, },
new()
{
name = "Windsurf",
windowsConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".codeium",
"windsurf",
"mcp_config.json"
),
linuxConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".codeium",
"windsurf",
"mcp_config.json"
),
mcpType = McpTypes.Windsurf,
configStatus = "Not Configured",
},
}; };
// Initialize status enums after construction // Initialize status enums after construction

View File

@ -2,10 +2,11 @@ namespace UnityMcpBridge.Editor.Models
{ {
public enum McpTypes public enum McpTypes
{ {
ClaudeCode,
ClaudeDesktop, ClaudeDesktop,
Cursor, Cursor,
VSCode, VSCode,
ClaudeCode, Windsurf,
} }
} }

View File

@ -87,6 +87,13 @@ namespace UnityMcpBridge.Editor.Windows
instructionStyle instructionStyle
); );
} }
else if (mcpClient?.mcpType == McpTypes.Windsurf)
{
EditorGUILayout.LabelField(
" a) Going to File > Preferences > Windsurf Settings > MCP > Manage MCPs -> View raw config",
instructionStyle
);
}
EditorGUILayout.LabelField(" OR", instructionStyle); EditorGUILayout.LabelField(" OR", instructionStyle);
EditorGUILayout.LabelField( EditorGUILayout.LabelField(
" b) Opening the configuration file at:", " b) Opening the configuration file at:",