Skip to main content
Glama
BaseLoader.d.ts573 B
export interface LoaderConfig { subdirectory: string; excludedFiles: string[]; extensions: string[]; } export declare abstract class BaseLoader<T> { protected readonly directory: string; protected readonly config: LoaderConfig; constructor(config: LoaderConfig, basePath?: string); private resolveDirectory; hasItems(): Promise<boolean>; protected abstract validateItem(item: any): item is T; protected abstract createInstance(ItemClass: any): T; protected abstract getItemName(item: T): string; loadItems(): Promise<T[]>; }

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/madebyaris/rakitui-ai'

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