Skip to content

Commit 0121957

Browse files
Update src/ModelContextProtocol.Core/Server/AugmentedServiceProvider.cs
Co-authored-by: Stephen Halter <[email protected]>
1 parent 4d426d0 commit 0121957

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ModelContextProtocol.Core/Server/AugmentedServiceProvider.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ internal sealed class RequestServiceProvider<TRequestParams>(
1818
public static bool IsAugmentedWith(Type serviceType) =>
1919
serviceType == typeof(RequestContext<TRequestParams>) ||
2020
serviceType == typeof(McpServer) ||
21+
#pragma warning disable CS0618 // Type or member is obsolete
22+
serviceType == typeof(IMcpServer) ||
23+
#pragma warning restore CS0618 // Type or member is obsolete
2124
serviceType == typeof(IProgress<ProgressNotificationValue>);
2225

2326
/// <inheritdoc />

0 commit comments

Comments
 (0)