Fix stdio client transport CLI argument escaping. (#811)
* Fix stdio client transport CLI argument escaping. * Fix failing Windows test. * Add more test cases and refine escaping logic. * Fix test failures in mono * Style fixes * Tweak stdio test * Tweak tests further
This commit is contained in:
parent
f331a6927f
commit
d8768de302
1 changed files with 137 additions and 14 deletions
|
|
@ -1,6 +1,9 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ModelContextProtocol.Tests;
|
||||
|
||||
internal static class PlatformDetection
|
||||
{
|
||||
public static bool IsMonoRuntime { get; } = Type.GetType("Mono.Runtime") is not null;
|
||||
public static bool IsWindows { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
|
||||
}
|
||||
Loading…
Reference in a new issue