UNPKG

xc-mcp

Version:

MCP server that wraps Xcode command-line tools for iOS/macOS development workflows

14 lines 2.34 kB
/** * Unified cache persistence management. * * Routes persistence operations (enable, disable, status) to specialized * handlers while maintaining modular code organization. * * @param args Persistence operation and parameters * @returns Tool result with operation status * @throws McpError for invalid operation or execution failure */ export declare function persistenceTool(args: any): Promise<import("../../types/xcode.js").ToolResult>; export declare const PERSISTENCE_DOCS = "\n# persistence\n\nUnified cache persistence management - enable, disable, check status.\n\n## Overview\n\nSingle tool for persistence configuration. Routes to specialized handlers while maintaining clean operation semantics.\n\n## Operations\n\n### enable\n\nEnable cache persistence to disk.\n\n**Parameters:**\n- `cacheDir` (string, optional): Custom cache directory path\n\n**Example:**\n```typescript\nawait persistenceTool({\n operation: 'enable',\n cacheDir: '/path/to/cache'\n})\n```\n\n**Notes:**\nPersists cache data across sessions. Useful for long-running projects or CI environments.\n\n---\n\n### disable\n\nDisable cache persistence.\n\n**Parameters:**\n- `clearData` (boolean, optional): Clear existing persistent data on disable\n\n**Example:**\n```typescript\nawait persistenceTool({\n operation: 'disable',\n clearData: true\n})\n```\n\n---\n\n### status\n\nCheck persistence status.\n\n**Parameters:**\n- `includeStorageInfo` (boolean, optional): Include storage usage details\n\n**Example:**\n```typescript\nawait persistenceTool({\n operation: 'status',\n includeStorageInfo: true\n})\n```\n\n**Returns:**\nPersistence status (enabled/disabled), cache directory path, and optional storage information.\n\n---\n\n## When to Use\n\n**Enable persistence:**\n- Long-running projects that benefit from cross-session cache\n- CI/CD environments where cache survives across builds\n- Development workflows where build history is valuable\n\n**Disable persistence:**\n- Temporary debugging sessions\n- Testing with clean cache state\n- Clearing sensitive cached information\n\n## Related Tools\n\n- `cache`: Cache management and configuration\n"; export declare const PERSISTENCE_DOCS_MINI = "Manage cache persistence (enable/disable/status). Use rtfm({ toolName: \"persistence\" }) for docs."; //# sourceMappingURL=index.d.ts.map