Enable HTTP support across all trimmed azmcp distributions and update Docker to use trimmed azmcp#1760
Merged
anuchandy merged 1 commit intomicrosoft:mainfrom Feb 19, 2026
Conversation
cdb1a6c to
8491909
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables HTTP support for trimmed azmcp distributions across all platforms (npm, NuGet, VSIX, Docker) by upgrading to Microsoft.Identity.Web 4.4.0-preview.1, which includes AOT-safe HTTP support. Previously, only Docker builds were untrimmed to enable HTTP support, while other distributions used trimmed builds without HTTP. The changes also update Docker to use trimmed builds for both x64 and arm64 architectures.
Changes:
- Upgraded Microsoft.Identity.Web to 4.4.0-preview.1 (prerelease) and Microsoft.Identity.Abstractions to 11.0.0 for AOT-compatible HTTP support
- Modified authentication setup to use AddMicrosoftIdentityWebApiAot instead of AddMicrosoftIdentityWebApi
- Enabled ENABLE_HTTP directive for all build configurations (previously excluded for trimmed/native builds)
- Switched Docker platform definitions to use trimmed builds
- Added musl-arm64 architecture support to Docker builds
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/scripts/New-BuildInfo.ps1 | Updated Docker platform definitions to use trimmed builds instead of untrimmed; added comprehensive comments explaining the rollback safety net |
| eng/scripts/Build-Docker.ps1 | Added musl-arm64 architecture mapping to support ARM64 Docker images |
| Directory.Packages.props | Upgraded Microsoft.Identity.Web packages to 4.4.0-preview.1 and Microsoft.Identity.Abstractions to 11.0.0 |
| Directory.Build.props | Enabled ENABLE_HTTP directive for all builds (removed condition restricting it from trimmed/native builds) with updated comments |
| core/Microsoft.Mcp.Core/src/Services/Azure/Authentication/AuthenticationServiceCollectionExtensions.cs | Changed AddHttpOnBehalfOfTokenCredentialProvider to accept AuthenticationBuilder and use AddTokenAcquisition() directly instead of EnableTokenAcquisitionToCallDownstreamApi() |
| core/Microsoft.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs | Migrated from AddMicrosoftIdentityWebApi to AddMicrosoftIdentityWebApiAot and changed to use MicrosoftIdentityApplicationOptions instead of MicrosoftIdentityOptions |
core/Microsoft.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs
Show resolved
Hide resolved
...soft.Mcp.Core/src/Services/Azure/Authentication/AuthenticationServiceCollectionExtensions.cs
Show resolved
Hide resolved
8491909 to
8e5f013
Compare
joshfree
approved these changes
Feb 19, 2026
Member
joshfree
left a comment
There was a problem hiding this comment.
The code is good - but you're missing the CHANGELOG.md which is used for the release notes and monday minutes updates
8e5f013 to
e897487
Compare
e897487 to
3a83fb0
Compare
hallipr
reviewed
Feb 19, 2026
core/Microsoft.Mcp.Core/src/Areas/Server/Commands/ServiceStartCommand.cs
Show resolved
Hide resolved
joshfree
approved these changes
Feb 19, 2026
vcolin7
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This change enables:
To enable this, we took a dependency on a pre-release version of Microsoft.Identity.Web
[Any additional context, screenshots, or information that helps reviewers]I’ve kept the existing enable_http directive (in code) and Docker platform (in build_info) separation in place rather than aggressively refactoring/removing them out. This preserves our ability to roll back to the previous form (trimmed non-http for non-docker distributions and untrimmed Docker) if needed during pre-release time. I’m planning to make those cleanup changes as we get closer to IDWeb GA, when the surface is more stable.
GitHub issue number?
[Link to the GitHub issue this PR addresses]Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationeng/scripts/Process-PackageReadMe.ps1. See Package README/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.md.\eng\scripts\Update-AzCommandsMetadata.ps1to update tool metadata in azmcp-commands.md (required for CI)ToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.json/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline