Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly. (#230)
* Remove McpServerConfig and have McpClientFactory accept IClientTransport instances directly. * Address feedback and use lists when representing stdio arguments. * Use "Name" for transport descriptors and "EndpointName" for MCP clients and servers. * Update code samples. * Fix source file naming
This commit is contained in:
parent
8bd9ee81c0
commit
3e21f3594a
1 changed files with 315 additions and 527 deletions
|
|
@ -59,13 +59,8 @@ public class DiagnosticTests
|
|||
{
|
||||
serverTask = server.RunAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
await using (IMcpClient client = await McpClientFactory.CreateAsync(new()
|
||||
{
|
||||
Id = "TestServer",
|
||||
Name = "TestServer",
|
||||
TransportType = TransportTypes.StdIo,
|
||||
},
|
||||
createTransportFunc: (_, __) => clientTransport,
|
||||
await using (IMcpClient client = await McpClientFactory.CreateAsync(
|
||||
clientTransport,
|
||||
cancellationToken: TestContext.Current.CancellationToken))
|
||||
{
|
||||
await action(client, server);
|
||||
|
|
|
|||
Loading…
Reference in a new issue