Skip to main content
Glama
base.error.ts494 B
import { ErrorType, ErrorMetadata, ErrorResponse } from './error.types.js'; export class BaseError extends Error { constructor( public readonly type: ErrorType, message: string, public readonly metadata?: ErrorMetadata ) { super(message); this.name = this.constructor.name; Error.captureStackTrace(this, this.constructor); } toJSON(): ErrorResponse { return { type: this.type, message: this.message, metadata: this.metadata, }; } }

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/KasarLabs/snak'

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