Skip to main content
Glama

Unity Editor MCP Server

errors.ts916 B
export enum ErrorType { CONNECTION = 'connection_error', TOOL_EXECUTION = 'tool_execution_error', RESOURCE_FETCH = 'resource_fetch_error', VALIDATION = 'validation_error', INTERNAL = 'internal_error', TIMEOUT = 'timeout_error' } export class McpUnityError extends Error { type: ErrorType; details?: any; constructor(type: ErrorType, message: string, details?: any) { super(message); this.type = type; this.details = details; this.name = 'McpUnityError'; } toJSON() { return { type: this.type, message: this.message, details: this.details }; } } export function handleError(error: any, context: string): McpUnityError { if (error instanceof McpUnityError) { return error; } // Handle standard errors return new McpUnityError( ErrorType.INTERNAL, `${context} error: ${error.message || 'Unknown error'}`, error ); }

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/CoderGamester/mcp-unity'

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