Skip to content

Commit a0486d3

Browse files
committed
Cleanup
1 parent 405db57 commit a0486d3

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

samples/ProtectedMCPServer/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using Microsoft.AspNetCore.Authentication;
22
using Microsoft.Extensions.Options;
3-
using ModelContextProtocol.AspNetCore;
4-
using ModelContextProtocol.Protocol.Types;
53
using ModelContextProtocol.AspNetCore.Auth;
4+
using ModelContextProtocol.Protocol.Types;
65
using System.Security.Claims;
76
using System.Text.Encodings.Web;
87

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace ModelContextProtocol.AspNetCore.Auth;
2+
3+
/// <summary>
4+
/// Marker class to indicate that MCP authentication response middleware should be used.
5+
/// </summary>
6+
internal class McpAuthenticationResponseMarker { }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace ModelContextProtocol.AspNetCore.Auth;
2+
3+
/// <summary>
4+
/// Marker class to indicate that MCP authorization has been configured.
5+
/// </summary>
6+
internal class McpAuthorizationMarker { }

src/ModelContextProtocol.AspNetCore/HttpMcpServerBuilderExtensions.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,3 @@ public static IMcpServerBuilder WithAuthorization(
9494
return builder;
9595
}
9696
}
97-
98-
/// <summary>
99-
/// Marker class to indicate that MCP authorization has been configured.
100-
/// </summary>
101-
internal class McpAuthorizationMarker { }
102-
103-
/// <summary>
104-
/// Marker class to indicate that MCP authentication response middleware should be used.
105-
/// </summary>
106-
internal class McpAuthenticationResponseMarker { }

0 commit comments

Comments
 (0)