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
/// Provides factory methods for creating Model Context Protocol (MCP) clients.
7
+
/// </summary>
8
+
/// <remarks>
9
+
/// This factory class is the primary way to instantiate <see cref="IMcpClient"/> instances
10
+
/// that connect to MCP servers. It handles the creation and connection
11
+
/// of appropriate implementations through the supplied transport.
12
+
/// </remarks>
13
+
publicstaticpartialclassMcpClientFactory
14
+
{
15
+
/// <summary>Creates an <see cref="IMcpClient"/>, connecting it to the specified server.</summary>
16
+
/// <param name="clientTransport">The transport instance used to communicate with the server.</param>
17
+
/// <param name="clientOptions">
18
+
/// A client configuration object which specifies client capabilities and protocol version.
19
+
/// If <see langword="null"/>, details based on the current process will be employed.
20
+
/// </param>
21
+
/// <param name="loggerFactory">A logger factory for creating loggers for clients.</param>
22
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
23
+
/// <returns>An <see cref="IMcpClient"/> that's connected to the specified server.</returns>
24
+
/// <exception cref="ArgumentNullException"><paramref name="clientTransport"/> is <see langword="null"/>.</exception>
25
+
/// <exception cref="ArgumentNullException"><paramref name="clientOptions"/> is <see langword="null"/>.</exception>
0 commit comments