Skip to main content
Glama

MCP Xcode

by Stefan-Nitu
InstallRequest.ts1.02 kB
import { AppPath } from '../../../shared/domain/AppPath.js'; import { DeviceId } from '../../../shared/domain/DeviceId.js'; /** * Domain Value Object: Represents an app installation request * * Contains all the data needed to install an app: * - What: appPath (the .app bundle to install) * - Where: simulatorId (optional - uses booted simulator if not specified) */ export class InstallRequest { private constructor( public readonly appPath: AppPath, public readonly simulatorId?: DeviceId ) {} /** * Create an InstallRequest from raw inputs * Validates the inputs and creates an immutable request object */ static create( appPath: unknown, simulatorId?: unknown ): InstallRequest { // Validate app path using AppPath value object const validatedAppPath = AppPath.create(appPath); // Validate simulator ID if provided const validatedDeviceId = DeviceId.createOptional(simulatorId); return new InstallRequest(validatedAppPath, validatedDeviceId); } }

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