@@ -1413,7 +1413,14 @@ private string ConfigureMcpClient(McpClient mcpClient)
14131413 }
14141414 else if (
14151415 RuntimeInformation . IsOSPlatform ( OSPlatform . OSX )
1416- || RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
1416+ )
1417+ {
1418+ configPath = string . IsNullOrEmpty ( mcpClient . macConfigPath )
1419+ ? mcpClient . linuxConfigPath
1420+ : mcpClient . macConfigPath ;
1421+ }
1422+ else if (
1423+ RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
14171424 )
14181425 {
14191426 configPath = mcpClient . linuxConfigPath ;
@@ -1455,7 +1462,14 @@ private string ConfigureMcpClient(McpClient mcpClient)
14551462 }
14561463 else if (
14571464 RuntimeInformation . IsOSPlatform ( OSPlatform . OSX )
1458- || RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
1465+ )
1466+ {
1467+ configPath = string . IsNullOrEmpty ( mcpClient . macConfigPath )
1468+ ? mcpClient . linuxConfigPath
1469+ : mcpClient . macConfigPath ;
1470+ }
1471+ else if (
1472+ RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
14591473 )
14601474 {
14611475 configPath = mcpClient . linuxConfigPath ;
@@ -1567,7 +1581,14 @@ private void CheckMcpConfiguration(McpClient mcpClient)
15671581 }
15681582 else if (
15691583 RuntimeInformation . IsOSPlatform ( OSPlatform . OSX )
1570- || RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
1584+ )
1585+ {
1586+ configPath = string . IsNullOrEmpty ( mcpClient . macConfigPath )
1587+ ? mcpClient . linuxConfigPath
1588+ : mcpClient . macConfigPath ;
1589+ }
1590+ else if (
1591+ RuntimeInformation . IsOSPlatform ( OSPlatform . Linux )
15711592 )
15721593 {
15731594 configPath = mcpClient . linuxConfigPath ;
0 commit comments