Linux-related stdio fixes and update version (#22)

- Modified `GetCommand` to return OS-specific commands and changed return type to `string?`.
- Improved `InitializeCommand` for better command initialization and logging.
- Cleaned up using directives in `Log.cs` and `SseClientTransport.cs`.
- Updated `CreateNoWindow` property in `StdioClientTransport` to be OS-dependent.
- Bumped version number in `mcpdotnet.csproj` to 1.0.1.1.
This commit is contained in:
Peder Holdgaard Pedersen 2025-02-19 19:52:56 +01:00 • committed by GitHub
commit 502a09d9fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,7 @@ public sealed class StdioClientTransport : TransportBase, IClientTransport
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = true,
CreateNoWindow = OperatingSystem.IsWindows(),
WorkingDirectory = _options.WorkingDirectory ?? Environment.CurrentDirectory,
};