Skip to content

Review Supply Chain security with Copilot using a VS Error List fixer - #7632

Merged
donnie-msft merged 5 commits into
devfrom
dev-donnie-msft-mcpErrorListFixer
Aug 27, 2026
Merged

donnie-msft merged 5 commits into
devfrom
dev-donnie-msft-mcpErrorListFixer

Conversation

@donnie-msft

@donnie-msft donnie-msft commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#15049

Description

Adds a NuGetCPMErrorListEntryFixer to help Visual Studio users find a resolution for Central Package Management (CPM) error codes. This change adds support for the NU1507 error code.

  • Replaces the IPackageSourceMappingService with a new ResolveSupplyChainSecurityService used to share implementation for invoking NuGet's MCP tool checking the repository's Secure Supply Chain configuration (review_supply_chain_security, see the NuGet.Mcp.Server README.

  • Now when the NU1507 code is present in the Error List in Visual Studio, pressing the ✨ toward the left of that error will invoke GitHub Copilot if the NuGet MCP server is installed, enabled, and available for use.

Demo

The fixer's tooltip showing, "Ask Copilot for a fix":

image

The prompt sent to GitHub copilot when pressing "Ask Copilot for a fix":

Resolve NU1507 by reviewing my NuGet configuration.

image

Outcome:
The result is that GitHub Copilot better understands the NuGet Configuration for the current repository and makes better supply chain security suggestions. In the case of NU1507, it may suggest that the warning can be ignored since only 1 package source is used in the repo. Or it may suggest that you should enable Package Source Mapping. The MCP tool today does not create the source mappings, however.

Implementation details

  • Generalizes the existing Package Source Mapping Copilot service into a supply-chain-security service so the Options command and NU1507 Error List action can share the same NuGet MCP invocation workflow without duplicating availability checks, context setup, error handling, or telemetry.
  • Follows our existing convention for implementing a NuGetErrorListEntryFixerBase and exporting via MEF.
  • This fixer is specific to Central Package Management, and other Secure Supply Chain features can have their own fixers in the future, depending on the implementation needs we have going forward.
  • Emits NavigatedTelemetryEvent for telemetry tracking use of the ErrorList_ResolveSupplyChainSecurity fixer.

PR Checklist

@donnie-msft
donnie-msft requested a review from a team as a code owner August 15, 2026 01:06
@donnie-msft
donnie-msft force-pushed the dev-donnie-msft-mcpErrorListFixer branch from e414330 to 2bd4e27 Compare August 18, 2026 16:01
@donnie-msft
donnie-msft force-pushed the dev-donnie-msft-mcpErrorListFixer branch from 2bd4e27 to ea7efaa Compare August 26, 2026 18:37
@donnie-msft donnie-msft changed the title Review Supply Chain security code NU1507 using VS Error List fixer Review Supply Chain security with Copilot using a VS Error List fixer Aug 26, 2026
@donnie-msft
donnie-msft merged commit b18853a into dev Aug 27, 2026
17 of 18 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-mcpErrorListFixer branch August 27, 2026 15:44
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.

Review Supply Chain security with Copilot using a VS Error List fixer

3 participants