Skip to main content
Glama

Context Optimizer MCP Server

errorHandling.ts491 B
/** * Error handling utilities */ export class ErrorHandler { // Implementation will be added in later phases static handleError(error: unknown, context?: string): string { if (error instanceof Error) { return `${context ? `[${context}] ` : ''}${error.message}`; } return `${context ? `[${context}] ` : ''}Unknown error: ${String(error)}`; } static logError(error: unknown, context?: string): void { console.error(this.handleError(error, context)); } }

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/malaksedarous/context-optimizer-mcp-server'

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