Skip to main content
Glama

MCP Xcode

by Stefan-Nitu
PlatformDetector.ts921 B
import { Platform } from '../../shared/domain/Platform.js'; import { BuildDestination } from '../../features/build/domain/BuildDestination.js'; /** * Domain Service: Detects platform from build destination * * Pure domain logic - no external dependencies * Used to determine which platform a build destination targets */ export class PlatformDetector { /** * Extract platform from a build destination */ static fromDestination(destination: BuildDestination): Platform { if (destination.startsWith('iOS')) return Platform.iOS; if (destination.startsWith('macOS')) return Platform.macOS; if (destination.startsWith('tvOS')) return Platform.tvOS; if (destination.startsWith('watchOS')) return Platform.watchOS; if (destination.startsWith('visionOS')) return Platform.visionOS; // Default to iOS if unknown (shouldn't happen with proper validation) return Platform.iOS; } }

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