From b41cf5578bca7129072f0666db2bb38c1ae6cbea Mon Sep 17 00:00:00 2001 From: tanthcstt Date: Sat, 25 Oct 2025 01:33:10 +0700 Subject: [PATCH 1/4] add Warp (Warp.dev) configuration support --- MCPForUnity/Editor/Data/McpClients.cs | 25 +++++++++++++++++++ MCPForUnity/Editor/Models/McpTypes.cs | 1 + .../Services/ClientConfigurationService.cs | 7 ++++++ UnityMcpBridge/Editor/Data/McpClients.cs | 25 +++++++++++++++++++ UnityMcpBridge/Editor/Models/McpTypes.cs | 1 + .../Windows/ManualConfigEditorWindow.cs | 8 +++++- 6 files changed, 66 insertions(+), 1 deletion(-) diff --git a/MCPForUnity/Editor/Data/McpClients.cs b/MCPForUnity/Editor/Data/McpClients.cs index 68717510..f001fd5f 100644 --- a/MCPForUnity/Editor/Data/McpClients.cs +++ b/MCPForUnity/Editor/Data/McpClients.cs @@ -208,6 +208,31 @@ public class McpClients mcpType = McpTypes.Codex, configStatus = "Not Configured", }, + // Warp + new() + { + name = "Warp", + windowsConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), + "Warp", + "mcp.json" + ), + macConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + "Library", + "Application Support", + "Warp", + "mcp.json" + ), + linuxConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + ".config", + "Warp", + "mcp.json" + ), + mcpType = McpTypes.Warp, + configStatus = "Not Configured", + }, }; // Initialize status enums after construction diff --git a/MCPForUnity/Editor/Models/McpTypes.cs b/MCPForUnity/Editor/Models/McpTypes.cs index 7c864897..cb487c6a 100644 --- a/MCPForUnity/Editor/Models/McpTypes.cs +++ b/MCPForUnity/Editor/Models/McpTypes.cs @@ -10,5 +10,6 @@ public enum McpTypes VSCode, Windsurf, Trae, + Warp } } diff --git a/MCPForUnity/Editor/Services/ClientConfigurationService.cs b/MCPForUnity/Editor/Services/ClientConfigurationService.cs index 8a9c4caf..24221786 100644 --- a/MCPForUnity/Editor/Services/ClientConfigurationService.cs +++ b/MCPForUnity/Editor/Services/ClientConfigurationService.cs @@ -469,6 +469,13 @@ public string GetInstallationSteps(McpClient client) "4. For local servers, Node.js (npx) or uvx must be installed\n" + "5. Save and restart Trae", + McpTypes.Warp => + "1. Open Warp\n" + + "2. Open 'Warp Drive' — click the Warp icon in the top-left corner, or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS)\n" + + "3. Go to MCP Servers > Add\n" + + "4. Paste the configuration JSON\n" + + "5. Save", + _ => "Configuration steps not available for this client." }; diff --git a/UnityMcpBridge/Editor/Data/McpClients.cs b/UnityMcpBridge/Editor/Data/McpClients.cs index 1616c464..782b50df 100644 --- a/UnityMcpBridge/Editor/Data/McpClients.cs +++ b/UnityMcpBridge/Editor/Data/McpClients.cs @@ -206,6 +206,31 @@ public class McpClients mcpType = McpTypes.Codex, configStatus = "Not Configured", }, + // Warp + new() + { + name = "Warp", + windowsConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), + "Warp", + "mcp.json" + ), + macConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + "Library", + "Application Support", + "Warp", + "mcp.json" + ), + linuxConfigPath = Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + ".config", + "Warp", + "mcp.json" + ), + mcpType = McpTypes.Warp, + configStatus = "Not Configured", + }, }; // Initialize status enums after construction diff --git a/UnityMcpBridge/Editor/Models/McpTypes.cs b/UnityMcpBridge/Editor/Models/McpTypes.cs index 7c864897..cb487c6a 100644 --- a/UnityMcpBridge/Editor/Models/McpTypes.cs +++ b/UnityMcpBridge/Editor/Models/McpTypes.cs @@ -10,5 +10,6 @@ public enum McpTypes VSCode, Windsurf, Trae, + Warp } } diff --git a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs index ec3f9be9..39563155 100644 --- a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs +++ b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs @@ -97,7 +97,7 @@ protected virtual void OnGUI() else if (mcpClient?.mcpType == McpTypes.Kiro) { EditorGUILayout.LabelField( - " a) Going to File > Settings > Settings > Search for \"MCP\" > Open Workspace MCP Config", + "a) Open 'Warp Drive' by click the Warp icon in the top-left corner or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS) > MCP Servers > Add", instructionStyle ); } @@ -114,6 +114,12 @@ protected virtual void OnGUI() " a) Going to Settings > MCP > Add Server > Add Manually", instructionStyle ); + }else if (mcpClient?.mcpType == McpTypes.Warp) + { + EditorGUILayout.LabelField( + " a) Going to Settings > MCP > Manage MCPs > Open Config File", + instructionStyle + ); } EditorGUILayout.LabelField(" OR", instructionStyle); EditorGUILayout.LabelField( From 2e8aec75d375e18d75047e9a7da1b51c0755eda1 Mon Sep 17 00:00:00 2001 From: tanthcstt Date: Sat, 25 Oct 2025 01:45:46 +0700 Subject: [PATCH 2/4] fix manual config editor instruction for warp --- UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs index 39563155..e7efd643 100644 --- a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs +++ b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs @@ -97,7 +97,7 @@ protected virtual void OnGUI() else if (mcpClient?.mcpType == McpTypes.Kiro) { EditorGUILayout.LabelField( - "a) Open 'Warp Drive' by click the Warp icon in the top-left corner or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS) > MCP Servers > Add", + " a) Going to File > Settings > Settings > Search for \"MCP\" > Open Workspace MCP Config", instructionStyle ); } @@ -114,13 +114,15 @@ protected virtual void OnGUI() " a) Going to Settings > MCP > Add Server > Add Manually", instructionStyle ); - }else if (mcpClient?.mcpType == McpTypes.Warp) + } + else if (mcpClient?.mcpType == McpTypes.Warp) { EditorGUILayout.LabelField( - " a) Going to Settings > MCP > Manage MCPs > Open Config File", + "a) Open 'Warp Drive' by click the Warp icon in the top-left corner or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS) > MCP Servers > Add", instructionStyle ); } + EditorGUILayout.LabelField(" OR", instructionStyle); EditorGUILayout.LabelField( " b) Opening the configuration file at:", From 2c77de8a0010a4c2b6b674f5fcc9b9f44742aab4 Mon Sep 17 00:00:00 2001 From: tanthcstt <127326550+tanthcstt@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:06:03 +0700 Subject: [PATCH 3/4] Update UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs, fix grammar error Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs index e7efd643..2bac4606 100644 --- a/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs +++ b/UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs @@ -118,7 +118,7 @@ protected virtual void OnGUI() else if (mcpClient?.mcpType == McpTypes.Warp) { EditorGUILayout.LabelField( - "a) Open 'Warp Drive' by click the Warp icon in the top-left corner or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS) > MCP Servers > Add", + "a) Open 'Warp Drive' by clicking the Warp icon in the top-left corner or press (Ctrl + Shift + | on Windows / ⌘ + | on macOS) > MCP Servers > Add", instructionStyle ); } From b68095c8b52600f11a1370c2653cf53644c074f0 Mon Sep 17 00:00:00 2001 From: tanthcstt <127326550+tanthcstt@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:06:12 +0700 Subject: [PATCH 4/4] Update UnityMcpBridge/Editor/Models/McpTypes.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- UnityMcpBridge/Editor/Models/McpTypes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityMcpBridge/Editor/Models/McpTypes.cs b/UnityMcpBridge/Editor/Models/McpTypes.cs index cb487c6a..de491792 100644 --- a/UnityMcpBridge/Editor/Models/McpTypes.cs +++ b/UnityMcpBridge/Editor/Models/McpTypes.cs @@ -10,6 +10,6 @@ public enum McpTypes VSCode, Windsurf, Trae, - Warp + Warp, } }