Skip to content

Repair hyperlink "Fix Vulnerabilities with GitHub Copilot" & add support MCP Registry installations - #7445

Merged
donnie-msft merged 17 commits into
devfrom
dev-donnie-msft-mcpToolNameComparison
Jun 4, 2026
Merged

donnie-msft merged 17 commits into
devfrom
dev-donnie-msft-mcpToolNameComparison

Conversation

@donnie-msft

Copy link
Copy Markdown
Contributor

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3812
Fixes: NuGet/Home#14912

Description

The "Fix with GitHub Copilot" infobar hyperlink was broken because the VS API's changed the string we compared our MCP Tool Names against.
Also enables the scenario where a customer has installed NuGet's MCP Server from a public MCP registry

The full name of MCP Tools from the VS API's was changed to add a prefix.
To avoid this problem, this PR separates the tool name check into Group and Server Function Name.
Group is the grouping of the GitHub Copilot tools, and in NuGet's case, this can be NuGet or com.microsoft/nuget.
ServerNameOfFunction is the exact MCP tool name NuGet ships.

Install path Group
Shipped in Visual Studio NuGet
Installed by the customer via the Anthropic / GitHub MCP registry com.microsoft/nuget

Extracted a Matcher tool to facilitate unit testing.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@donnie-msft
donnie-msft requested a review from a team as a code owner June 2, 2026 19:20
martinrrm
martinrrm previously approved these changes Jun 2, 2026
Nigusu-Allehu
Nigusu-Allehu previously approved these changes Jun 2, 2026

@jebriede jebriede left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's nice to have a more resilient way to compare the server and tool name. A few behavior changes are included in this PR that should be reverted, namely, server name comparisons using ordinal comparison, introducing IsError in part of the availability check. Also, a comment we added intentionally to remind us to keep the server name and mcp.json in sync was removed and a few other comments.

@donnie-msft
donnie-msft dismissed stale reviews from Nigusu-Allehu and martinrrm via 57553c6 June 3, 2026 17:02
@donnie-msft
donnie-msft requested a review from jebriede June 3, 2026 17:03
@donnie-msft
donnie-msft requested a review from jebriede June 4, 2026 14:38
@jeffkl
jeffkl requested review from jebriede and removed request for jebriede June 4, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The NuGet Solver tool is still unavailable after the NuGet MCP Server is enabled from MCP Server Manager

5 participants