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

Function createApp

src/cli/__tests__/register-tool-commands.test.ts:71–87  ·  view source on GitHub ↗
(catalog: ToolCatalog, runtimeConfig: ResolvedRuntimeConfig = baseRuntimeConfig)

Source from the content-addressed store, hash-verified

69};
70
71function createApp(catalog: ToolCatalog, runtimeConfig: ResolvedRuntimeConfig = baseRuntimeConfig) {
72 const app = yargs()
73 .scriptName('xcodebuildmcp')
74 .exitProcess(false)
75 .fail((message, error) => {
76 throw error ?? new Error(message);
77 });
78
79 registerToolCommands(app, catalog, {
80 workspaceRoot: '/repo',
81 runtimeConfig,
82 cliExposedWorkflowIds: ['simulator'],
83 workflowNames: ['simulator'],
84 });
85
86 return app;
87}
88
89function mockInvokeDirectThroughHandler() {
90 return vi

Callers 1

Calls 1

registerToolCommandsFunction · 0.90

Tested by

no test coverage detected