Skip to content

Commit b09a86f

Browse files
committed
WriteToConfig: only include type="stdio" for VSCode; omit for other clients
1 parent a52ce7a commit b09a86f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

UnityMcpBridge/Editor/Windows/UnityMcpEditorWindow.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,11 @@ private string WriteToConfig(string pythonDir, string configPath, McpClient mcpC
944944
{
945945
command = uvPath,
946946
args = new[] { "--directory", pythonDir, "run", "server.py" },
947-
type = "stdio",
948947
};
948+
if (mcpClient?.mcpType == McpTypes.VSCode)
949+
{
950+
unityMCPConfig.type = "stdio";
951+
}
949952

950953
JsonSerializerSettings jsonSettings = new() { Formatting = Formatting.Indented };
951954

0 commit comments

Comments
 (0)