MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / getWorkflowOptions

Function getWorkflowOptions

src/cli/commands/setup.ts:212–233  ·  view source on GitHub ↗
(
  debug: boolean,
  existingConfig?: ProjectConfig,
)

Source from the content-addressed store, hash-verified

210}
211
212function getWorkflowOptions(
213 debug: boolean,
214 existingConfig?: ProjectConfig,
215): WorkflowManifestEntry[] {
216 const manifest = loadManifest();
217 const config = getConfig();
218
219 const predicateContext = {
220 runtime: 'mcp' as const,
221 config: {
222 ...config,
223 ...existingConfig,
224 debug,
225 },
226 runningUnderXcode: false,
227 };
228
229 return Array.from(manifest.workflows.values())
230 .filter((workflow) => !WORKFLOW_EXCLUDES.has(workflow.id))
231 .filter((workflow) => isWorkflowEnabledForRuntime(workflow, predicateContext))
232 .sort((left, right) => left.id.localeCompare(right.id));
233}
234
235function getRecommendedWorkflowIds(
236 workflows: WorkflowManifestEntry[],

Callers 1

selectWorkflowIdsFunction · 0.85

Calls 3

loadManifestFunction · 0.90
getConfigFunction · 0.90

Tested by

no test coverage detected