Migrate App Lens Diagnose Tool from @azure to az mcp server#356
Merged
Migrate App Lens Diagnose Tool from @azure to az mcp server#356
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the App Lens Diagnose Tool from @Azure to az mcp server, adding comprehensive Azure resource diagnostics capabilities using the AppLens API. The tool enables AI-powered conversational diagnostics to identify issues, root causes, and provide actionable solutions for Azure resource performance, availability, and reliability problems.
- Adds AppLens service integration with SignalR-based conversational diagnostics
- Implements resource diagnosis command with comprehensive validation and error handling
- Provides extensive unit test coverage for service logic and command execution
Reviewed Changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/Azure.Mcp.Tools.AppLens/src/Services/AppLensService.cs | Core service implementing AppLens diagnostic operations with SignalR communication |
| tools/Azure.Mcp.Tools.AppLens/src/Commands/Resource/ResourceDiagnoseCommand.cs | Command implementation for resource diagnosis with parameter validation |
| tools/Azure.Mcp.Tools.AppLens/src/Models/AppLensModels.cs | Data models for AppLens sessions, responses, and diagnostic results |
| tools/Azure.Mcp.Tools.AppLens/tests/Azure.Mcp.Tools.AppLens.UnitTests/Services/AppLensServiceTests.cs | Unit tests for AppLens service validation logic |
| tools/Azure.Mcp.Tools.AppLens/tests/Azure.Mcp.Tools.AppLens.UnitTests/Resource/ResourceDiagnoseCommandTests.cs | Unit tests for resource diagnose command scenarios |
| servers/Azure.Mcp.Server/src/Program.cs | Integration of AppLens setup into main server |
| docs/azmcp-commands.md | Documentation for new AppLens commands |
feiskyer
pushed a commit
to feiskyer/microsoft-mcp
that referenced
this pull request
Sep 8, 2025
jongio
requested changes
Sep 8, 2025
jongio
reviewed
Sep 9, 2025
jongio
requested changes
Sep 11, 2025
jongio
approved these changes
Sep 11, 2025
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Sep 27, 2025
…t#356) * added applens tool * fix connection to applens session * updated prompt and parameters for more seamless user experience * updated documentation * update description * added tests * update change log * update json launch * Updated tool to work with latest changes to Options * fix spelling * fix tests * update tests * fix formatting * fix options to address comments * fix formatting * updated e2e prompts * updated OptionBinding * remove unnecessary try/catch * use httpclientservice * use subscription service * shorten tool description to fit max requirements * remove unnecessary response status/message * undo local change * fix tests * addressed comments * fix formatting
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?
Added App Lens Diagnose Resource tool that diagnoses Azure resource performance issues, slowness, failures, and availability problems using the AppLens API
Example of tool in use:

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.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