UNPKG

templui-mcp-server

Version:

A Model Context Protocol (MCP) server for TemplUI components, providing AI assistants with access to component source code, documentation, demos, and metadata.

43 lines (42 loc) 1.12 kB
export interface ComponentDocumentation { name: string; title: string; description: string; installation: string; examples: string[]; apiTable?: string; usage?: string; rawContent: string; } export declare class DocumentationParser { private docsPath; constructor(docsPath?: string); /** * Get documentation for a specific component */ getComponentDocs(componentName: string): Promise<ComponentDocumentation | null>; /** * Get list of all documented components */ getAvailableComponentDocs(): Promise<string[]>; /** * Parse markdown content into structured documentation */ private parseMarkdownContent; /** * Format code examples with helpful comments */ private formatCodeExample; /** * Extract metadata from component documentation */ getComponentMetadata(componentName: string): Promise<any>; /** * Infer component category from documentation content */ private inferCategory; /** * Extract key features from documentation */ private extractFeatures; }