Skip to content

Commit 18bb6ff

Browse files
Merge branch 'ant/mcp_instructions' into ant/validation
2 parents f836822 + 446a873 commit 18bb6ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Bicep.McpServer/IServiceCollectionExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public static IMcpServerBuilder AddBicepMcpServer(this IServiceCollection servic
4040
.AddSingleton<ResourceVisitor>()
4141
.AddBicepCore();
4242

43+
services
44+
.AddSingleton<BicepTools>();
45+
4346
services.AddAzureClients(clientBuilder =>
4447
{
4548
clientBuilder.AddArmClient("00000000-0000-0000-0000-000000000000");
@@ -54,7 +57,6 @@ public static IMcpServerBuilder AddBicepMcpServer(this IServiceCollection servic
5457
})
5558
.WithTools<BicepTools>();
5659
}
57-
5860

5961
public static IServiceCollection AddBicepCore(this IServiceCollection services) => services
6062
.AddSingleton<INamespaceProvider, NamespaceProvider>()

0 commit comments

Comments
 (0)