xc-mcp
Version:
MCP server that wraps Xcode command-line tools for iOS/macOS development workflows
14 lines • 2.67 kB
TypeScript
/**
* Unified cache management tool.
*
* Routes cache operations (get-stats, get-config, set-config, clear) to
* specialized handlers while maintaining modular code organization.
*
* @param args Cache operation and parameters
* @returns Tool result with operation status
* @throws McpError for invalid operation or execution failure
*/
export declare function cacheTool(args: any): Promise<import("../../types/xcode.js").ToolResult>;
export declare const CACHE_DOCS = "\n# cache\n\nUnified cache management - get statistics, get configuration, set configuration, clear cache.\n\n## Overview\n\nSingle tool for cache management. Routes to specialized handlers while maintaining clean operation semantics.\n\n## Operations\n\n### get-stats\n\nGet cache statistics and metrics.\n\n**Example:**\n```typescript\nawait cacheTool({ operation: 'get-stats' })\n```\n\n**Returns:**\nCache statistics including size, hit rates, and usage metrics.\n\n---\n\n### get-config\n\nGet cache configuration for specific cache type.\n\n**Parameters:**\n- `cacheType` (string, optional): Cache type - 'simulator', 'project', 'response', or 'all'\n\n**Example:**\n```typescript\nawait cacheTool({\n operation: 'get-config',\n cacheType: 'simulator'\n})\n```\n\n**Returns:**\nCurrent configuration including max age settings.\n\n---\n\n### set-config\n\nSet cache configuration.\n\n**Parameters:**\n- `cacheType` (string): Cache type - 'simulator', 'project', 'response', or 'all'\n- `maxAgeMs` (number, optional): Maximum age in milliseconds\n- `maxAgeMinutes` (number, optional): Maximum age in minutes\n- `maxAgeHours` (number, optional): Maximum age in hours\n\n**Example:**\n```typescript\nawait cacheTool({\n operation: 'set-config',\n cacheType: 'simulator',\n maxAgeHours: 2\n})\n```\n\n---\n\n### clear\n\nClear cache for specific type.\n\n**Parameters:**\n- `cacheType` (string, optional): Cache type - 'simulator', 'project', 'response', or 'all'\n\n**Example:**\n```typescript\nawait cacheTool({\n operation: 'clear',\n cacheType: 'simulator'\n})\n```\n\n---\n\n## Cache Types\n\n- **simulator**: Simulator list and state cache\n- **project**: Project configuration and build settings cache\n- **response**: Large response output cache for progressive disclosure\n- **all**: All caches (default when not specified)\n\n## Related Tools\n\n- `list-cached-responses`: View cached response IDs\n- `xcodebuild-get-details`: Retrieve cached build output\n- `simctl-get-details`: Retrieve cached simulator details\n";
export declare const CACHE_DOCS_MINI = "Manage cache (stats/config/clear). Use rtfm({ toolName: \"cache\" }) for docs.";
//# sourceMappingURL=index.d.ts.map