Skip to content

Commit 97a61ef

Browse files
authored
Merge pull request #1001 from zaferdace/feat/execute-code
feat: add execute_code tool for running arbitrary C# in Unity Editor
2 parents 4074e9c + 6312ec2 commit 97a61ef

12 files changed

Lines changed: 1676 additions & 62 deletions

File tree

MCPForUnity/Editor/Constants/EditorPrefKeys.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,7 @@ internal static class EditorPrefKeys
6969
internal const string AutoStartOnLoad = "MCPForUnity.AutoStartOnLoad";
7070
internal const string BatchExecuteMaxCommands = "MCPForUnity.BatchExecute.MaxCommands";
7171
internal const string LogRecordEnabled = "MCPForUnity.LogRecordEnabled";
72+
73+
internal const string ExecuteCodeCompiler = "MCPForUnity.ExecuteCode.Compiler";
7274
}
7375
}

MCPForUnity/Editor/Setup/McpForUnitySkillInstaller.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public class McpForUnitySkillInstaller : EditorWindow
2828
private readonly ConcurrentQueue<string> _pendingLogs = new();
2929
private readonly StringBuilder _logBuilder = new(4096);
3030

31-
[MenuItem("Window/MCP For Unity/Install(Sync) MCP Skill")]
3231
public static void OpenWindow()
3332
{
3433
GetWindow<McpForUnitySkillInstaller>("Unity MCP Skill Install(Sync)");

MCPForUnity/Editor/Setup/RoslynInstaller.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ private static readonly (string packageId, string version, string dllPath, strin
1919
("system.reflection.metadata", "8.0.0", "lib/netstandard2.0/System.Reflection.Metadata.dll", "System.Reflection.Metadata.dll"),
2020
};
2121

22-
[MenuItem("Window/MCP For Unity/Install Roslyn DLLs", priority = 20)]
23-
public static void InstallViaMenu()
24-
{
25-
Install(interactive: true);
26-
}
27-
2822
public static bool IsInstalled()
2923
{
3024
string folder = Path.Combine(Application.dataPath, PluginsRelPath);

0 commit comments

Comments
 (0)