Repository navigation
Onboard NuGet MCP workflows to use Copilot SDK programmatic sessions - #7698
Merged
Merged
Conversation
BertanAygun
reviewed
Sep 15, 2026
zivkan
reviewed
Sep 16, 2026
zivkan
previously approved these changes
Sep 23, 2026
donnie-msft
force-pushed
the
dev-donnie-msft-copilotApiChange
branch
from
September 23, 2026 23:26
4420f0c to
620cb74
Compare
zivkan
approved these changes
Sep 24, 2026
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/3945
Description
Updates the NuGet Visual Studio Copilot workflows to use the new Copilot SDK harness, when enabled.
If disabled, we retain the legacy implementation for the legacy VS Copilot experience.
Implementation
Uses SDK programmatic sessions when
IsBackendModeEnabledAsyncreturnstrue. Otherwise, use the existing Copilot Thread-based APIs.Adds a programmatic NuGet agent with:
IncludeBuiltInContributions = falseNuGetMCP tool descriptorsSupplies exact solution and project paths, plus applicable
NuGet.Config,Directory.Packages.props,Directory.Build.props, andDirectory.Build.targetsfiles between each project directory and the solution root.Creates persistent SDK sessions so conversations remain available after the initiating request completes.
Validates
CopilotMessageResponse.Status:CopilotRequestFailedtelemetry.Updates the Copilot SDK package to 18.12.384 to obtain the required APIs.
NuGet.PackageManagement.UIwhich was causing type conflicts.Design decisions and known limitations
NuGetMCP registration.com.microsoft/nugetregistry registration is not used as a fallback because no supported session-aware API was found for determining the effective MCP server selection.Validation
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.