Vulnerability InfoBar now has "How to fix with GitHub Copilot" link to NuGet's MCP Server documentation#6959
Merged
donnie-msft merged 5 commits intodevfrom Nov 21, 2025
Merged
Conversation
zivkan
previously approved these changes
Nov 19, 2025
src/NuGet.Clients/NuGet.SolutionRestoreManager/VulnerablePackagesInfoBar.cs
Outdated
Show resolved
Hide resolved
nkolev92
previously approved these changes
Nov 19, 2025
Member
nkolev92
left a comment
There was a problem hiding this comment.
We talked offline, I like "OR" or empty space as separators, but the links are probably clear enough.
jebriede
previously approved these changes
Nov 20, 2025
Contributor
jebriede
left a comment
There was a problem hiding this comment.
This looks great! Thanks for implementing this.
A few thoughts:
I agree that it's worth exploring what separator we should have between the Manage NuGet Packages and Learn how to Fix with Copilot links.
Also left a small suggestion to make a helper method for navigating to the URL to keep the OnActionItem code cleaner.
src/NuGet.Clients/NuGet.SolutionRestoreManager/VulnerablePackagesInfoBar.cs
Outdated
Show resolved
Hide resolved
jeffkl
reviewed
Nov 20, 2025
src/NuGet.Clients/NuGet.SolutionRestoreManager/VulnerablePackagesInfoBar.cs
Outdated
Show resolved
Hide resolved
f0c0e2f
6a4fd89 to
f0c0e2f
Compare
jeffkl
previously approved these changes
Nov 20, 2025
jebriede
approved these changes
Nov 21, 2025
src/NuGet.Clients/NuGet.SolutionRestoreManager/VulnerablePackagesInfoBar.cs
Show resolved
Hide resolved
jeffkl
approved these changes
Nov 21, 2025
zivkan
approved these changes
Nov 21, 2025
donnie-msft
added a commit
that referenced
this pull request
Dec 2, 2025
…o NuGet's MCP Server docs (#6959)
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/3548
Fixes: NuGet/Home#14680
Description
Adds a "Fix with Copilot" button after the "Manage NuGet Packages" action in the Vulnerability InfoBar shown when a solution is restored that has vulnerable packages.
Currently, this action redirects to https://aka.ms/nugetmcp/auditFix with instructions on how to use the NuGet MCP server to fix vulnerable packages.
Leverages existing navigation telemetry for this action and adds it to the existing action (as it was missing).
The UI lives within the InfoBar, so localization / accessibility testing isn't necessary as these are already tested controls. This PR just adds another action.
Alternatives Considered
Pending feedback from VS UX team
Hyperlink Text Options:
“Learn how to Fix with Copilot”
“Learn more”
“Fix with Copilot” (may feel misleading since it points to docs, not an immediate fix)
Separator Between Actions:
Single space: "Manage NuGet Packages" "Learn how to Fix with Copilot"

(✅ Currently Implemented)Vertical Bar: "Manage NuGet Packages" | "Learn how to Fix with Copilot"
Parenthesis: "Manage NuGet Packages (Learn how to Fix with Copilot)"
"or": The word "or": "Manage NuGet Packages" or "Learn how to Fix with Copilot"
PR Checklist