Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public static IResourceBuilder<McpInspectorResource> AddMcpInspector(this IDistr
transport = s.TransportType switch
{
McpTransportType.StreamableHttp => "streamable-http",
#pragma warning disable CS0618
McpTransportType.Sse => "sse",
#pragma warning restore CS0618
_ => throw new NotSupportedException($"The transport type {s.TransportType} is not supported.")
},
endpoint = s.Endpoint.Url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ public enum McpTransportType
/// <summary>
/// The MCP server uses Server Sent Events (SSE) as the transport type.
/// </summary>
[Obsolete("SSE Transport is deprecated in the MCP spec, use StreamableHttp instead. This will be removed in the next release.")]
Sse
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public void WithMcpServerAddsServerToResource()

[Theory]
[InlineData(McpTransportType.StreamableHttp)]
#pragma warning disable CS0618
[InlineData(McpTransportType.Sse)]
#pragma warning restore CS0618
public void WithMcpServerSpecificTransportTypeAddsServerToResource(McpTransportType transportType)
{
// Arrange
Expand Down
Loading