Repository navigation
feat(cli): Add --mcp/--no-mcp to answer the wizard's MCP question - #2789
Conversation
Every wizard flow ends with the project-scoped MCP server question, and no flag answered it, so a run whose input had ended stopped there with exit code 1 after all its changes were made. --no-mcp skips the MCP setup and --mcp goes on to the editor question; with neither, the three-choice prompt is asked as before. Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
Tested end to end with the packed npm build of a local branch:
The Fastfile question is the last one in the Apple wizard without a flag. |
BYK
left a comment
There was a problem hiding this comment.
I think we should remove that last step at this point but approving this one for consistency and completeness of the rest. Thanks for the sharp eyes!
|
Thanks @BYK. Removing the MCP step entirely is a separate change, so I'm leaving it out of this PR. It would also make |
Every
sentry wizardflow (Next.js, React Native, iOS, Android, and the rest) ends withofferProjectScopedMcpConfig, which asks whether to add a project-scoped MCP server configuration. No flag answered it, so since #2652 a run without a terminal (CI, a coding agent's shell,< /dev/null) stopped at this last question with exit code 1, after all its changes were made, even when flags answered every other question.This adds an
mcpentry toWIZARD_ANSWER_FLAGS, sosentry wizardgets--mcp/--no-mcpand their help text like the other answer flags. With--no-mcp, non-interactive wizard runs now finish with exit code 0.offerProjectScopedMcpConfiganswers its first question throughanswerOrAsk("mcp", …).--no-mcpskips the MCP setup;--mcpgoes straight to the editor multiselect. Either way the answer is logged, as for the other flags.mcpentry (answerFlagQuestion), so the prompt,--helpand the log line show the same question.mcp-choiceandmcp-configuredtags are kept and are also set from the flag's answer (mcp-choiceisyes/nothen).--mcpis for interactive runs, and--no-mcpis what non-interactive runs need.--no-mcplets runs without a terminal finish; the generated skill reference lists the new flag.via Antonis Lilis.
--
View Session [Sentry]