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
Copy file name to clipboardExpand all lines: src/ModelContextProtocol/Client/McpClientExtensions.cs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
usingMicrosoft.Extensions.AI;
2
+
usingMicrosoft.Extensions.Logging;
2
3
usingModelContextProtocol.Protocol.Messages;
3
4
usingModelContextProtocol.Protocol.Types;
5
+
usingModelContextProtocol.Server;
4
6
usingModelContextProtocol.Utils;
5
7
usingModelContextProtocol.Utils.Json;
6
8
usingSystem.Runtime.CompilerServices;
@@ -631,6 +633,15 @@ public static Task SetLoggingLevel(this IMcpClient client, LoggingLevel level, C
631
633
cancellationToken:cancellationToken);
632
634
}
633
635
636
+
/// <summary>
637
+
/// Configures the minimum logging level for the server.
638
+
/// </summary>
639
+
/// <param name="client">The client.</param>
640
+
/// <param name="level">The minimum log level of messages to be generated.</param>
641
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
0 commit comments