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

Function createListSimsExecutor

src/mcp/tools/simulator/list_sims.ts:161–173  ·  view source on GitHub ↗
(
  executor: CommandExecutor,
)

Source from the content-addressed store, hash-verified

159}
160
161export function createListSimsExecutor(
162 executor: CommandExecutor,
163): NonStreamingExecutor<ListSimsParams, SimulatorListResult> {
164 return async (params) => {
165 try {
166 const simulators = await listSimulators(executor, params);
167
168 return createSimulatorListResult(simulators);
169 } catch (error) {
170 return createSimulatorListErrorResult(toErrorMessage(error));
171 }
172 };
173}
174
175function setStructuredOutput(ctx: ToolHandlerContext, result: SimulatorListResult): void {
176 ctx.structuredOutput = {

Callers 2

list_sims.test.tsFile · 0.90
list_simsLogicFunction · 0.85

Calls 4

toErrorMessageFunction · 0.90
listSimulatorsFunction · 0.85

Tested by

no test coverage detected