Skip to content

Commit 940831f

Browse files
Merge pull request #1027 from CoplayDev/release/v9.6.5
chore: bump version to 9.6.5
2 parents 61521a2 + 95b8981 commit 940831f

45 files changed

Lines changed: 2546 additions & 350 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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/Helpers/Response.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MCPForUnity/Editor/MCPForUnity.Editor.asmdef

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"name": "MCPForUnity.Editor",
33
"rootNamespace": "MCPForUnity.Editor",
44
"references": [
5-
"MCPForUnity.Runtime",
6-
"Newtonsoft.Json"
5+
"MCPForUnity.Runtime"
76
],
87
"includePlatforms": [
98
"Editor"

MCPForUnity/Editor/Resources/Editor/ToolStates.cs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,35 @@ public static object HandleCommand(JObject @params)
2323
var toolsArray = new JArray();
2424
foreach (var tool in allTools)
2525
{
26+
var paramsArray = new JArray();
27+
if (tool.Parameters != null)
28+
{
29+
foreach (var p in tool.Parameters)
30+
{
31+
paramsArray.Add(new JObject
32+
{
33+
["name"] = p.Name,
34+
["description"] = p.Description,
35+
["type"] = p.Type,
36+
["required"] = p.Required,
37+
["default_value"] = p.DefaultValue
38+
});
39+
}
40+
}
41+
2642
toolsArray.Add(new JObject
2743
{
2844
["name"] = tool.Name,
2945
["group"] = tool.Group ?? "core",
30-
["enabled"] = discovery.IsToolEnabled(tool.Name)
46+
["enabled"] = discovery.IsToolEnabled(tool.Name),
47+
["description"] = tool.Description,
48+
["auto_register"] = tool.AutoRegister,
49+
["is_built_in"] = tool.IsBuiltIn,
50+
["structured_output"] = tool.StructuredOutput,
51+
["requires_polling"] = tool.RequiresPolling,
52+
["poll_action"] = tool.PollAction ?? "status",
53+
["max_poll_seconds"] = tool.MaxPollSeconds,
54+
["parameters"] = paramsArray
3155
});
3256
}
3357

MCPForUnity/Editor/Services/Transport/Transports/StdioTransportClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public Task<bool> VerifyAsync()
4848

4949
public Task ReregisterToolsAsync()
5050
{
51-
// Stdio transport doesn't support dynamic tool reregistration
52-
// Tools are registered at server startup
51+
// In stdio mode, Python re-syncs tools automatically on reconnection
52+
// after domain reload. No proactive push mechanism exists over TCP.
5353
return Task.CompletedTask;
5454
}
5555

MCPForUnity/Editor/Services/Transport/Transports/WebSocketTransportClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private async Task SendRegisterToolsAsync(CancellationToken token)
540540
["description"] = tool.Description,
541541
["structured_output"] = tool.StructuredOutput,
542542
["requires_polling"] = tool.RequiresPolling,
543-
["poll_action"] = tool.PollAction,
543+
["poll_action"] = tool.PollAction ?? "status",
544544
["max_poll_seconds"] = tool.MaxPollSeconds,
545545
["group"] = string.IsNullOrWhiteSpace(tool.Group) ? "core" : tool.Group
546546
};

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)