Skip to content

Conversation

@g2vinay
Copy link
Contributor

@g2vinay g2vinay commented Jan 20, 2026

Optimized --version command to execute instantly without initializing all Azure services, reducing first-run latency from ~10+ seconds to under 3 seconds.

Resolves #883

@g2vinay g2vinay force-pushed the optimize-version-flag branch from 5b1b61f to 06b8349 Compare January 23, 2026 05:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Optimizes the azmcp --version path to avoid full DI/service initialization, reducing first-run latency for version queries.

Changes:

  • Added a fast-path in the Azure MCP Server entrypoint to immediately handle --version/-v.
  • Introduced AssemblyHelper.GetFullAssemblyVersion to return the assembly informational version including build metadata.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
servers/Azure.Mcp.Server/src/Program.cs Adds early exit for --version/-v before initializing services/DI.
core/Azure.Mcp.Core/src/Helpers/AssemblyHelper.cs Adds helper to return full AssemblyInformationalVersion (including + build metadata).

@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure MCP Server Jan 24, 2026
@g2vinay g2vinay merged commit 999ca0b into microsoft:main Jan 24, 2026
27 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure MCP Server Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUGBASH] azmcp --version took a long time to load first time

3 participants