@sanity/cli 5.0.0-next-major.20251210134624 → 5.0.0-next-major.20251215093220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42052,7 +42052,7 @@ async function promptForMCPSetup(prompt2, detectedEditors, editorsWithExisting)
42052
42052
  {
42053
42053
  type: "checkbox",
42054
42054
  name: "selectedEditors",
42055
- message: "Configure Sanity MCP server",
42055
+ message: "Configure Sanity MCP server?",
42056
42056
  choices: editorChoices
42057
42057
  }
42058
42058
  ])).selectedEditors;
@@ -42119,8 +42119,8 @@ async function setupMCP(context, options2) {
42119
42119
  return null;
42120
42120
  const token2 = await createMCPToken(context.apiClient);
42121
42121
  for (const editor2 of selected)
42122
- await writeMCPConfig(editor2, token2), output.success(`MCP configured for ${editor2.name}`);
42123
- return selected;
42122
+ await writeMCPConfig(editor2, token2);
42123
+ return output.success(`MCP configured for ${selected.map((e) => e.name).join(", ")}`), selected;
42124
42124
  } catch (error2) {
42125
42125
  return output.warn(`Could not configure MCP: ${error2 instanceof Error ? error2.message : `${error2}`}`), output.warn("You can set up MCP manually later using https://mcp.sanity.io"), null;
42126
42126
  }