File tree Expand file tree Collapse file tree
src/Azure.DataApiBuilder.Mcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// Licensed under the MIT License.
33
44using System . Diagnostics . CodeAnalysis ;
5+ using System . Text . Json ;
56using Azure . DataApiBuilder . Config . ObjectModel ;
67using Azure . DataApiBuilder . Core . Configurations ;
78using Azure . DataApiBuilder . Mcp . Health ;
89using Azure . DataApiBuilder . Mcp . Tools ;
910using Microsoft . AspNetCore . Builder ;
1011using Microsoft . AspNetCore . Routing ;
1112using Microsoft . Extensions . DependencyInjection ;
13+ using ModelContextProtocol ;
14+ using ModelContextProtocol . Protocol ;
15+ using ModelContextProtocol . Server ;
1216
1317namespace Azure . DataApiBuilder . Mcp
1418{
@@ -34,8 +38,8 @@ public static IServiceCollection AddDabMcpServer(this IServiceCollection service
3438
3539 public static IEndpointRouteBuilder MapDabMcp ( this IEndpointRouteBuilder endpoints , [ StringSyntax ( "Route" ) ] string ? pattern = null )
3640 {
37- endpoints . MapMcp ( ) ;
38- endpoints . MapMcpHealthEndpoint ( pattern ) ;
41+ endpoints . MapMcp ( pattern ) ;
42+ endpoints . MapMcpHealthEndpoint ( pattern & "/health" ) ;
3943 return endpoints ;
4044 }
4145 }
You can’t perform that action at this time.
0 commit comments