Skip to main content
Glama

XC-MCP: XCode CLI wrapper

by conorluddy

cache-set-config

Adjust cache timeout settings in XC-MCP to optimize performance, control data freshness, and manage memory usage. Tailor cache duration for simulators, projects, or all caches to suit development or CI workflows.

Instructions

🎛️ Cache Optimization - Fine-tune XC-MCP's intelligent caching for your workflow.

Why manage caching: • ⚡ Performance tuning - Longer caches = faster repeated operations • 🔄 Fresh data control - Shorter caches = more up-to-date information
• 💾 Memory management - Balance speed vs memory usage • 🎯 Workflow optimization - Different cache settings for development vs CI

Configure cache maximum age settings. Default is 1 hour for simulator and project caches.

Examples:

  • Set 30 minutes: {"cacheType": "all", "maxAgeMinutes": 30}
  • Set 2 hours for simulators: {"cacheType": "simulator", "maxAgeHours": 2}
  • Set 5 minutes: {"cacheType": "project", "maxAgeMinutes": 5}

Common Workflow:

  1. cache-get-stats → check current cache status
  2. cache-set-config → adjust cache timeouts
  3. cache-clear → force refresh when needed
  4. Your normal xcodebuild/simctl operations (now faster!)

Input Schema

NameRequiredDescriptionDefault
cacheTypeYesWhich cache to configure
maxAgeHoursNoMaximum cache age in hours (alternative to maxAgeMs)
maxAgeMinutesNoMaximum cache age in minutes (alternative to maxAgeMs)
maxAgeMsNoMaximum cache age in milliseconds

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cacheType": { "description": "Which cache to configure", "enum": [ "simulator", "project", "response", "all" ], "type": "string" }, "maxAgeHours": { "description": "Maximum cache age in hours (alternative to maxAgeMs)", "type": "number" }, "maxAgeMinutes": { "description": "Maximum cache age in minutes (alternative to maxAgeMs)", "type": "number" }, "maxAgeMs": { "description": "Maximum cache age in milliseconds", "type": "number" } }, "required": [ "cacheType" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/conorluddy/xc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server