@kimsungwhee/apple-docs-mcp
Version:
MCP server for Apple Developer Documentation - Search iOS/macOS/SwiftUI/UIKit docs, WWDC videos, Swift/Objective-C APIs & code examples in Claude, Cursor & AI assistants
84 lines • 3.23 kB
TypeScript
/**
* Unified framework name mapping system for Apple Docs MCP
*
* This module provides consistent framework name normalization across all tools.
* It handles common variations, typos, and alternative names for Apple frameworks.
*/
/**
* Comprehensive framework name mappings
* Maps lowercase/alternative names to canonical Apple framework names
*/
export declare const FRAMEWORK_MAPPINGS: Record<string, string>;
/**
* Alternative framework names and common aliases
*/
export declare const FRAMEWORK_ALIASES: Record<string, string[]>;
/**
* Framework categories for organization
*/
export declare const FRAMEWORK_CATEGORIES: {
readonly UI: readonly ["SwiftUI", "UIKit", "AppKit", "WidgetKit", "WatchKit"];
readonly Graphics: readonly ["Core Graphics", "Core Image", "Core Animation", "Metal"];
readonly Games: readonly ["ARKit", "RealityKit", "SceneKit", "SpriteKit", "GameKit"];
readonly Media: readonly ["AVFoundation", "Core Audio", "PhotoKit", "MusicKit"];
readonly Data: readonly ["Core Data", "CloudKit", "UserDefaults", "Keychain Services"];
readonly ML: readonly ["Core ML", "Create ML", "Natural Language", "Vision", "Speech"];
readonly Services: readonly ["HealthKit", "HomeKit", "MapKit", "StoreKit"];
readonly System: readonly ["Core Bluetooth", "Core Motion", "Core Location"];
readonly Foundation: readonly ["Foundation", "Combine", "Swift"];
};
/**
* Normalize a framework name to its canonical Apple form
*
* @param framework - The framework name to normalize (case-insensitive)
* @returns The canonical framework name, or the original if no mapping exists
*/
export declare function normalizeFrameworkName(framework: string): string;
/**
* Get all possible aliases for a framework
*
* @param framework - The canonical framework name
* @returns Array of all known aliases for the framework
*/
export declare function getFrameworkAliases(framework: string): string[];
/**
* Check if a framework name is valid (has a known mapping)
*
* @param framework - The framework name to check
* @returns True if the framework is recognized
*/
export declare function isValidFramework(framework: string): boolean;
/**
* Get frameworks by category
*
* @param category - The category name
* @returns Array of framework names in the category
*/
export declare function getFrameworksByCategory(category: keyof typeof FRAMEWORK_CATEGORIES): string[];
/**
* Find the category of a framework
*
* @param framework - The framework name
* @returns The category name or null if not found
*/
export declare function getFrameworkCategory(framework: string): keyof typeof FRAMEWORK_CATEGORIES | null;
/**
* Search for frameworks by partial name or description
*
* @param query - The search query
* @returns Array of matching framework names
*/
export declare function searchFrameworks(query: string): string[];
/**
* Get comprehensive framework information
*
* @param framework - The framework name
* @returns Object with framework details
*/
export declare function getFrameworkInfo(framework: string): {
canonical: string;
aliases: string[];
category: string | null;
isValid: boolean;
};
//# sourceMappingURL=framework-mapper.d.ts.map