From 88efec1548a2762aa10dad34828ab4fced7849a6 Mon Sep 17 00:00:00 2001 From: Connie Yau Date: Tue, 21 Oct 2025 11:13:31 -0700 Subject: [PATCH 1/2] Move server started telemetry --- .../src/Areas/Server/Commands/ServiceStartCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Azure.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs b/core/Azure.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs index 8ebc179d81..206c51b7d1 100644 --- a/core/Azure.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs +++ b/core/Azure.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs @@ -130,10 +130,11 @@ public override async Task ExecuteAsync(CommandContext context, await InitializeServicesAsync(host.Services); + await host.StartAsync(CancellationToken.None); + var telemetryService = host.Services.GetRequiredService(); LogStartTelemetry(telemetryService, options); - await host.StartAsync(CancellationToken.None); await host.WaitForShutdownAsync(CancellationToken.None); return context.Response; From 6de6279f2e1bd2922535626a8da29e636f8d4276 Mon Sep 17 00:00:00 2001 From: Connie Yau Date: Tue, 21 Oct 2025 11:16:44 -0700 Subject: [PATCH 2/2] Add CHANGELOG --- servers/Azure.Mcp.Server/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/Azure.Mcp.Server/CHANGELOG.md b/servers/Azure.Mcp.Server/CHANGELOG.md index 1a388904f3..70158a0666 100644 --- a/servers/Azure.Mcp.Server/CHANGELOG.md +++ b/servers/Azure.Mcp.Server/CHANGELOG.md @@ -12,6 +12,7 @@ The Azure MCP Server updates automatically by default whenever a new release com ### Bugs Fixed - Convert ARG usage to .NET SDK method calls of GetEntraAdministratorsAsync and ListFirewallRulesAsync to resolve the related issues ([#779](https://github.com/microsoft/mcp/issues/779) and [#855](https://github.com/microsoft/mcp/issues/855)) in `azmcp_entra_administrator_list` and `azmcp_sql_server_firewall_rule_list` commands. [[#891](https://github.com/microsoft/mcp/pull/891)] +- Fixed `ServerStarted` telemetry event not being published. [[#905](https://github.com/microsoft/mcp/pull/905)] ### Other Changes