Fix App Lens serialization#639
Merged
alzimmermsft merged 4 commits intomicrosoft:mainfrom Oct 1, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a serialization issue in the Azure MCP's App Lens tool when using AoT (Ahead of Time) builds. The change ensures proper JSON serialization by configuring the SignalR HubConnection with a specific type info resolver instead of relying on reflection-based serialization.
Key changes:
- Configures SignalR HubConnection with
AppLensJsonContext.Defaulttype info resolver for AoT compatibility - Adds necessary using statements for SignalR and dependency injection
joshfree
approved these changes
Sep 30, 2025
Member
|
@alzimmermsft add a changelog entry for the product bug fix please |
anuchandy
approved these changes
Sep 30, 2025
joshfree
approved these changes
Oct 1, 2025
anuchandy
approved these changes
Oct 1, 2025
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Dec 8, 2025
* Fix App Lens serialization * Add CHANGELOG entry
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?
Fixes #620
Fixes a serialization issue when using AoT builds of Azure MCP where App Lens would attempt to use reflection-based serialization. This is resolved by configuring
HubConnectionwith a type info resolver of the types defined in the App Lens tools.GitHub issue number?
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.mddocumentation/docs/azmcp-commands.mdand/or/docs/fabric-commands.mdToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test prompts/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline