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:
parent
535d342367
commit
502a09d9fc
1 changed files with 16 additions and 22 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue