Editor: use macConfigPath on macOS for MCP client config writes (Claude Desktop, etc.). Fallback to linuxConfigPath only if mac path missing.
parent
daa105da35
commit
99d7a120c9
|
|
@ -1413,7 +1413,14 @@ namespace MCPForUnity.Editor.Windows
|
|||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
|
||||
|| RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = string.IsNullOrEmpty(mcpClient.macConfigPath)
|
||||
? mcpClient.linuxConfigPath
|
||||
: mcpClient.macConfigPath;
|
||||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = mcpClient.linuxConfigPath;
|
||||
|
|
@ -1455,7 +1462,14 @@ namespace MCPForUnity.Editor.Windows
|
|||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
|
||||
|| RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = string.IsNullOrEmpty(mcpClient.macConfigPath)
|
||||
? mcpClient.linuxConfigPath
|
||||
: mcpClient.macConfigPath;
|
||||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = mcpClient.linuxConfigPath;
|
||||
|
|
@ -1567,7 +1581,14 @@ namespace MCPForUnity.Editor.Windows
|
|||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
|
||||
|| RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = string.IsNullOrEmpty(mcpClient.macConfigPath)
|
||||
? mcpClient.linuxConfigPath
|
||||
: mcpClient.macConfigPath;
|
||||
}
|
||||
else if (
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
)
|
||||
{
|
||||
configPath = mcpClient.linuxConfigPath;
|
||||
|
|
|
|||
Loading…
Reference in New Issue