UNPKG

apple-hig-mcp

Version:

High-performance MCP server providing instant access to Apple's Human Interface Guidelines via hybrid static/dynamic content delivery

70 lines 1.94 kB
/** * MCP Resources implementation for Apple HIG content */ import type { CrawleeHIGService } from './services/crawlee-hig.service.js'; import type { HIGCache } from './cache.js'; import type { HIGStaticContentProvider } from './static-content.js'; import type { HIGResource } from './types.js'; export declare class HIGResourceProvider { private crawleeService; private cache; private staticContentProvider?; constructor(crawleeService: CrawleeHIGService, cache: HIGCache, staticContentProvider?: HIGStaticContentProvider); /** * List all available HIG resources */ listResources(): Promise<HIGResource[]>; /** * Get content for a specific resource URI */ getResource(uri: string): Promise<HIGResource | null>; /** * Parse resource URI into components (supporting topic-first structure) */ private parseResourceURI; /** * Get content for a platform */ private getPlatformContent; /** * Get content for a specific category on a platform */ private getCategoryContent; /** * Get content for updates (Liquid Glass, latest changes, etc.) */ private getUpdatesContent; /** * Get Apple attribution text */ private getAttributionText; /** * Convert string to ApplePlatform */ private stringToPlatform; /** * Convert string to HIGCategory */ private stringToCategory; /** * Check if a string is a valid topic name */ private isValidTopicName; /** * Get content for a universal topic */ private getTopicContent; /** * Get content for a topic filtered by platform */ private getTopicPlatformContent; /** * Format topic name for display */ private formatTopicName; /** * Format category name for display */ private formatCategoryName; } //# sourceMappingURL=resources.d.ts.map