MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / formatNextStep

Function formatNextStep

src/utils/responses/next-step-formatting.ts:93–103  ·  view source on GitHub ↗
(step: NextStep, options: FormatNextStepOptions)

Source from the content-addressed store, hash-verified

91}
92
93export function formatNextStep(step: NextStep, options: FormatNextStepOptions): string {
94 const formatted =
95 options.runtime === 'cli' ? formatNextStepForCli(step) : formatNextStepForMcp(step);
96
97 const label = resolveLabel(step);
98 if (!step.label?.trim() || formatted === label) {
99 return formatted;
100 }
101
102 return `${label}: ${formatted}`;
103}
104
105export function serializeNextSteps(
106 nextSteps: readonly NextStep[] | undefined,

Callers 2

renderNextStepFunction · 0.90
serializeNextStepsFunction · 0.85

Calls 3

formatNextStepForCliFunction · 0.85
formatNextStepForMcpFunction · 0.85
resolveLabelFunction · 0.85

Tested by

no test coverage detected