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

Function createBootSimResult

src/mcp/tools/simulator/boot_sim.ts:49–76  ·  view source on GitHub ↗
(params: {
  simulatorId?: string;
  didError: boolean;
  error?: string;
  diagnosticMessage?: string;
})

Source from the content-addressed store, hash-verified

47);
48
49function createBootSimResult(params: {
50 simulatorId?: string;
51 didError: boolean;
52 error?: string;
53 diagnosticMessage?: string;
54}): BootSimResult {
55 return {
56 kind: 'simulator-action-result',
57 didError: params.didError,
58 error: params.error ?? null,
59 summary: {
60 status: params.didError ? 'FAILED' : 'SUCCEEDED',
61 },
62 action: {
63 type: 'boot',
64 },
65 ...(params.diagnosticMessage
66 ? { diagnostics: createBasicDiagnostics({ errors: [params.diagnosticMessage] }) }
67 : {}),
68 ...(params.simulatorId
69 ? {
70 artifacts: {
71 simulatorId: params.simulatorId,
72 },
73 }
74 : {}),
75 };
76}
77
78function setStructuredOutput(ctx: ToolHandlerContext, result: BootSimResult): void {
79 ctx.structuredOutput = {

Callers 2

createBootSimExecutorFunction · 0.85
boot_simLogicFunction · 0.85

Calls 1

createBasicDiagnosticsFunction · 0.90

Tested by

no test coverage detected