File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
samples/WeihanLi.Web.Extensions.Samples Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 16
16
<PackageVersion Condition =" '$(TargetFramework)'=='net9.0'" Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" $(AspNet9PackageVersion)" />
17
17
<PackageVersion Condition =" '$(TargetFramework)'=='net10.0'" Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" $(AspNet10PackageVersion)" />
18
18
<PackageVersion Include =" Microsoft.AspNetCore.OpenApi" Version =" $(AspNet10PackageVersion)" />
19
- <PackageVersion Include =" ModelContextProtocol.AspNetCore" Version =" 0.2.0-preview.1 " />
19
+ <PackageVersion Include =" ModelContextProtocol.AspNetCore" Version =" 0.2.0-preview.2 " />
20
20
<PackageVersion Include =" Scalar.AspNetCore" Version =" 2.4.3" />
21
21
<PackageVersion Include =" WeihanLi.Common" Version =" 1.0.78" />
22
22
</ItemGroup >
Original file line number Diff line number Diff line change 2
2
// Licensed under the MIT license.
3
3
4
4
using Microsoft . Extensions . DependencyInjection . Extensions ;
5
- using ModelContextProtocol . Protocol . Types ;
6
5
using ModelContextProtocol . Server ;
7
6
using System . Diagnostics ;
8
7
@@ -25,7 +24,6 @@ public class McpServerEndpointConfigureOptions(EndpointDataSource endpointDataSo
25
24
public void Configure ( McpServerOptions options )
26
25
{
27
26
options . Capabilities ??= new ( ) ;
28
- options . Capabilities . Tools ??= new ToolsCapability ( ) ;
29
27
options . Capabilities . Tools . ToolCollection ??= new ( ) ;
30
28
31
29
foreach ( var endpoint in endpointDataSource . Endpoints )
You can’t perform that action at this time.
0 commit comments