Skip to main content
Glama

MCP Xcode

by Stefan-Nitu
XcodeErrors.ts927 B
/** * Error types for Xcode operations */ export enum XcodeErrorType { ProjectNotFound = 'PROJECT_NOT_FOUND', InvalidProjectType = 'INVALID_PROJECT_TYPE', UnknownError = 'UNKNOWN_ERROR' } /** * Custom error class for Xcode operations */ export class XcodeError extends Error { constructor( public readonly type: XcodeErrorType, public readonly path: string, message?: string ) { super(message || XcodeError.getDefaultMessage(type, path)); this.name = 'XcodeError'; } private static getDefaultMessage(type: XcodeErrorType, path: string): string { switch (type) { case XcodeErrorType.ProjectNotFound: return `No Xcode project or Swift package found at: ${path}`; case XcodeErrorType.InvalidProjectType: return `Invalid project type at: ${path}`; case XcodeErrorType.UnknownError: return `Unknown error opening project at: ${path}`; } } }

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