Skip to content

Commit 04b19f9

Browse files
author
Jerry Nixon
committed
Updated mege
2 parents 3948822 + db72d87 commit 04b19f9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Azure.DataApiBuilder.Mcp/Extensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
// Licensed under the MIT License.
33

44
using System.Diagnostics.CodeAnalysis;
5+
using System.Text.Json;
56
using Azure.DataApiBuilder.Config.ObjectModel;
67
using Azure.DataApiBuilder.Core.Configurations;
78
using Azure.DataApiBuilder.Mcp.Health;
89
using Azure.DataApiBuilder.Mcp.Tools;
910
using Microsoft.AspNetCore.Builder;
1011
using Microsoft.AspNetCore.Routing;
1112
using Microsoft.Extensions.DependencyInjection;
13+
using ModelContextProtocol;
14+
using ModelContextProtocol.Protocol;
15+
using ModelContextProtocol.Server;
1216

1317
namespace 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
}

0 commit comments

Comments
 (0)