Skip to content

Allow skipping additional options in aspire mcp init#14519

Closed
apoorvdarshan wants to merge 1 commit intomicrosoft:mainfrom
apoorvdarshan:fix/mcp-init-skip-additional-options
Closed

Allow skipping additional options in aspire mcp init#14519
apoorvdarshan wants to merge 1 commit intomicrosoft:mainfrom
apoorvdarshan:fix/mcp-init-skip-additional-options

Conversation

@apoorvdarshan
Copy link

@apoorvdarshan apoorvdarshan commented Feb 17, 2026

Summary

Test plan

  • Run aspire mcp init and verify pressing Enter with no additional options selected proceeds without error
  • Run aspire mcp init and verify selecting one or more options still works as before

Set MultiSelectionPrompt.Required(false) so users can press Enter
with nothing selected instead of being forced to pick at least one item.
Copilot AI review requested due to automatic review settings February 17, 2026 07:09
@github-actions
Copy link
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14519

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14519"

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes issue #14460 by allowing users to skip the "additional options" multi-select prompt in aspire mcp init by pressing Enter with nothing selected. The fix involves adding .Required(false) to the MultiSelectionPrompt configuration in the ConsoleInteractionService.PromptForSelectionsAsync() method.

Changes:

  • Modified ConsoleInteractionService.PromptForSelectionsAsync() to allow empty selections by setting Required(false) on the multi-selection prompt

@JamesNK
Copy link
Member

JamesNK commented Mar 5, 2026

Apologies but I'm fixing this with #14961

I did work for fixing #14841 and didn't realize this part was already addressed.

@JamesNK JamesNK closed this Mar 5, 2026
@dotnet-policy-service dotnet-policy-service bot added this to the 13.3 milestone Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aspire mcp init won't let you skip the additional options

3 participants