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
2 changed files with 16 additions and 22 deletions
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
using System.Diagnostics.Tracing;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json;
|
||||
using System.Text;
|
||||
using McpDotNet.Protocol.Messages;
|
||||
using McpDotNet.Configuration;
|
||||
|
|
@ -9,7 +7,6 @@ using McpDotNet.Logging;
|
|||
using System.Net.Http.Headers;
|
||||
using System.Text.Json.Serialization;
|
||||
using McpDotNet.Utils.Json;
|
||||
using System.Threading;
|
||||
|
||||
namespace McpDotNet.Protocol.Transport;
|
||||
|
||||
|
|
|
|||
|
|
@ -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