Repository navigation
Repair hyperlink "Fix Vulnerabilities with GitHub Copilot" & add support MCP Registry installations - #7445
Merged
Conversation
martinrrm
previously approved these changes
Jun 2, 2026
Nigusu-Allehu
previously approved these changes
Jun 2, 2026
jebriede
requested changes
Jun 3, 2026
jebriede
left a comment
Contributor
There was a problem hiding this comment.
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.
jebriede
previously requested changes
Jun 3, 2026
martinrrm
approved these changes
Jun 4, 2026
jeffkl
approved these changes
Jun 4, 2026
jeffkl
dismissed
jebriede’s stale review
June 4, 2026 21:03
Jean-Pierre is now out of the office, I'll review on his behalf
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.
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
NuGetorcom.microsoft/nuget.ServerNameOfFunction is the exact MCP tool name NuGet ships.
NuGetcom.microsoft/nugetExtracted a Matcher tool to facilitate unit testing.
PR Checklist