File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/ModelContextProtocol.Core/Server Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ public static bool IsAugmentedWith(Type serviceType) =>
2626 /// <inheritdoc />
2727 public object ? GetService ( Type serviceType ) =>
2828 serviceType == typeof ( RequestContext < TRequestParams > ) ? request :
29- serviceType == typeof ( McpServer ) ? request . Server :
29+ #pragma warning disable CS0618 // Type or member is obsolete
30+ serviceType == typeof ( McpServer ) || serviceType == typeof ( IMcpServer ) ? request . Server :
31+ #pragma warning restore CS0618 // Type or member is obsolete
3032 serviceType == typeof ( IProgress < ProgressNotificationValue > ) ?
3133 ( request . Params ? . ProgressToken is { } progressToken ? new TokenProgress ( request . Server , progressToken ) : NullProgress . Instance ) :
3234 innerServices ? . GetService ( serviceType ) ;
You can’t perform that action at this time.
0 commit comments