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

Function open_simLogic

src/mcp/tools/simulator/open_sim.ts:80–99  ·  view source on GitHub ↗
(
  _params: OpenSimParams,
  executor: CommandExecutor,
)

Source from the content-addressed store, hash-verified

78}
79
80export async function open_simLogic(
81 _params: OpenSimParams,
82 executor: CommandExecutor,
83): Promise<void> {
84 log('info', 'Starting open simulator request');
85
86 const ctx = getHandlerContext();
87 const executeOpenSim = createOpenSimExecutor(executor);
88 const result = await executeOpenSim(_params);
89 setStructuredOutput(ctx, result);
90
91 if (result.didError) {
92 log('error', `Error during open simulator operation: ${result.error ?? 'Unknown error'}`);
93 return;
94 }
95
96 ctx.nextStepParams = {
97 boot_sim: { simulatorId: 'UUID_FROM_LIST_SIMS' },
98 };
99}
100
101export const schema = openSimSchema.shape;
102

Callers 1

open_sim.test.tsFile · 0.90

Calls 4

logFunction · 0.90
getHandlerContextFunction · 0.90
createOpenSimExecutorFunction · 0.85
setStructuredOutputFunction · 0.70

Tested by

no test coverage detected