persistence-enable
Enable file-based persistence for Xcode CLI tool cache data, improving workflow efficiency by retaining build configurations, simulator preferences, and usage patterns across server restarts.
Instructions
🔒 Enable Opt-in Persistent State Management - File-based persistence for cache data across server restarts.
Privacy First: Disabled by default. Only usage patterns, build preferences, and performance metrics are stored. No source code, credentials, or personal information is persisted.
Key Benefits: • 📈 Learns Over Time - Remembers successful build configurations and simulator preferences • 🚀 Faster Workflows - Cached project information and usage patterns persist across restarts • 🤝 Team Sharing - Project-local caching allows teams to benefit from shared optimizations • 💾 CI/CD Friendly - Maintains performance insights across build environments
Storage Location Priority:
- User-specified directory (cacheDir parameter)
- Environment variable: XC_MCP_CACHE_DIR
- XDG cache directory (Linux/macOS standard)
- Project-local: .xc-mcp/cache/
- User home: ~/.xc-mcp/cache/
- System temp (fallback)
The system automatically selects the first writable location and creates proper .gitignore entries to prevent accidental commits.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cacheDir | No | Optional custom directory for cache storage. If not provided, uses intelligent location selection. |