Skip to main content
Glama

MCP Xcode

by Stefan-Nitu
promisifyExec.ts850 B
import type { ExecOptions, ExecException } from 'child_process'; type ExecCallback = (error: ExecException | null, stdout: string, stderr: string) => void; type ExecFunction = (command: string, options: ExecOptions, callback: ExecCallback) => void; /** * Creates a promisified version of exec that matches Node's util.promisify behavior * Returns {stdout, stderr} on success, attaches them to error on failure */ export function createPromisifiedExec(execFn: ExecFunction) { return (cmd: string, options?: ExecOptions) => new Promise<{ stdout: string; stderr: string }>((resolve, reject) => { execFn(cmd, options || {}, (error, stdout, stderr) => { if (error) { Object.assign(error, { stdout, stderr }); reject(error); } else { resolve({ stdout, stderr }); } }); }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Stefan-Nitu/mcp-xcode'

If you have feedback or need assistance with the MCP directory API, please join our Discord server