Skip to main content
Glama

MCP Xcode

by Stefan-Nitu
DeviceRepository.ts718 B
import { ICommandExecutor } from '../../application/ports/CommandPorts.js'; export interface RawDevice { udid: string; name: string; state: string; isAvailable: boolean; deviceTypeIdentifier?: string; dataPath?: string; dataPathSize?: number; logPath?: string; } export interface DeviceList { [runtime: string]: RawDevice[]; } /** * Repository for accessing simulator device information */ export class DeviceRepository { constructor(private executor: ICommandExecutor) {} async getAllDevices(): Promise<DeviceList> { const result = await this.executor.execute('xcrun simctl list devices --json'); const data = JSON.parse(result.stdout); return data.devices as DeviceList; } }

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