Server support (stdio) (#19)
* Server support (stdio) * TestServer project * Refactored McpClient class to extract shared endpoint logic (with McpServer) to a base class, McpJsonRpcEndpoint. * Improved xmldoc comments for protocol types, mirroring specification schema comments. * Update README.MD
This commit is contained in:
parent
c384c7d3de
commit
8fe797e1f3
1 changed files with 2668 additions and 659 deletions
|
|
@ -19,7 +19,7 @@ public class SseTransportTests
|
|||
Location = "http://localhost:8080"
|
||||
};
|
||||
|
||||
var transportOptions = new SseTransportOptions
|
||||
var transportOptions = new SseClientTransportOptions
|
||||
{
|
||||
ConnectionTimeout = TimeSpan.FromSeconds(10),
|
||||
MaxReconnectAttempts = 2,
|
||||
|
|
@ -31,7 +31,7 @@ public class SseTransportTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var transport = new SseTransport(transportOptions, config, NullLoggerFactory.Instance);
|
||||
var transport = new SseClientTransport(transportOptions, config, NullLoggerFactory.Instance);
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(transport);
|
||||
|
|
@ -53,7 +53,7 @@ public class SseTransportTests
|
|||
Location = "http://localhost:8080"
|
||||
};
|
||||
|
||||
var transportOptions = new SseTransportOptions
|
||||
var transportOptions = new SseClientTransportOptions
|
||||
{
|
||||
ConnectionTimeout = TimeSpan.FromSeconds(10),
|
||||
MaxReconnectAttempts = 2,
|
||||
|
|
@ -65,7 +65,7 @@ public class SseTransportTests
|
|||
};
|
||||
|
||||
// Act
|
||||
var transport = new SseTransport(transportOptions, config, NullLoggerFactory.Instance);
|
||||
var transport = new SseClientTransport(transportOptions, config, NullLoggerFactory.Instance);
|
||||
|
||||
// Assert
|
||||
Assert.True(string.IsNullOrEmpty(transport.MessageEndpoint?.ToString()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue