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

Function startDaemonBackground

src/cli/daemon-control.ts:134–150  ·  view source on GitHub ↗
(opts: StartDaemonBackgroundOptions)

Source from the content-addressed store, hash-verified

132 * Does not wait for the daemon to be ready.
133 */
134export function startDaemonBackground(opts: StartDaemonBackgroundOptions): void {
135 const daemonPath = getDaemonExecutablePath();
136
137 const child = spawn(process.execPath, [daemonPath], {
138 detached: true,
139 stdio: 'ignore',
140 cwd: opts.workspaceRoot,
141 env: {
142 ...process.env,
143 ...opts.env,
144 XCODEBUILDMCP_SOCKET: opts.socketPath,
145 XCODEBUILDCLI_SOCKET: opts.socketPath,
146 },
147 });
148
149 child.unref();
150}
151
152export interface WaitForDaemonReadyOptions {
153 socketPath: string;

Callers 2

ensureDaemonRunningFunction · 0.85

Calls 1

getDaemonExecutablePathFunction · 0.85

Tested by

no test coverage detected