You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
/// <summary>Creates an <see cref="IMcpClient"/>, connecting it to the specified server.</summary>
15
-
/// <param name="serverConfig">Configuration for the target server to which the client should connect.</param>
15
+
/// <param name="clientTransport">The transport instance used to communicate with the server.</param>
16
16
/// <param name="clientOptions">
17
17
/// A client configuration object which specifies client capabilities and protocol version.
18
18
/// If <see langword="null"/>, details based on the current process will be employed.
19
19
/// </param>
20
-
/// <param name="createTransportFunc">An optional factory method which returns transport implementations based on a server configuration.</param>
21
20
/// <param name="loggerFactory">A logger factory for creating loggers for clients.</param>
22
21
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
23
22
/// <returns>An <see cref="IMcpClient"/> that's connected to the specified server.</returns>
24
-
/// <exception cref="ArgumentNullException"><paramref name="serverConfig"/> is <see langword="null"/>.</exception>
23
+
/// <exception cref="ArgumentNullException"><paramref name="clientTransport"/> is <see langword="null"/>.</exception>
25
24
/// <exception cref="ArgumentNullException"><paramref name="clientOptions"/> is <see langword="null"/>.</exception>
0 commit comments