File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ public static IResourceBuilder<McpInspectorResource> AddMcpInspector(this IDistr
5252 transport = s . TransportType switch
5353 {
5454 McpTransportType . StreamableHttp => "streamable-http" ,
55+ #pragma warning disable CS0618
5556 McpTransportType . Sse => "sse" ,
57+ #pragma warning restore CS0618
5658 _ => throw new NotSupportedException ( $ "The transport type { s . TransportType } is not supported.")
5759 } ,
5860 endpoint = s . Endpoint . Url
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ public enum McpTransportType
1313 /// <summary>
1414 /// The MCP server uses Server Sent Events (SSE) as the transport type.
1515 /// </summary>
16+ [ Obsolete ( "SSE Transport is deprecated in the MCP spec, use StreamableHttp instead. This will be removed in the next release." ) ]
1617 Sse
1718}
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ public void WithMcpServerAddsServerToResource()
6060
6161 [ Theory ]
6262 [ InlineData ( McpTransportType . StreamableHttp ) ]
63+ #pragma warning disable CS0618
6364 [ InlineData ( McpTransportType . Sse ) ]
65+ #pragma warning restore CS0618
6466 public void WithMcpServerSpecificTransportTypeAddsServerToResource ( McpTransportType transportType )
6567 {
6668 // Arrange
You can’t perform that action at this time.
0 commit comments