Skip to main content
Glama
FrameworkDetector.ts893 B
export interface FrameworkDetector { detectFramework(annotationName: string): string | undefined; categorizeAnnotation(annotationName: string): string | undefined; getSupportedFrameworks(): string[]; getSupportedCategories(): string[]; } export abstract class BaseFrameworkDetector implements FrameworkDetector { protected abstract frameworkMap: Record<string, string>; protected abstract categoryMap: Record<string, string>; detectFramework(annotationName: string): string | undefined { return this.frameworkMap[annotationName]; } categorizeAnnotation(annotationName: string): string | undefined { return this.categoryMap[annotationName]; } getSupportedFrameworks(): string[] { return Array.from(new Set(Object.values(this.frameworkMap))); } getSupportedCategories(): string[] { return Array.from(new Set(Object.values(this.categoryMap))); } }

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/JonnoC/CodeRAG'

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