Skip to main content
Glama
errors.ts1.02 kB
/** * Custom Error Classes * * Typed error classes for better error handling and identification. */ /** * Base error class for architect-mcp errors */ export class ArchitectError extends Error { constructor(message: string) { super(message); this.name = 'ArchitectError'; } } /** * Error thrown when parsing architect.yaml fails */ export class ParseArchitectError extends ArchitectError { constructor(message: string) { super(message); this.name = 'ParseArchitectError'; } } /** Structured validation issue from Zod */ export interface ValidationIssue { path: (string | number)[]; message: string; code?: string; } /** * Error thrown when architect config validation fails */ export class InvalidConfigError extends ArchitectError { /** Structured validation issues from Zod */ readonly issues: ValidationIssue[]; constructor(message: string, issues?: ValidationIssue[]) { super(message); this.name = 'InvalidConfigError'; this.issues = issues || []; } }

Latest Blog Posts

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/AgiFlow/aicode-toolkit'

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