Skip to content

Commit d7b005b

Browse files
committed
Made the StreamableHttpHandler and SseHandler classes public (#1)
1 parent e9652c6 commit d7b005b

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ root = true
66
csharp_style_namespace_declarations=file_scoped:warning
77

88
# Compiler
9+
dotnet_diagnostic.CS1591.severity = none # CS1591: Missing XML comment for publicly visible type or member
910
dotnet_diagnostic.CS1998.severity = suggestion # CS1998: Missing awaits
1011

1112
# Code Analysis

src/ModelContextProtocol.AspNetCore/SseHandler.cs

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

99
namespace ModelContextProtocol.AspNetCore;
1010

11-
internal sealed class SseHandler(
11+
public sealed class SseHandler(
1212
IOptions<McpServerOptions> mcpServerOptionsSnapshot,
1313
IOptionsFactory<McpServerOptions> mcpServerOptionsFactory,
1414
IOptions<HttpServerTransportOptions> httpMcpServerOptions,

src/ModelContextProtocol.AspNetCore/StatefulSessionManager.cs

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

88
namespace ModelContextProtocol.AspNetCore;
99

10-
internal sealed partial class StatefulSessionManager(
10+
public sealed partial class StatefulSessionManager(
1111
IOptions<HttpServerTransportOptions> httpServerTransportOptions,
1212
ILogger<StatefulSessionManager> logger)
1313
{

src/ModelContextProtocol.AspNetCore/StreamableHttpHandler.cs

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

1414
namespace ModelContextProtocol.AspNetCore;
1515

16-
internal sealed class StreamableHttpHandler(
16+
public sealed class StreamableHttpHandler(
1717
IOptions<McpServerOptions> mcpServerOptionsSnapshot,
1818
IOptionsFactory<McpServerOptions> mcpServerOptionsFactory,
1919
IOptions<HttpServerTransportOptions> httpServerTransportOptions,

src/ModelContextProtocol.AspNetCore/StreamableHttpSession.cs

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

55
namespace ModelContextProtocol.AspNetCore;
66

7-
internal sealed class StreamableHttpSession(
7+
public sealed class StreamableHttpSession(
88
string sessionId,
99
StreamableHttpServerTransport transport,
1010
McpServer server,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
namespace ModelContextProtocol.AspNetCore;
22

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

0 commit comments

Comments
 (0)