Skip to content

Commit 8f6d601

Browse files
authored
Made the StreamableHttpHandler and SseHandler classes public (#1)
1 parent 7e2b289 commit 8f6d601

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ root = true
55
[*.cs]
66

77
# Compiler
8+
dotnet_diagnostic.CS1591.severity = none # CS1591: Missing XML comment for publicly visible type or member
89
dotnet_diagnostic.CS1998.severity = suggestion # CS1998: Missing awaits
910

1011
# Code Analysis

src/ModelContextProtocol.AspNetCore/HttpMcpSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace ModelContextProtocol.AspNetCore;
77

8-
internal sealed class HttpMcpSession<TTransport>(
8+
public sealed class HttpMcpSession<TTransport>(
99
string sessionId,
1010
TTransport transport,
1111
UserIdClaim? userId,

src/ModelContextProtocol.AspNetCore/SseHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace ModelContextProtocol.AspNetCore;
1111

12-
internal sealed class SseHandler(
12+
public sealed class SseHandler(
1313
IOptions<McpServerOptions> mcpServerOptionsSnapshot,
1414
IOptionsFactory<McpServerOptions> mcpServerOptionsFactory,
1515
IOptions<HttpServerTransportOptions> httpMcpServerOptions,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
namespace ModelContextProtocol.AspNetCore.Stateless;
22

3-
internal sealed record UserIdClaim(string Type, string Value, string Issuer);
3+
public sealed record UserIdClaim(string Type, string Value, string Issuer);

src/ModelContextProtocol.AspNetCore/StreamableHttpHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace ModelContextProtocol.AspNetCore;
2020

21-
internal sealed class StreamableHttpHandler(
21+
public sealed class StreamableHttpHandler(
2222
IOptions<McpServerOptions> mcpServerOptionsSnapshot,
2323
IOptionsFactory<McpServerOptions> mcpServerOptionsFactory,
2424
IOptions<HttpServerTransportOptions> httpServerTransportOptions,

0 commit comments

Comments
 (0)