Provide installation instructions when azd or other registry components are missing#926
Conversation
azd or other missing registry components cause generic failure
azd or other missing registry components cause generic failureazd or other registry components are missing
There was a problem hiding this comment.
Pull Request Overview
This PR improves error handling when registry MCP servers fail to start by providing optional installation instructions instead of generic error messages. When a registry component like azd is missing or misconfigured, users now receive helpful installation guidance.
Key Changes:
- Added
InstallInstructionsproperty toRegistryServerInfomodel to support optional installation guidance - Enhanced error handling in
RegistryServerProvider.CreateClientAsyncto wrap exceptions with installation instructions when available - Added installation instructions for the Azure Developer CLI (azd) in the registry configuration
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 |
|---|---|
| servers/Azure.Mcp.Server/CHANGELOG.md | Documents the bug fix for providing installation instructions |
| core/Azure.Mcp.Core/tests/Azure.Mcp.Core.UnitTests/Areas/Server/Commands/Discovery/RegistryServerProviderTests.cs | Updates tests to verify new exception handling behavior and adds test for installation instructions |
| core/Azure.Mcp.Core/src/Areas/Server/Resources/registry.json | Adds installation instructions for the azd tool |
| core/Azure.Mcp.Core/src/Areas/Server/Models/RegistryServerInfo.cs | Adds InstallInstructions property to the model |
| core/Azure.Mcp.Core/src/Areas/Server/Commands/Runtime/McpRuntime.cs | Adds exception handler to catch InvalidOperationException and return user-friendly error |
| core/Azure.Mcp.Core/src/Areas/Server/Commands/Discovery/RegistryServerProvider.cs | Refactors client creation logic to wrap exceptions with installation instructions |
joshfree
left a comment
There was a problem hiding this comment.
LGTM assuming the version is correct.
|
I wonder if AZD MCP can be hosted remotely like Microsoft Doc MCP, so that the user will never hit this issue. |
Right now it is not intended to run remotely. It provides additional capabilities paired to the CLI and the installed version. |
…ents are missing (microsoft#926) Provides optional installation instructions when registry servers fail to start instead of generic error message.
What does this PR do?
Provides optional installation instructions when registry servers fail to start instead of generic error message.
GitHub issue number?
Fixes #877
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)