WriteToConfig: only include type="stdio" for VSCode; omit for other clients

main
David Sarno 2025-08-12 21:47:11 -07:00
parent a52ce7a219
commit b09a86f5fb
1 changed files with 4 additions and 1 deletions

View File

@ -944,8 +944,11 @@ namespace UnityMcpBridge.Editor.Windows
{
command = uvPath,
args = new[] { "--directory", pythonDir, "run", "server.py" },
type = "stdio",
};
if (mcpClient?.mcpType == McpTypes.VSCode)
{
unityMCPConfig.type = "stdio";
}
JsonSerializerSettings jsonSettings = new() { Formatting = Formatting.Indented };