Skip to content

Provide installation instructions when azd or other registry components are missing#926

Merged
wbreza merged 4 commits intomicrosoft:mainfrom
wbreza:ext-mcp-install-instructions
Oct 22, 2025
Merged

Provide installation instructions when azd or other registry components are missing#926
wbreza merged 4 commits intomicrosoft:mainfrom
wbreza:ext-mcp-install-instructions

Conversation

@wbreza
Copy link
Copy Markdown
Contributor

@wbreza wbreza commented Oct 22, 2025

What does this PR do?

Provides optional installation instructions when registry servers fail to start instead of generic error message.

image

GitHub issue number?

Fixes #877

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)

@wbreza wbreza changed the title Provide installation instructions when external registry components a… Provide installation instructions azd or other missing registry components cause generic failure Oct 22, 2025
@wbreza wbreza changed the title Provide installation instructions azd or other missing registry components cause generic failure Provide installation instructions when azd or other registry components are missing Oct 22, 2025
@wbreza wbreza marked this pull request as ready for review October 22, 2025 19:37
@wbreza wbreza requested a review from a team as a code owner October 22, 2025 19:37
Copy link
Copy Markdown
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

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 InstallInstructions property to RegistryServerInfo model to support optional installation guidance
  • Enhanced error handling in RegistryServerProvider.CreateClientAsync to 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 joshfree moved this from Untriaged to In Progress in Azure MCP Server Oct 22, 2025
@joshfree joshfree added server-Azure.Mcp Azure.Mcp.Server tools-Azd Azure Developer CLI related labels Oct 22, 2025
Comment thread core/Azure.Mcp.Core/src/Areas/Server/Resources/registry.json Outdated
@joshfree joshfree added this to the 2025-10 milestone Oct 22, 2025
Copy link
Copy Markdown
Member

@joshfree joshfree left a comment

Choose a reason for hiding this comment

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

LGTM assuming the version is correct.

@fanyang-mono
Copy link
Copy Markdown
Contributor

I wonder if AZD MCP can be hosted remotely like Microsoft Doc MCP, so that the user will never hit this issue.

@wbreza
Copy link
Copy Markdown
Contributor Author

wbreza commented Oct 22, 2025

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.

@wbreza wbreza enabled auto-merge (squash) October 22, 2025 21:03
@wbreza wbreza merged commit 898d767 into microsoft:main Oct 22, 2025
24 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Oct 22, 2025
@wbreza wbreza deleted the ext-mcp-install-instructions branch October 22, 2025 22:34
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Dec 8, 2025
…ents are missing (microsoft#926)

Provides optional installation instructions when registry servers fail to start instead of generic error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server-Azure.Mcp Azure.Mcp.Server tools-Azd Azure Developer CLI related

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUGBASH] Interrogating azd tool for options fails with generic error

5 participants